Skip to content

Make Gemini API version configurable #1454

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sberyozkin
Copy link
Contributor

@sberyozkin sberyozkin commented May 3, 2025

This is a draft PR as v1 does not recognize systemInstruction, tools and responseMediaType JSON properties

@geoand
Copy link
Collaborator

geoand commented May 5, 2025

👍🏽

@geoand
Copy link
Collaborator

geoand commented May 20, 2025

@sberyozkin is there something more that needs to be done on this one?

@sberyozkin
Copy link
Contributor Author

sberyozkin commented May 20, 2025

Hi @geoand, I thought it would be an easy update (as far as I recall, Gemini 2.5 was not available with v1beta), but after I did it, I noticed those tags like tools were not recognized with v1, and then I started actually looking for the docs, and found:
https://ai.google.dev/gemini-api/docs/api-versions

According to that v1 does not support function calls yet. I think I saw somewhere that tools were renamed but I can't find that information again anywhere.

So I'm not sure right now how to evolve this PR. I checked with Guillaume as well. I guess we need to wait until some docs about how exactly function calls will be represented in v1 and then we'd have version specific generate content request/response support.

@sberyozkin
Copy link
Contributor Author

@lordofthejars Hi Alex, have you seen some v1 specific migration guide somewhere, how tools are going to be represented, etc ?

@lordofthejars
Copy link
Contributor

@lordofthejars Hi Alex, have you seen some v1 specific migration guide somewhere, how tools are going to be represented, etc ?

I have not looked at it. I know that tools is not working nowadays, but I have not checked.

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.

3 participants