Repository navigation
fix(core): exclude Gemini 3.5 Live Translate from Gemini 3.x Live routing (adk-python parity) - #922
Merged
kalenkevich merged 3 commits intoSep 23, 2026
Conversation
…ting PR google#912 generalized isGemini3xLive from the '-flash-live' spelling to the whole gemini-3.* '-live' family to fix realtime audio routing. That sweep also caught gemini-3.5-live-translate*, which adk-python deliberately excludes from its equivalent _is_gemini_3_x_live predicate and handles through a dedicated translate branch (is_gemini_3_5_live_translate, pinned False in test_model_name_utils.py since 8aff5141, 2026-06-30). For Live Translate ids the conversational paths currently diverge from the Python SDK: single-part text goes to sendRealtimeInput({text}) instead of sendClientContent, sendHistory forces turnComplete=true instead of deriving it from the last role, and buffered tool calls are flushed on toolCall instead of turnComplete. This change: - adds isGemini35LiveTranslate() and excludes those ids from isGemini3xLive - keeps Live Translate audio/video on the realtime path via an explicit gate in sendRealtime (adk-python: `if self._is_gemini_3_x_live or self._is_gemini_3_5_live_translate:`) - exports the new predicate and updates the tests that pinned the divergent value
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
kalenkevich
approved these changes
Sep 21, 2026
Collaborator
|
could you please fix the CI issues (formatting), thanks? |
Contributor
Author
|
Pushed 1c14d1b — collapsed the |
Merged
prasanna8585
pushed a commit
to prasanna8585/adk-js
that referenced
this pull request
Nov 10, 2026
…ting (adk-python parity) (google#922) * fix(core): exclude Gemini 3.5 Live Translate from Gemini 3.x Live routing PR google#912 generalized isGemini3xLive from the '-flash-live' spelling to the whole gemini-3.* '-live' family to fix realtime audio routing. That sweep also caught gemini-3.5-live-translate*, which adk-python deliberately excludes from its equivalent _is_gemini_3_x_live predicate and handles through a dedicated translate branch (is_gemini_3_5_live_translate, pinned False in test_model_name_utils.py since 8aff5141, 2026-06-30). For Live Translate ids the conversational paths currently diverge from the Python SDK: single-part text goes to sendRealtimeInput({text}) instead of sendClientContent, sendHistory forces turnComplete=true instead of deriving it from the last role, and buffered tool calls are flushed on toolCall instead of turnComplete. This change: - adds isGemini35LiveTranslate() and excludes those ids from isGemini3xLive - keeps Live Translate audio/video on the realtime path via an explicit gate in sendRealtime (adk-python: `if self._is_gemini_3_x_live or self._is_gemini_3_5_live_translate:`) - exports the new predicate and updates the tests that pinned the divergent value * chore: retrigger CLA check after signing * style: collapse model_name import to satisfy prettier format:check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#912 generalized
isGemini3xLivefrom the-flash-livespelling to the wholegemini-3.*-livefamily to fix realtime audio routing (part of #911). That sweepalso caught
gemini-3.5-live-translate*, which the adk-python reference deliberatelyexcludes from its equivalent predicate:
src/google/adk/utils/model_name_utils.pytests/unittests/utils/test_model_name_utils.pyFor Live Translate ids the conversational paths in JS therefore diverge from the
Python SDK after #912:
sendContentsingle text partsendRealtimeInput({text})sendClientContentsendHistoryturnCompletetruetoolCallturnCompletesendRealtimeInput({audio|video})What this PR does
isGemini35LiveTranslate()(mirrors adk-python'sis_gemini_3_5_live_translate,including path-prefix extraction) and excludes those ids from
isGemini3xLivesendRealtime(adk-python:if self._is_gemini_3_x_live or self._is_gemini_3_5_live_translate:)common.ts(
isGemini3xLive('gemini-3.5-live-translate-preview') === true) to the referencevalue
false, and adds plain/path-based variants plus a newisGemini35LiveTranslatesuite, andsendContent/sendRealtimecases for aLive Translate id
Notes
Falsefor Live Translate since 8aff5141 (2026-06-30),~11 weeks before fix(core): route Gemini 3.x live audio by model family, not the '-flash-live' spelling #912.
August 2026.
-liveid (the ids fix(core): route Gemini 3.x live audio by model family, not the '-flash-live' spelling #912 intended to fix,e.g.
gemini-3.8-live,gemini-3.5-transcribe-live, dated aliases,-flash-lite-live) is unchanged by this PR.Test plan
Updated/added unit tests in
core/test/utils/model_name_test.tsandcore/test/models/gemini_llm_connection_test.ts(vitest suites); CI runs thesame suites.