Skip to content

Commit

Permalink
fix: extra forbid
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed Sep 22, 2024
1 parent 067a598 commit 624ad59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/codeinterpreterapi/thoughts/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from textwrap import indent
from pydantic import Field
from typing import Any, Dict, List, Optional, Type

from langchain_core.language_models import BaseLanguageModel
Expand Down Expand Up @@ -38,7 +37,7 @@ class MyToTChain(ToTChain):
class Config:
"""Configuration for this pydantic object."""

extra = Field(default="forbid")
extra = 'forbid'
arbitrary_types_allowed = True

def initialize_thought_generator(self):
Expand Down

0 comments on commit 624ad59

Please sign in to comment.