From 3bc6b45f9fb035a5fe4c45ab97c4255f4b4c56dd Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 27 Apr 2026 21:16:22 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20update=20Anthropic=20model=20catalog=20?= =?UTF-8?q?=E2=80=94=20add=20previous=20versions,=20fix=20context=20sizes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Claude Opus 4.6 and Sonnet 4.5 (previous versions, still available) - Fix context_k for Opus 4.7 and Sonnet 4.6: both have 1M context (was 200) - Haiku 4.5 context_k 200 is correct Co-Authored-By: Claude Sonnet 4.6 --- cortex/model_registry.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cortex/model_registry.py b/cortex/model_registry.py index 13c7bb2..1f1f11e 100644 --- a/cortex/model_registry.py +++ b/cortex/model_registry.py @@ -84,9 +84,13 @@ logger = logging.getLogger(__name__) # Users can add entries via the settings UI (Phase 2). ANTHROPIC_CATALOG: list[dict] = [ - {"id": "claude-opus-4-7", "label": "Claude Opus 4.7", "context_k": 200}, - {"id": "claude-sonnet-4-6", "label": "Claude Sonnet 4.6", "context_k": 200}, - {"id": "claude-haiku-4-5-20251001", "label": "Claude Haiku 4.5", "context_k": 200}, + # Latest + {"id": "claude-opus-4-7", "label": "Claude Opus 4.7", "context_k": 1000}, + {"id": "claude-sonnet-4-6", "label": "Claude Sonnet 4.6", "context_k": 1000}, + {"id": "claude-haiku-4-5-20251001", "label": "Claude Haiku 4.5", "context_k": 200}, + # Previous versions (still available, not deprecated) + {"id": "claude-opus-4-6", "label": "Claude Opus 4.6", "context_k": 1000}, + {"id": "claude-sonnet-4-5", "label": "Claude Sonnet 4.5", "context_k": 200}, ] GOOGLE_CATALOG: list[dict] = [