mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix(gemini): list Gemini 3 preview models in google-gemini-cli/gemini pickers (#12776)
The google-gemini-cli (Cloud Code Assist) and gemini (native API) model pickers only offered gemini-2.5-*, so users picking Gemini 3 had to type a custom model name — usually wrong (e.g. "gemini-3.1-pro"), producing a 404 from cloudcode-pa.googleapis.com. Replace the 2.5-* entries with the actual Code Assist / Gemini API preview IDs: gemini-3.1-pro-preview, gemini-3-pro-preview, gemini-3-flash-preview (and gemini-3.1-flash-lite-preview on native). Update the hardcoded fallback in hermes_cli/main.py to match. Copilot's menu retains gemini-2.5-pro — that catalog is Microsoft's.
This commit is contained in:
@@ -2351,7 +2351,7 @@ def _model_flow_google_gemini_cli(_config, current_model=""):
|
||||
return
|
||||
|
||||
models = list(_PROVIDER_MODELS.get("google-gemini-cli") or [])
|
||||
default = current_model or (models[0] if models else "gemini-2.5-flash")
|
||||
default = current_model or (models[0] if models else "gemini-3-flash-preview")
|
||||
selected = _prompt_model_selection(models, current_model=default)
|
||||
if selected:
|
||||
_save_model_choice(selected)
|
||||
|
||||
Reference in New Issue
Block a user