Skip to content

Commit ba6d78d

Browse files
BirdInTheTreeclaude
andcommitted
Update Anthropic model: claude-sonnet-4-20250514 → claude-sonnet-4-6
Old dated model ID returns 404 from Anthropic API. Switch to current short alias (Sonnet 4.6) in both Python library default and JS browser pipeline, plus pricing table. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8dbce50 commit ba6d78d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/tvplot/html/parts/pipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function callAnthropic(systemPrompt, userMessage, apiKey, onChunk, maxToke
6868
'content-type': 'application/json',
6969
},
7070
body: JSON.stringify({
71-
model: 'claude-sonnet-4-20250514',
71+
model: 'claude-sonnet-4-6',
7272
max_tokens: maxTokens || _DEFAULT_MAX_TOKENS_ANTHROPIC,
7373
stream: true,
7474
system: systemPrompt,

src/tvplot/llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
# Pricing per million tokens (USD) — updated as of 2026-03
3232
_PRICING = {
33-
"claude-sonnet-4-20250514": {"input": 3.0, "output": 15.0},
33+
"claude-sonnet-4-6": {"input": 3.0, "output": 15.0},
3434
"claude-haiku-4-5-20251001": {"input": 0.80, "output": 4.0},
3535
"gpt-4o": {"input": 2.50, "output": 10.0},
3636
}
@@ -112,7 +112,7 @@ def resolved_model(self) -> str:
112112
if self.model:
113113
return self.model
114114
defaults = {
115-
"anthropic": "claude-sonnet-4-20250514",
115+
"anthropic": "claude-sonnet-4-6",
116116
"openai": "gpt-4o",
117117
}
118118
# Check known providers

0 commit comments

Comments
 (0)