-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Update Gemini generativelanguage api version to v1alpha for support of latest reasoning model #5561
base: main
Are you sure you want to change the base?
Conversation
@youngzyl is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for raising your pull request and contributing to our Community |
is there any document for this? |
Originally, I saw it on Gemini docs below. Since all the use case of the new reasoning model was specific the v1alpha, I thought it's necessary. https://ai.google.dev/gemini-api/docs/thinking#send-basic
but seems like "gemini-2.0-flash-thinking-exp-01-21" is also available in v1beta. I think it's probably an feature update between v1beta and v1alpha, instead of a cut off. I think it shouldn't be marked as a bug fix. And having discussion of the API version implement. |
It might be best to postpone the change until LobeChat officially supports reasoning/thinking models. |
I have tried with google sdk, it doesn't support CoT by now: google-gemini/generative-ai-js#328. So need to wait for their update. |
This pull request has been modified. If you want me to regenerate unit test for any of the files related, please find the file in "Files Changed" tab and add a comment |
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
The latest Gemini reasoning model gemini-2.0-flash-thinking-exp-01-21 require a newer API version "v1apha" for content generation.
📝 补充信息 | Additional Information