Skip to content

Commit aa77834

Browse files
hangfeicopybara-github
authored andcommitted
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 <[email protected]> PiperOrigin-RevId: 828515811
1 parent 0b1784e commit aa77834

File tree

1 file changed

+3
-2
lines changed
  • contributing/samples/live_bidi_streaming_single_agent

1 file changed

+3
-2
lines changed

contributing/samples/live_bidi_streaming_single_agent/agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ async def check_prime(nums: list[int]) -> str:
6565

6666

6767
root_agent = Agent(
68-
# model='gemini-2.0-flash-live-preview-04-09', # for Vertex project
69-
model='gemini-2.0-flash-live-001', # for AI studio key
68+
model='gemini-live-2.5-flash-preview-native-audio-09-2025', # vertex
69+
# model='gemini-2.5-flash-native-audio-preview-09-2025', # for AI studio
70+
# key
7071
name='roll_dice_agent',
7172
description=(
7273
'hello world agent that can roll a dice of 6 sides and check prime'

0 commit comments

Comments
 (0)