Open liuhetian opened 1 month ago
After fix it doesn't crash, but also doesn't return the expected schema, so the fix is only partial.
Users will still need to overwrite it using with_types (which is generally recommended)
I'll double check, but believe this is actually not a regression, but an existing issue in 0.2x as well
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
PydanticUserError:
_oai_structured_outputs_parser_output
is not fully defined; you should definePydanticBaseModel
, then call_oai_structured_outputs_parser_output.model_rebuild()
.Description
meet this question when using langserve
add_routes(app, mychain, path='/faq')
System Info
langchain-core==0.3.0.dev4 langchain-openai==0.2.0.dev2
pydantic==2.9.1 pydantic-extra-types==2.5.0 pydantic-settings==2.2.1 pydantic_core==2.23.3
python=3.12