From a693fa77c4182ab1178d3a4f5dc2baee22543ca1 Mon Sep 17 00:00:00 2001 From: Admin Date: Sat, 5 Sep 2026 12:22:42 +0400 Subject: [PATCH] fix(voice): migrate Gemini models from deprecated 1.5/2.0 to 2.5-flash and flash-latest --- handlers/voice.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/handlers/voice.py b/handlers/voice.py index f99216f..5b6a5fd 100644 --- a/handlers/voice.py +++ b/handlers/voice.py @@ -240,10 +240,10 @@ async def transcribe_audio(audio_path: str) -> str: clean_path = tmp_wav models_to_try = [ - 'gemini-3.5-flash', - 'gemini-3-flash-preview', - 'gemini-2.0-flash', - 'gemini-1.5-flash' + 'gemini-2.5-flash', + 'gemini-flash-latest', + 'gemini-3.5-transcribe', + 'gemini-3.5-flash' ] def _sync_transcribe(clean_file_path: str, m_name: str) -> str: @@ -309,10 +309,10 @@ async def execute_antigravity_agent(user_text: str) -> str: ) models_to_try = [ - 'gemini-3.5-flash', - 'gemini-3-flash-preview', - 'gemini-2.0-flash', - 'gemini-1.5-flash' + 'gemini-2.5-flash', + 'gemini-flash-latest', + 'gemini-2.5-pro', + 'gemini-3.5-flash' ] last_error = None