The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs+test(models): Gemini 3.7/3.8 Flash in the Gemini and Vertex guides; curated Google Flash pickers must bill via the official snapshot
Tekniumb706529476bf
diff --git a/tests/agent/test_usage_pricing.py b/tests/agent/test_usage_pricing.pyindex 4d4e8a1ea88..5895985e83b 100644--- a/tests/agent/test_usage_pricing.py+++ b/tests/agent/test_usage_pricing.py@@ -358,6 +358,34 @@ def test_vertex_default_model_estimates_cached_usage(monkeypatch):assert result.amount_usd is not None and result.amount_usd > 0+def test_curated_google_flash_models_resolve_official_snapshot_pricing(monkeypatch):+ """Every ``google/gemini-*-flash`` model curated for the OpenRouter and Nous+ pickers must also bill through the Google official-docs snapshot on the+ direct Gemini and Vertex routes — a model pickable via the aggregators but+ ``unknown`` to Google-route accounting is a catalog/pricing drift.+ """+ from hermes_cli.models_catalog_static import OPENROUTER_MODELS, _PROVIDER_MODELS++ monkeypatch.setattr(+ "agent.usage_pricing.fetch_endpoint_model_metadata",+ lambda *_args, **_kwargs: {},+ )+ curated = {m for m, _desc in OPENROUTER_MODELS} | set(_PROVIDER_MODELS["nous"])+ flash = sorted(m for m in curated if m.startswith("google/gemini-") and m.endswith("-flash"))+ assert flash, "expected curated google/gemini-*-flash picker entries"+ usage = CanonicalUsage(input_tokens=1_000_000, output_tokens=1_000_000, cache_read_tokens=1_000_000)+ for model in flash:+ bare = model.split("/", 1)[1]+ gemini = estimate_usage_cost(bare, usage, provider="gemini")+ vertex = estimate_usage_cost(model, usage, provider="vertex")+ assert gemini.status == "estimated", (model, gemini.status)+ assert gemini.source == "official_docs_snapshot", model+ assert vertex.amount_usd == gemini.amount_usd, model+ # Direct-route models the picker offers must also be pickable directly.+ assert bare in _PROVIDER_MODELS["gemini"], model+ assert model in _PROVIDER_MODELS["vertex"], model++def test_normalize_usage_minimax_logs_cache_observability(caplog):"""MiniMax providers on the Anthropic wire emit a debug-levelcache-observability line recording the observable fieldsdiff --git a/website/docs/guides/google-gemini.md b/website/docs/guides/google-gemini.mdindex c5d57fe40df..001c3cb7101 100644--- a/website/docs/guides/google-gemini.md+++ b/website/docs/guides/google-gemini.md@@ -104,6 +104,7 @@ The `hermes model` picker shows Gemini models maintained in Hermes' provider reg| Model | ID | Notes ||-------|----|-------|+| Gemini 3.8 Flash | `gemini-3.8-flash` | Most capable Flash model for long-horizon agentic and coding work || Gemini 3.7 Flash | `gemini-3.7-flash` | Recommended default balance of speed, capability, and multimodal understanding || Gemini 3.1 Pro Preview | `gemini-3.1-pro-preview` | Most capable reasoning, math, and coding model || Gemini 3.5 Flash Lite | `gemini-3.5-flash-lite` | Fastest and lowest-cost option for lightweight tasks |diff --git a/website/docs/guides/google-vertex.md b/website/docs/guides/google-vertex.mdindex 54923db967d..33bde3653b9 100644--- a/website/docs/guides/google-vertex.md+++ b/website/docs/guides/google-vertex.md@@ -88,6 +88,8 @@ Vertex requires the `google/` vendor prefix on model IDs. The `hermes model` pic| Model | ID ||-------|----|+| Gemini 3.8 Flash | `google/gemini-3.8-flash` |+| Gemini 3.7 Flash | `google/gemini-3.7-flash` || Gemini 3.1 Pro Preview | `google/gemini-3.1-pro-preview` || Gemini 3 Pro Preview | `google/gemini-3-pro-preview` || Gemini 3 Flash Preview | `google/gemini-3-flash-preview` |