Skip to content

The agent that grows with you

fix(models): restore _OPENCODE_FREE_EXCLUDED_MODELS used by the Zen/Go live pickers

Ritesh Patelce6c45d335b1
diff --git a/hermes_cli/models.py b/hermes_cli/models.py
index f8a1682d863..4207ed7d8f4 100644
--- a/hermes_cli/models.py
+++ b/hermes_cli/models.py
@@ -1434,6 +1434,13 @@ _PROVIDER_CATALOG_FETCHERS: dict[str, Any] = {
"bedrock": _bedrock_catalog}
+# ``-free`` slugs the relay still LISTS but no longer serves (or that are keyed twins, not
+# anonymous-servable). The keyless free-tier catalog is gone, but the live-first keyed Zen/Go
+# pickers still filter through this so a stale live listing can never route into a 400/403
+# (#111749). Kept as the extension point for future relay delistings.
+_OPENCODE_FREE_EXCLUDED_MODELS = frozenset({"ox-alpha-free", "deepseek-v4-flash-free"})
+
+
def _profile_live_catalog(normalized: str) -> Optional[list[str]]:
"""Generic live fetch for any provider registered in providers/ with ``auth_type="api_key"``.