From aa77834e2ecd4b77dfb4e689ef37549b3ebd6134 Mon Sep 17 00:00:00 2001 From: Hangfei Lin Date: Wed, 5 Nov 2025 09:57:22 -0800 Subject: [PATCH] chore: Update Gemini Live model names in live bidi streaming sample The sample agent now uses updated model names for Gemini Live, including a new Vertex model as the default and a new AI Studio model option. Co-authored-by: Hangfei Lin PiperOrigin-RevId: 828515811 --- .../samples/live_bidi_streaming_single_agent/agent.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contributing/samples/live_bidi_streaming_single_agent/agent.py b/contributing/samples/live_bidi_streaming_single_agent/agent.py index 95959790..9246fca9 100755 --- a/contributing/samples/live_bidi_streaming_single_agent/agent.py +++ b/contributing/samples/live_bidi_streaming_single_agent/agent.py @@ -65,8 +65,9 @@ async def check_prime(nums: list[int]) -> str: root_agent = Agent( - # model='gemini-2.0-flash-live-preview-04-09', # for Vertex project - model='gemini-2.0-flash-live-001', # for AI studio key + model='gemini-live-2.5-flash-preview-native-audio-09-2025', # vertex + # model='gemini-2.5-flash-native-audio-preview-09-2025', # for AI studio + # key name='roll_dice_agent', description=( 'hello world agent that can roll a dice of 6 sides and check prime'