-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openai[patch] get output_type when using with_structured_output #26307
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Would need to take a more careful look to see if that's the appropriate place to set the output_type... current code seems to ignore the possibility that the schema is a dict |
@baskaryan tagging you in case this is a quick fix for you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, thank you!
Fix type checking errors by declaring that the schema is a Pydantic BaseModel at this point.
…gchain-ai#26307) - This allows pydantic to correctly resolve annotations necessary when using openai new param `json_schema` Resolves issue: langchain-ai#26250 --------- Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> Co-authored-by: Bagatur <baskaryan@gmail.com>
json_schema
Resolves issue: #26250