Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gemini: move list type inside the Annotated on function_declarations field #1570

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

gitraffe
Copy link
Contributor

This PR fixes #1569 by changing the function declaration key in the API request from function_declarations to functionDeclarations.

@DouewM, I've verified that the correct key appears by running the little script in #1569 but didn't add an explicit test.

@Kludex Kludex changed the title Fix function declaration key for Gemini models. gemini: move list type inside the Annotated on function_declarations field Apr 24, 2025
@Kludex Kludex merged commit 544ced0 into pydantic:main Apr 24, 2025
18 checks passed
@gitraffe gitraffe deleted the gemini-functions branch April 24, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible inconsistency with schema for Gemini REST interface
2 participants