You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was trying to use ChatGoogleGenerativeAI.with_structured_output(PydanticObject) I kept on getting an error. I'm able to successfully use this with OpenAI, Groq, and xAI but failed with both Gemini-1.5-Pro-002 and Gemini-1.5-Flash-002.
where the title is not properly handled. Commenting these 2 lines fixes the issue.
Also, the second line seems wrong (should it be items["title"] = schema.get("title")?).
When I was trying to use ChatGoogleGenerativeAI.with_structured_output(PydanticObject) I kept on getting an error. I'm able to successfully use this with OpenAI, Groq, and xAI but failed with both Gemini-1.5-Pro-002 and Gemini-1.5-Flash-002.
Error can be found here:
https://gist.github.com/leowalker89/86c8318c2dc463a7ce02e22e187017d1
Example code of the Pydantic Models and the various frontier models:
https://gist.github.com/leowalker89/0b8e1d8679e052490eec9028aeb832cf
The text was updated successfully, but these errors were encountered: