Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

models: nemotron-3.5-lightning off Vercel, gemini-3.7-flash off a Google key (#436)

github-actions[bot]e2a69691a282
diff --git a/gateway/app.py b/gateway/app.py
index eed3f6e8..2d1bbda7 100644
--- a/gateway/app.py
+++ b/gateway/app.py
@@ -6712,13 +6712,26 @@ _VERCEL_RESLUG = {
# meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8", HTTP 405; "This model doesn't support tool
# use in streaming mode", HTTP 400 on llama-3.3-70b) and caps output at 8192, so no harness can
# drive a turn on it there; the same ids answer on OpenRouter (2026-09-13, every harness x 5).
-_VERCEL_NO_CHANNEL = {"llama-4-maverick", "llama-3.3-70b"}
+# Vercel's nemotron-3.5-lightning returns its tool calls with the arguments garbled (a `path` of
+# `": check.txt we need to provide the content \"kiwi\""`, streamed and not, 4 of 4 raw calls) or
+# none at all: hermes then made no call and said it had, pi's `write` arrived with no input
+# (2026-10-08, 3 of 3 turns). The same id on OpenRouter returned clean arguments 4 of 4 and passed
+# hermes, pi and opencode. It passed every base on Vercel in the 2026-10 matrix, so it is the
+# channel that changed; listed here until a re-measure on Vercel passes.
+_VERCEL_NO_CHANNEL = {"llama-4-maverick", "llama-3.3-70b", "nemotron-3.5-lightning"}
_VENDOR_MODELS["vercel"] = {c: _VERCEL_RESLUG.get(c, v) for c, v in _SHARED_SLUGS.items()
if c not in _VERCEL_NO_CHANNEL}
# Google AI Studio serves the catalog's Gemini models by their own ids.
# Google AI Studio serves the whole family under the plain id (its /v1beta/models, 2026-09-06, on
# the sponsored project; 40 generateContent-capable models, of which these eleven are chat models).
-_VENDOR_MODELS["google"] = {m: m for m in ("gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash", "gemini-3.5-flash-lite", "gemini-3.1-flash-lite", "gemini-3.1-pro-preview", "gemini-3-flash-preview")}
+# Not gemini-3.7-flash: since 2026-10-08 Google answers that id with gemini-3.8-flash (`modelVersion`
+# on generateContent, streamed and not; the other seven come back as themselves). Gemini CLI reports
+# the model it ran and fails the turn as a substitution; Google's OpenAI-compatible surface echoes
+# the id it was asked for, so every other base would have run 3.8 under the 3.7 name. TokenRouter,
+# Vercel and OpenRouter still serve it as itself.
+_GOOGLE_ANSWERS_AS_ANOTHER = {"gemini-3.7-flash"}
+_VENDOR_MODELS["google"] = {m: m for m in ("gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash", "gemini-3.5-flash-lite", "gemini-3.1-flash-lite", "gemini-3.1-pro-preview", "gemini-3-flash-preview")
+ if m not in _GOOGLE_ANSWERS_AS_ANOTHER}
# ── one order for every model list ────────────────────────────────────────────────────────────
diff --git a/gateway/tests/test_channel_exclusions.py b/gateway/tests/test_channel_exclusions.py
new file mode 100644
index 00000000..b19451b0
--- /dev/null
+++ b/gateway/tests/test_channel_exclusions.py
@@ -0,0 +1,41 @@
+"""A model a channel cannot run as itself is off that channel's table, so the effective map routes it to
+one that can: Vercel garbles nemotron-3.5-lightning's tool arguments, Google answers gemini-3.7-flash
+with gemini-3.8-flash (both measured 2026-10-08). Each stays served elsewhere."""
+import sys
+from pathlib import Path
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
+import app as gw # noqa: E402
+
+
+def test_vercel_does_not_offer_nemotron_lightning_and_openrouter_does():
+ assert "nemotron-3.5-lightning" not in gw._integration_models({"provider": "vercel"})
+ assert gw._integration_models({"provider": "openrouter"})["nemotron-3.5-lightning"] == "nvidia/nemotron-3.5-lightning"
+ # the rest of the Nemotron family stays on Vercel
+ assert "nemotron-3-super" in gw._integration_models({"provider": "vercel"})
+
+
+def test_google_does_not_offer_gemini_3_7_flash_and_the_aggregators_do():
+ assert "gemini-3.7-flash" not in gw._integration_models({"provider": "google"})
+ for p in ("vercel", "openrouter", "tokenrouter"):
+ assert "gemini-3.7-flash" in gw._integration_models({"provider": p}), p
+
+
+def test_the_map_routes_each_to_a_channel_that_serves_it(monkeypatch):
+ docs = [{"name": "Vercel", "provider": "vercel", "config": {"api_key": "k"}},
+ {"name": "Google", "provider": "google", "config": {"api_key": "k"}},
+ {"name": "OpenRouter", "provider": "openrouter", "config": {"api_key": "k"}}]
+
+ async def integrations():
+ return docs
+
+ async def stored():
+ return {}
+
+ monkeypatch.setattr(gw, "_integrations_doc", integrations)
+ monkeypatch.setattr(gw, "_model_map_doc", stored)
+ import asyncio
+ mm = asyncio.run(gw._effective_model_map())
+ assert mm["nemotron-3.5-lightning"] == "OpenRouter"
+ assert mm["gemini-3.7-flash"] == "Vercel"
+ assert mm["nemotron-3-super"] == "Vercel"
diff --git a/gateway/tests/test_gemini_backend.py b/gateway/tests/test_gemini_backend.py
index 445e386d..bafd980d 100644
--- a/gateway/tests/test_gemini_backend.py
+++ b/gateway/tests/test_gemini_backend.py
@@ -10,7 +10,10 @@ import app as gw # noqa: E402
def test_the_gemini_backend_is_wired_into_the_one_google_provider():
assert gw._INTEGRATION_WIRING[("google", "gemini")] == "google"
assert gw._PROVIDER_CATALOG["google"]["base_url"] == "https://generativelanguage.googleapis.com/v1beta/openai"
- assert set(gw._MODEL_CATALOG["gemini"]["models"]) <= set(gw._VENDOR_MODELS["google"])
+ # every Gemini CLI model runs on a Google key, except one Google answers with another model;
+ # that one runs where it is served as itself (TokenRouter, the hosted service)
+ assert set(gw._MODEL_CATALOG["gemini"]["models"]) - gw._GOOGLE_ANSWERS_AS_ANOTHER <= set(gw._VENDOR_MODELS["google"])
+ assert gw._GOOGLE_ANSWERS_AS_ANOTHER <= set(gw._VENDOR_MODELS["tokenrouter"])
assert gw._MODEL_CATALOG["gemini"]["default"] == "gemini-3.8-flash"
assert gw._MODEL_CATALOG["gemini"]["default"] in gw._MODEL_CATALOG["gemini"]["models"]
assert gw._BASE_CATALOG["gemini"]["backend"] == "gemini"
diff --git a/gateway/tests/test_google_provider.py b/gateway/tests/test_google_provider.py
index b4492f6d..9ee97ac8 100644
--- a/gateway/tests/test_google_provider.py
+++ b/gateway/tests/test_google_provider.py
@@ -9,10 +9,12 @@ import app as gw # noqa: E402
def test_google_serves_the_catalog_gemini_by_its_own_id():
table = gw._vendor_models("google")
- # the Gemini chat family, each served by Google under its plain id (read from /v1beta/models 2026-09-06)
- assert set(table) == {"gemini-3.8-flash", "gemini-3.7-flash", "gemini-3.6-flash", "gemini-3.5-flash",
+ # the Gemini chat family, each served by Google under its plain id (read from /v1beta/models 2026-09-06),
+ # but not an id Google answers with another model (gemini-3.7-flash comes back as 3.8, 2026-10-08)
+ assert set(table) == {"gemini-3.8-flash", "gemini-3.6-flash", "gemini-3.5-flash",
"gemini-3.5-flash-lite", "gemini-3.1-flash-lite", "gemini-3.1-pro-preview",
"gemini-3-flash-preview"}
+ assert "gemini-3.7-flash" not in gw._integration_models({"provider": "google"})
assert all(k == v for k, v in table.items())
assert gw._integration_models({"provider": "google"}) == gw._vendor_models("google")
@@ -104,7 +106,9 @@ def test_llmtr_and_the_aggregators_carry_fable_5_1_and_llmtr_the_gemini_family()
assert gw._VENDOR_MODELS["bedrock"]["claude-fable-5-1"] == "us.anthropic.claude-fable-5-1"
for agg in ("tokenrouter", "openrouter", "vercel", "llmtr"):
assert gw._VENDOR_MODELS[agg]["claude-fable-5-1"] == "anthropic/claude-fable-5.1", agg
- assert {m for m in gw._VENDOR_MODELS["llmtr"] if m.startswith("gemini")} == set(gw._VENDOR_MODELS["google"])
+ # the whole family, including the id Google itself now answers with another model (not measured on LLMTR)
+ assert {m for m in gw._VENDOR_MODELS["llmtr"] if m.startswith("gemini")} == (set(gw._VENDOR_MODELS["google"])
+ | gw._GOOGLE_ANSWERS_AS_ANOTHER)
for h, c in gw._MODEL_CATALOG.items():
if "claude-fable-5" in c["models"]:
assert "claude-fable-5-1" in c["models"], h