Skip to content

feat(vertex): add validated Gemini model catalog for /model picker - #68767

Closed
ceverson70 wants to merge 1 commit into
NousResearch:mainfrom
ceverson70:upstream/vertex-gemini-catalog
Closed

ceverson70 wants to merge 1 commit into
NousResearch:mainfrom
ceverson70:upstream/vertex-gemini-catalog

Conversation

@ceverson70

Copy link
Copy Markdown
Contributor

Summary

  • Adds a "vertex" key to _PROVIDER_MODELS in hermes_cli/models.py with 6 Gemini 3.x models validated live on the Vertex AI OpenAI-compatible endpoint (aiplatform.googleapis.com, global region).
  • All entries were tested on 2026-07-21 against antse-tooling GCP project and returned HTTP 200.
  • 8 other candidates (e.g. gemini-3.1-flash, gemini-3-pro-preview) returned 404 and were not included.
  • No context-length changes needed — the existing "gemini": 1_048_576 prefix entry in agent/model_metadata.py DEFAULT_CONTEXT_LENGTHS already covers all Gemini models.

Validated (HTTP 200):

Model ID Role
google/gemini-3.5-flash Frontier Flash, agentic + coding
google/gemini-3.6-flash Newer incremental over 3.5
google/gemini-3.5-flash-lite Lighter/cheaper 3.5 variant
google/gemini-3.1-pro-preview 3.1 Pro preview
google/gemini-3-flash-preview 3.0 Flash preview
google/gemini-3.1-flash-lite Most cost-efficient Gemini 3.x

Rejected (HTTP 404):
gemini-3.1-flash, gemini-3.1-pro, gemini-3-pro-preview, gemini-3.5-pro, gemini-3.1-flash-lite-preview, gemini-3.1-flash-preview, gemini-3-flash, gemini-3-pro

Test plan

  • Python import check: from hermes_cli.models import _PROVIDER_MODELS; _PROVIDER_MODELS["vertex"] returns the 6-model list
  • Live API validation: all 6 models returned HTTP 200 on antse-tooling project (2026-07-21)
  • /model vertex in hermes shows the picker with the 6 entries

🤖 Generated with Claude Code

Add a "vertex" key to _PROVIDER_MODELS with 6 Gemini 3.x models that
were validated live against the Vertex AI OpenAI-compatible endpoint
(aiplatform.googleapis.com, global region, project antse-tooling) on
2026-07-21. All entries returned HTTP 200; 8 other candidates (e.g.
gemini-3.1-flash, gemini-3-pro-preview) returned 404 and were excluded.

Validated models (google/ prefix required by Vertex endpoint):
- google/gemini-3.5-flash       (frontier Flash, agentic)
- google/gemini-3.6-flash       (newer incremental over 3.5)
- google/gemini-3.5-flash-lite  (lighter/cheaper 3.5 variant)
- google/gemini-3.1-pro-preview (3.1 Pro preview)
- google/gemini-3-flash-preview (3.0 Flash preview)
- google/gemini-3.1-flash-lite  (most cost-efficient 3.x model)

Context lengths are covered by the existing "gemini" prefix entry
(1_048_576) in agent/model_metadata.py DEFAULT_CONTEXT_LENGTHS — no
additional entries needed.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard provider/gemini Google Gemini (AI Studio, Cloud Code) needs-decision Awaiting maintainer decision before any implementation labels Jul 21, 2026
teknium1 added a commit that referenced this pull request Jul 28, 2026
…vage

Main gained its own vertex curated list (df051c1) two days after
PR #68767 was opened, so the cherry-pick produced a duplicate 'vertex'
dict key (later key silently wins in Python dict literals). Merge the
two into one list: union of both, existing entries preserved, contributor's
live-validated additions (gemini-3.6-flash, 3.5-flash-lite, 3.1-flash-lite)
folded in.
teknium1 added a commit that referenced this pull request Jul 28, 2026
…l snapshot entries

