feat: update to latest Anthropic model lineup (Fable 5, Opus 4.8, Sonnet 5)

Adds claude-fable-5 as a new tier and swaps the default Opus/Sonnet
entries from 4.6 to Opus 4.8 / Sonnet 5, with refreshed pricing and
context-window metadata.
This commit is contained in:
2026-07-16 08:29:45 +02:00
parent c951185cdc
commit 5575d335b7
5 changed files with 33 additions and 21 deletions
+2 -2
View File
@@ -69,9 +69,9 @@ async def get_provider_for_model(model_str: str, user_id: str | None = None) ->
If the model string has no provider prefix, the default provider is used.
Examples:
"anthropic:claude-sonnet-4-6" → (AnthropicProvider, "claude-sonnet-4-6")
"anthropic:claude-sonnet-5" → (AnthropicProvider, "claude-sonnet-5")
"openrouter:openai/gpt-4o" → (OpenRouterProvider, "openai/gpt-4o")
"claude-sonnet-4-6" → (default_provider, "claude-sonnet-4-6")
"claude-sonnet-5" → (default_provider, "claude-sonnet-5")
"""
_known = {"anthropic", "openrouter", "openai"}
if ":" in model_str: