Skip to content

fix(gemini): sweep hardcoded Gemini defaults to gemini-3.6-flash (fixes #32360) - #73570

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-8ff61387
Jul 29, 2026
Merged

fix(gemini): sweep hardcoded Gemini defaults to gemini-3.6-flash (fixes #32360)#73570
teknium1 merged 2 commits into
mainfrom
hermes/hermes-8ff61387

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Every hardcoded Gemini default model now points at gemini-3.6-flashgemini-2.5-flash (Google shutdown Oct 16, 2026) and the superseded gemini-3-flash-preview no longer appear as functional defaults anywhere. Fixes #32360 (reported by @hbentel with the full site inventory).

Why these exist at all: they're offline/zero-config fallbacks (probe params, default_aux_model on provider profiles, aux-client fallback dict). The failure mode is that they were point-in-time snapshots with nothing tying them to the catalog — the gemini plugin's contract test (from #70416) now covers that one; the aux-client tests were converted from literals to the _NOUS_MODEL constant so the next bump can't silently break them.

Changes

  • agent/gemini_native_adapter.py: probe_gemini_tier + _create_chat_completion default params → gemini-3.6-flash; free-tier guidance de-pinned from a dated model/RPD number
  • agent/auxiliary_client.py: _OPENROUTER_MODEL, _NOUS_MODEL, and the gemini/kilocode fallback aux entries → gemini-3.6-flash
  • plugins/model-providers/{kilocode,vertex}: default_aux_modelgoogle/gemini-3.6-flash
  • plugins/model-providers/openrouter: fallback_models entry updated
  • plugins/memory/hindsight: gemini provider default → gemini-3.6-flash
  • hermes_cli/setup.py: wizard gemini list matches the curated picker catalog
  • tests/agent/test_auxiliary_client.py: default-model assertions now reference _NOUS_MODEL instead of frozen literals (change-detector cleanup)

Validation

Check Result
Affected suites (35 files) 1258 passed, 0 failed
Setup/models suites 118 passed, 0 failed
E2E (temp HERMES_HOME, keys stripped) all 5 provider aux defaults resolve to 3.6-flash; probe default confirmed; vertex aux billable ($0.009 for 1k+1k)
Model availability google/gemini-3.6-flash verified live on OpenRouter + Nous portal /models; pricing entry landed in #73516

Fixes #32360.

Infographic

Gemini default sweep infographic

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins provider/gemini Google Gemini (AI Studio, Cloud Code) labels Jul 28, 2026
@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on 34656b2

all good!

teknium1 added 2 commits July 28, 2026 13:34
#32360)

gemini-2.5-flash shuts down Oct 16 2026 (Google deprecation schedule)
and gemini-3-flash-preview is superseded. Update every hardcoded
default to the current GA flash model:

- gemini_native_adapter: probe_gemini_tier + _create_chat_completion
  default params; free-tier guidance de-pinned from a specific model's
  RPD number so it doesn't stale again
- auxiliary_client: gemini/kilocode fallback aux models,
  _OPENROUTER_MODEL, _NOUS_MODEL -> google/gemini-3.6-flash
  (verified live on both OpenRouter and Nous portal /models)
- provider plugins: kilocode + vertex default_aux_model
- hindsight memory plugin: gemini provider default
- setup wizard gemini list: 3-flash-preview -> 3.6-flash (matches the
  curated picker catalog)
- tests: aux-client assertions that pinned the old default literal now
  reference the _NOUS_MODEL constant, so the next default bump can't
  break them (change-detector cleanup)

Fixes #32360.
Sibling of the test_auxiliary_client.py cleanup — these two assertions
pinned the OpenRouter/Nous aux default as a frozen literal and broke on
the 3.6-flash bump (CI slice 5). Reference _OPENROUTER_MODEL/_NOUS_MODEL
instead so the next default rotation can't break them.
@teknium1
teknium1 force-pushed the hermes/hermes-8ff61387 branch from f098fc2 to 34656b2 Compare July 28, 2026 20:34
@teknium1
teknium1 merged commit 52b9cf1 into main Jul 29, 2026
38 checks passed
@teknium1
teknium1 deleted the hermes/hermes-8ff61387 branch July 29, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/cli CLI entry point, hermes_cli/, setup wizard comp/plugins Plugin system and bundled plugins P2 Medium — degraded but workaround exists provider/gemini Google Gemini (AI Studio, Cloud Code) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: update default Gemini model from gemini-2.5-flash to gemini-3.5-flash (shutdown Oct 16 2026)

2 participants