Follow-up to the #60063 salvage: the curated gemini list now carries
gemini-3.6-flash (aux default, #70416) and the vertex list carries
gemini-3.5-flash-lite (#68767) — both need snapshot pricing so direct
Gemini/Vertex sessions don't report cost=unknown.

Rates verified against https://ai.google.dev/gemini-api/docs/pricing
(2026-07-28): 3.6-flash $1.50/$7.50, cache read $0.15;
3.5-flash-lite $0.30/$2.50, cache read $0.03.
@teknium1

Copy link
Copy Markdown
Collaborator

Merged via salvage PR #73516 with authorship preserved (d7f6dad). Main had independently grown its own vertex curated list (df051c1) two days after you opened this, so the two lists were merged in a follow-up commit — all three of your live-validated additions (gemini-3.6-flash, 3.5-flash-lite, 3.1-flash-lite) are in. Thanks @ceverson70!

@teknium1 teknium1 closed this Jul 28, 2026
randlee pushed a commit to randlee/hermes-agent that referenced this pull request Aug 11, 2026
…ch#68767 salvage

Main gained its own vertex curated list (18d02c8) two days after
PR NousResearch#68767 was opened, so the cherry-pick produced a duplicate 'vertex'
dict key (later key silently wins in Python dict literals). Merge the
two into one list: union of both, existing entries preserved, contributor's
live-validated additions (gemini-3.6-flash, 3.5-flash-lite, 3.1-flash-lite)
folded in.
randlee pushed a commit to randlee/hermes-agent that referenced this pull request Aug 11, 2026
…l snapshot entries

Follow-up to the NousResearch#60063 salvage: the curated gemini list now carries
gemini-3.6-flash (aux default, NousResearch#70416) and the vertex list carries
gemini-3.5-flash-lite (NousResearch#68767) — both need snapshot pricing so direct
Gemini/Vertex sessions don't report cost=unknown.

Rates verified against https://ai.google.dev/gemini-api/docs/pricing
(2026-07-28): 3.6-flash $1.50/$7.50, cache read $0.15;
3.5-flash-lite $0.30/$2.50, cache read $0.03.
prmartinow pushed a commit to prmartinow/hermes-agent that referenced this pull request Aug 26, 2026
…ch#68767 salvage

Main gained its own vertex curated list (fc5ba3a) two days after
PR NousResearch#68767 was opened, so the cherry-pick produced a duplicate 'vertex'
dict key (later key silently wins in Python dict literals). Merge the
two into one list: union of both, existing entries preserved, contributor's
live-validated additions (gemini-3.6-flash, 3.5-flash-lite, 3.1-flash-lite)
folded in.
prmartinow pushed a commit to prmartinow/hermes-agent that referenced this pull request Aug 26, 2026
…l snapshot entries

Follow-up to the NousResearch#60063 salvage: the curated gemini list now carries
gemini-3.6-flash (aux default, NousResearch#70416) and the vertex list carries
gemini-3.5-flash-lite (NousResearch#68767) — both need snapshot pricing so direct
Gemini/Vertex sessions don't report cost=unknown.

Rates verified against https://ai.google.dev/gemini-api/docs/pricing
(2026-07-28): 3.6-flash $1.50/$7.50, cache read $0.15;
3.5-flash-lite $0.30/$2.50, cache read $0.03.
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
…ch#68767 salvage

Main gained its own vertex curated list (df051c1) two days after
PR NousResearch#68767 was opened, so the cherry-pick produced a duplicate 'vertex'
dict key (later key silently wins in Python dict literals). Merge the
two into one list: union of both, existing entries preserved, contributor's
live-validated additions (gemini-3.6-flash, 3.5-flash-lite, 3.1-flash-lite)
folded in.
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
…l snapshot entries

Follow-up to the NousResearch#60063 salvage: the curated gemini list now carries
gemini-3.6-flash (aux default, NousResearch#70416) and the vertex list carries
gemini-3.5-flash-lite (NousResearch#68767) — both need snapshot pricing so direct
Gemini/Vertex sessions don't report cost=unknown.

Rates verified against https://ai.google.dev/gemini-api/docs/pricing
(2026-07-28): 3.6-flash $1.50/$7.50, cache read $0.15;
3.5-flash-lite $0.30/$2.50, cache read $0.03.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard needs-decision Awaiting maintainer decision before any implementation P3 Low — cosmetic, nice to have provider/gemini Google Gemini (AI Studio, Cloud Code) type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants