-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Add extra comments about Google model deprecation #4424
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,17 +5,21 @@ | |
|
|
||
| from google.genai import types | ||
|
|
||
| # Gemini API deprecations: https://ai.google.dev/gemini-api/docs/deprecations | ||
| # Gemini API release notes with preview deprecations: https://ai.google.dev/gemini-api/docs/changelog | ||
| # live models: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/live-api | ||
| # VertexAI retirement: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions#retired-models | ||
| # Additional references: | ||
| # 1. https://github.com/kazunori279/adk-streaming-test/blob/main/test_report.md | ||
| LiveAPIModels = Literal[ | ||
| # VertexAI models | ||
| "gemini-live-2.5-flash-native-audio", | ||
| "gemini-live-2.5-flash-preview-native-audio", | ||
| # deprecated vertexai models | ||
| "gemini-2.0-flash-exp", | ||
| "gemini-live-2.5-flash-preview-native-audio-09-2025", | ||
| "gemini-live-2.5-flash-native-audio", # GA https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash-live-api#live-2.5-flash | ||
| "gemini-live-2.5-flash-preview-native-audio-09-2025", # Public preview https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-5-flash-live-api#live-2.5-flash-preview | ||
| "gemini-live-2.5-flash-preview-native-audio", # still works, possibly an alias, but not mentioned in any docs or changelog | ||
| # Gemini API models | ||
| "gemini-2.5-flash-native-audio-preview-12-2025", | ||
| # deprecated Gemini API models | ||
| "gemini-2.5-flash-native-audio-preview-09-2025", | ||
| "gemini-2.5-flash-native-audio-preview-12-2025", # https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-live | ||
| "gemini-2.5-flash-native-audio-preview-09-2025", # https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-live | ||
| "gemini-2.0-flash-exp", # still works in Gemini API but not VertexAI | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've received deprecation notice for this one, but it's possible that was for VertexAI.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can only find a deprecation notice from a third-party website: and apparently it's still very much alive on both platforms via OpenRouter We can still deprecate it on our side though. |
||
| ] | ||
|
|
||
| Voice = Literal[ | ||
|
|
||

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.
I think we should remove from the list if it's not mentioned on their docs
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.
It is probably fine to keep this one. It looks like an alias to the dated model following their naming convention, and their docs aren't always updated.