From 5f87a328a556e513f52ec716923995f60a9d9f53 Mon Sep 17 00:00:00 2001 From: Stefan Ernst <24554551+stefan-ernst@users.noreply.github.com> Date: Mon, 2 Nov 2026 13:46:10 +0100 Subject: [PATCH] chore(llm): drop pre-4.7 Claude models from the default catalog (WI-1963) The support floor is Claude 4.7+. Every 4.7+ model uses adaptive thinking; extended thinking (thinking.type: enabled + budget_tokens) is deprecated and 4.7+ reject it. The adapter always emits adaptive thinking for Anthropic, so a pre-4.7 model selected from the catalog would reject the default request. Remove claude-haiku-4-5-20251001 from the Anthropic provider and replace the OpenRouter anthropic/claude-sonnet-4 and claude-opus-4 entries with their 5-generation equivalents. --- internal/llm/llm_providers.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/llm/llm_providers.json b/internal/llm/llm_providers.json index d211a3560..538c03f76 100644 --- a/internal/llm/llm_providers.json +++ b/internal/llm/llm_providers.json @@ -24,8 +24,7 @@ "models": [ {"id": "claude-fable-5", "name": "Claude Fable 5", "max_tokens": 128000, "context_window": 1000000, "supports_vision": true, "pricing": {"prompt": 0.00001, "completion": 0.00005, "cache_read": 0.000001, "cache_write": 0.0000125}}, {"id": "claude-opus-5", "name": "Claude Opus 5", "max_tokens": 128000, "context_window": 1000000, "supports_vision": true, "pricing": {"prompt": 0.000005, "completion": 0.000025, "cache_read": 0.0000005, "cache_write": 0.00000625}}, - {"id": "claude-sonnet-5", "name": "Claude Sonnet 5", "max_tokens": 128000, "context_window": 1000000, "supports_vision": true, "pricing": {"prompt": 0.000002, "completion": 0.00001, "cache_read": 0.0000002, "cache_write": 0.0000025}}, - {"id": "claude-haiku-4-5-20251001", "name": "Claude Haiku 4.5", "max_tokens": 64000, "context_window": 200000, "supports_vision": true, "pricing": {"prompt": 0.000001, "completion": 0.000005, "cache_read": 0.0000001, "cache_write": 0.00000125}} + {"id": "claude-sonnet-5", "name": "Claude Sonnet 5", "max_tokens": 128000, "context_window": 1000000, "supports_vision": true, "pricing": {"prompt": 0.000002, "completion": 0.00001, "cache_read": 0.0000002, "cache_write": 0.0000025}} ] }, { @@ -82,8 +81,8 @@ "models_auth_scheme": "bearer", "models_response_format": "openai", "models": [ - {"id": "anthropic/claude-sonnet-4", "name": "Claude Sonnet 4", "max_tokens": 64000, "context_window": 1000000, "supports_vision": true}, - {"id": "anthropic/claude-opus-4", "name": "Claude Opus 4", "max_tokens": 32000, "context_window": 200000, "supports_vision": true}, + {"id": "anthropic/claude-sonnet-5", "name": "Claude Sonnet 5", "max_tokens": 128000, "context_window": 1000000, "supports_vision": true}, + {"id": "anthropic/claude-opus-5", "name": "Claude Opus 5", "max_tokens": 128000, "context_window": 1000000, "supports_vision": true}, {"id": "openai/gpt-4o", "name": "GPT-4o", "max_tokens": 16384, "context_window": 128000, "supports_vision": true}, {"id": "openai/gpt-4o-mini", "name": "GPT-4o Mini", "max_tokens": 16384, "context_window": 128000, "supports_vision": true}, {"id": "google/gemini-2.5-pro", "name": "Gemini 2.5 Pro", "max_tokens": 65536, "context_window": 1048576, "supports_vision": true},