Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

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

Copy link
Member Author

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.

# 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
Copy link
Member

Choose a reason for hiding this comment

The 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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can only find a deprecation notice from a third-party website:
Screenshot 2026-01-02 at 09 09 29

and apparently it's still very much alive on both platforms via OpenRouter

We can still deprecate it on our side though.

]

Voice = Literal[
Expand Down
Loading