fix(voice): migrate Gemini models from deprecated 1.5/2.0 to 2.5-flash and flash-latest
This commit is contained in:
parent
353c7f73b3
commit
a693fa77c4
1 changed files with 8 additions and 8 deletions
|
|
@ -240,10 +240,10 @@ async def transcribe_audio(audio_path: str) -> str:
|
||||||
clean_path = tmp_wav
|
clean_path = tmp_wav
|
||||||
|
|
||||||
models_to_try = [
|
models_to_try = [
|
||||||
'gemini-3.5-flash',
|
'gemini-2.5-flash',
|
||||||
'gemini-3-flash-preview',
|
'gemini-flash-latest',
|
||||||
'gemini-2.0-flash',
|
'gemini-3.5-transcribe',
|
||||||
'gemini-1.5-flash'
|
'gemini-3.5-flash'
|
||||||
]
|
]
|
||||||
|
|
||||||
def _sync_transcribe(clean_file_path: str, m_name: str) -> str:
|
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 = [
|
models_to_try = [
|
||||||
'gemini-3.5-flash',
|
'gemini-2.5-flash',
|
||||||
'gemini-3-flash-preview',
|
'gemini-flash-latest',
|
||||||
'gemini-2.0-flash',
|
'gemini-2.5-pro',
|
||||||
'gemini-1.5-flash'
|
'gemini-3.5-flash'
|
||||||
]
|
]
|
||||||
last_error = None
|
last_error = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue