Skip to content

Commit 480ad4d

Browse files
committed
feat(models): add Claude Haiku 4.5 dated IDs; remove undated alias
1 parent 6b8c21f commit 480ad4d

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

packages/types/src/providers/anthropic.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ export const anthropicModels = {
139139
cacheWritesPrice: 0.3,
140140
cacheReadsPrice: 0.03,
141141
},
142+
"claude-haiku-4-5-20251001": {
143+
maxTokens: 64_000,
144+
contextWindow: 200_000,
145+
supportsImages: true,
146+
supportsPromptCache: true,
147+
inputPrice: 1.0,
148+
outputPrice: 5.0,
149+
cacheWritesPrice: 1.25,
150+
cacheReadsPrice: 0.1,
151+
supportsReasoningBudget: true,
152+
description:
153+
"Claude Haiku 4.5 delivers near-frontier intelligence at lightning speeds with extended thinking, vision, and multilingual support.",
154+
},
142155
} as const satisfies Record<string, ModelInfo>
143156

144157
export const ANTHROPIC_DEFAULT_MAX_TOKENS = 8192

packages/types/src/providers/bedrock.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,19 @@ export const bedrockModels = {
169169
maxCachePoints: 4,
170170
cachableFields: ["system", "messages", "tools"],
171171
},
172+
"anthropic.claude-haiku-4-5-20251001-v1:0": {
173+
maxTokens: 8192,
174+
contextWindow: 200_000,
175+
supportsImages: true,
176+
supportsPromptCache: true,
177+
inputPrice: 1.0,
178+
outputPrice: 5.0,
179+
cacheWritesPrice: 1.25, // 5m cache writes
180+
cacheReadsPrice: 0.1, // cache hits / refreshes
181+
minTokensPerCachePoint: 2048,
182+
maxCachePoints: 4,
183+
cachableFields: ["system", "messages", "tools"],
184+
},
172185
"anthropic.claude-3-5-sonnet-20240620-v1:0": {
173186
maxTokens: 8192,
174187
contextWindow: 200_000,

packages/types/src/providers/vertex.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,17 @@ export const vertexModels = {
187187
cacheReadsPrice: 0.3,
188188
supportsReasoningBudget: true,
189189
},
190+
"claude-haiku-4-5@20251001": {
191+
maxTokens: 8192,
192+
contextWindow: 200_000,
193+
supportsImages: true,
194+
supportsPromptCache: true,
195+
inputPrice: 1.0,
196+
outputPrice: 5.0,
197+
cacheWritesPrice: 1.25,
198+
cacheReadsPrice: 0.1,
199+
supportsReasoningBudget: true,
200+
},
190201
"claude-opus-4-1@20250805": {
191202
maxTokens: 8192,
192203
contextWindow: 200_000,

src/api/providers/anthropic.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
6262
case "claude-3-5-sonnet-20241022":
6363
case "claude-3-5-haiku-20241022":
6464
case "claude-3-opus-20240229":
65+
case "claude-haiku-4-5-20251001":
6566
case "claude-3-haiku-20240307": {
6667
/**
6768
* The latest message will be the new user message, one before
@@ -122,6 +123,7 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
122123
case "claude-3-5-sonnet-20241022":
123124
case "claude-3-5-haiku-20241022":
124125
case "claude-3-opus-20240229":
126+
case "claude-haiku-4-5-20251001":
125127
case "claude-3-haiku-20240307":
126128
betas.push("prompt-caching-2024-07-31")
127129
return { headers: { "anthropic-beta": betas.join(",") } }

0 commit comments

Comments
 (0)