Fix nested pydantic model issue (#1905)

* Fix nested pydantic model issue

* fix failing tests

* add in vcr

* cleanup

* drop prints

* Fix vcr issues

* added new recordings

* trying to fix vcr

* add in fix from lorenze.
This commit is contained in:
Brandon Hancock (bhancock_ai)
2025-01-16 11:28:58 -05:00
committed by GitHub
parent 42311d9c7a
commit b5779dca12
10 changed files with 3624 additions and 61 deletions

View File

@@ -25,7 +25,7 @@ class OutputConverter(BaseModel, ABC):
llm: Any = Field(description="The language model to be used to convert the text.")
model: Any = Field(description="The model to be used to convert the text.")
instructions: str = Field(description="Conversion instructions to the LLM.")
max_attempts: Optional[int] = Field(
max_attempts: int = Field(
description="Max number of attempts to try to get the output formatted.",
default=3,
)