[eric] backend: add Fable 5 subscription (cc/) row, verified live 200 on the Claude sub

This commit is contained in:
ciregenz
2026-06-09 15:58:19 -07:00
parent 35bef3b63a
commit 1fd32b7bc3
2 changed files with 9 additions and 3 deletions
+4
View File
@@ -628,6 +628,10 @@ async def list_models():
# by the subscription, not pay-per-use.
for r in rows:
r["billing_kind"] = "subscription"
# Sub-only models with no adaptive twin (Fable 5) won't ride the relabeled rows, so add their cc/ entry.
adaptive_ids = {m.get("model_id") for m in adaptive}
cc_only = [m for m in cc_variants if m.get("model_id") not in adaptive_ids]
rows = _serialize(cc_only) + rows
# With BOTH a key and a sub the adaptive rows above run on the key, so also surface the
# subscription (cc) variants; they route via 9router's cc/ lane and stay selectable, the
# way OpenAI/Gemini show both a subscription row and an API-key row.
+5 -3
View File
@@ -67,9 +67,11 @@ BUILTIN_MODELS: dict[str, list[dict[str, Any]]] = {
"model_id": "claude-haiku-4-5", "router_model_id": "cc/claude-haiku-4-5-20251001", "api": "anthropic", "reasoning": True, "route": "cc"},
# Fable 5 (released 2026-05-28): new flagship tier ABOVE Opus, 1M ctx,
# 128k out, $10/$50. API-key route only: a brand-new id 404s on our pinned
# 9Router 0.3.60 sub route (same as GPT-5.5's cx entry), and Claude-sub
# serving of Fable is unverified, add the cc/ entry once it's proven live.
# 128k out, $10/$50. The cc/ sub row is on trial: brand-new ids have 404'd
# our pinned 9Router 0.3.60 before (GPT-5.5's cx entry did) and Claude-sub
# serving of Fable is unverified, so pull this row if it errors live.
{"value": "fable-5-cc", "label": "Claude Fable 5", "context_window": 1_000_000,
"model_id": "claude-fable-5", "router_model_id": "cc/claude-fable-5", "api": "anthropic", "reasoning": True, "route": "cc"},
{"value": "fable-5-api", "label": "Claude Fable 5 (API key)", "context_window": 1_000_000,
"model_id": "claude-fable-5", "router_model_id": "claude-fable-5", "api": "anthropic", "reasoning": True, "route": "api"},
{"value": "opus-4-8-api", "label": "Claude Opus 4.8 (API key)", "context_window": 1_000_000,