Skip to content

Commit 88e90be

Browse files
committed
feat: add Claude Sonnet 4.5 1M model to Claude Code provider
- Added claude-sonnet-4-5-1m model configuration to anthropicModels - Added claude-sonnet-4-5-1m model to claudeCodeModels - Model has 1M context window with appropriate pricing tiers Fixes #8585
1 parent 507a600 commit 88e90be

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

packages/types/src/providers/anthropic.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ export const anthropicModels = {
2828
},
2929
],
3030
},
31+
"claude-sonnet-4-5-1m": {
32+
maxTokens: 64_000, // Overridden to 8k if `enableReasoningEffort` is false.
33+
contextWindow: 1_000_000, // 1M context window
34+
supportsImages: true,
35+
supportsComputerUse: true,
36+
supportsPromptCache: true,
37+
inputPrice: 6.0, // $6 per million input tokens (1M context)
38+
outputPrice: 22.5, // $22.50 per million output tokens (1M context)
39+
cacheWritesPrice: 7.5, // $7.50 per million tokens (1M context)
40+
cacheReadsPrice: 0.6, // $0.60 per million tokens (1M context)
41+
supportsReasoningBudget: true,
42+
},
3143
"claude-sonnet-4-20250514": {
3244
maxTokens: 64_000, // Overridden to 8k if `enableReasoningEffort` is false.
3345
contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07'

packages/types/src/providers/claude-code.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ export const claudeCodeModels = {
4848
supportsReasoningBudget: false,
4949
requiredReasoningBudget: false,
5050
},
51+
"claude-sonnet-4-5-1m": {
52+
...anthropicModels["claude-sonnet-4-5-1m"],
53+
supportsImages: false,
54+
supportsPromptCache: true, // Claude Code does report cache tokens
55+
supportsReasoningEffort: false,
56+
supportsReasoningBudget: false,
57+
requiredReasoningBudget: false,
58+
},
5159
"claude-sonnet-4-20250514": {
5260
...anthropicModels["claude-sonnet-4-20250514"],
5361
supportsImages: false,

0 commit comments

Comments
 (0)