mgokg commited on
Commit
6aade00
·
verified ·
1 Parent(s): a9075f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,7 +73,7 @@ class GeminiHandler(AsyncStreamHandler):
73
 
74
  client = genai.Client(
75
  api_key=api_key or os.getenv("GEMINI_API_KEY"),
76
- http_options={"api_version": "v1alpha"},
77
  )
78
 
79
  # Define the tools and system instruction
@@ -100,7 +100,7 @@ class GeminiHandler(AsyncStreamHandler):
100
  )
101
 
102
  async with client.aio.live.connect(
103
- model="gemini-2.5-flash-live-preview", config=config
104
  ) as session:
105
  async for audio in session.start_stream(
106
  stream=self.stream(), mime_type="audio/pcm"
 
73
 
74
  client = genai.Client(
75
  api_key=api_key or os.getenv("GEMINI_API_KEY"),
76
+ http_options={"api_version": "v1beta"},
77
  )
78
 
79
  # Define the tools and system instruction
 
100
  )
101
 
102
  async with client.aio.live.connect(
103
+ model="gemini-2.5-flash-native-audio-preview-12-2025", config=config
104
  ) as session:
105
  async for audio in session.start_stream(
106
  stream=self.stream(), mime_type="audio/pcm"