From a774f68b96dc7dd1d2325662cff86717fc7edc78 Mon Sep 17 00:00:00 2001 From: ciregenz Date: Tue, 9 Jun 2026 13:27:45 -0700 Subject: [PATCH] [eric] providers: add Claude Fable 5 on the API-key route (sub route held on pinned 9router) --- backend/apps/agents/providers/pricing.py | 2 ++ backend/apps/agents/providers/registry.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/backend/apps/agents/providers/pricing.py b/backend/apps/agents/providers/pricing.py index 7877691a..63035aa3 100644 --- a/backend/apps/agents/providers/pricing.py +++ b/backend/apps/agents/providers/pricing.py @@ -29,6 +29,8 @@ from __future__ import annotations # open / strong sub, 3 solid mid, 2 small specialised, 1 nano. MODEL_TIERS: dict[str, tuple[int, int, int]] = { # Anthropic + "claude-fable-5": (5, 2, 5), + "anthropic/claude-fable-5": (5, 2, 5), "claude-opus-4-8": (5, 2, 5), "claude-opus-4.8": (5, 2, 5), "anthropic/claude-opus-4.8": (5, 2, 5), diff --git a/backend/apps/agents/providers/registry.py b/backend/apps/agents/providers/registry.py index 54504b5d..0c2457e9 100644 --- a/backend/apps/agents/providers/registry.py +++ b/backend/apps/agents/providers/registry.py @@ -66,6 +66,12 @@ BUILTIN_MODELS: dict[str, list[dict[str, Any]]] = { {"value": "haiku-cc", "label": "Claude Haiku 4.5", "context_window": 200_000, "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. + {"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, "model_id": "claude-opus-4-8", "router_model_id": "claude-opus-4-8", "api": "anthropic", "reasoning": True, "route": "api"}, {"value": "opus-4-7-api", "label": "Claude Opus 4.7 (API key)", "context_window": 1_000_000,