Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit e287a82

Browse files
roomote[bot]roomote
andauthored
fix: remove legacy Claude 2 series models from Bedrock provider (#10501)
Co-authored-by: Roo Code <roomote@roocode.com>
1 parent 9700eab commit e287a82

2 files changed

Lines changed: 3 additions & 36 deletions

File tree

packages/types/src/providers/bedrock.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -264,39 +264,6 @@ export const bedrockModels = {
264264
inputPrice: 0.25,
265265
outputPrice: 1.25,
266266
},
267-
"anthropic.claude-2-1-v1:0": {
268-
maxTokens: 4096,
269-
contextWindow: 100_000,
270-
supportsImages: false,
271-
supportsPromptCache: false,
272-
supportsNativeTools: true,
273-
defaultToolProtocol: "native",
274-
inputPrice: 8.0,
275-
outputPrice: 24.0,
276-
description: "Claude 2.1",
277-
},
278-
"anthropic.claude-2-0-v1:0": {
279-
maxTokens: 4096,
280-
contextWindow: 100_000,
281-
supportsImages: false,
282-
supportsPromptCache: false,
283-
supportsNativeTools: true,
284-
defaultToolProtocol: "native",
285-
inputPrice: 8.0,
286-
outputPrice: 24.0,
287-
description: "Claude 2.0",
288-
},
289-
"anthropic.claude-instant-v1:0": {
290-
maxTokens: 4096,
291-
contextWindow: 100_000,
292-
supportsImages: false,
293-
supportsPromptCache: false,
294-
supportsNativeTools: true,
295-
defaultToolProtocol: "native",
296-
inputPrice: 0.8,
297-
outputPrice: 2.4,
298-
description: "Claude Instant",
299-
},
300267
"deepseek.r1-v1:0": {
301268
maxTokens: 32_768,
302269
contextWindow: 128_000,

src/api/providers/__tests__/bedrock-invokedModelId.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe("AwsBedrockHandler with invokedModelId", () => {
122122
trace: {
123123
promptRouter: {
124124
invokedModelId:
125-
"arn:aws:bedrock:us-west-2:699475926481:inference-profile/us.anthropic.claude-2-1-v1:0",
125+
"arn:aws:bedrock:us-west-2:699475926481:inference-profile/us.anthropic.claude-3-opus-20240229-v1:0",
126126
usage: {
127127
inputTokens: 150,
128128
outputTokens: 250,
@@ -162,12 +162,12 @@ describe("AwsBedrockHandler with invokedModelId", () => {
162162
}
163163

164164
// Verify that getModelById was called with the id, not the full arn
165-
expect(getModelByIdSpy).toHaveBeenCalledWith("anthropic.claude-2-1-v1:0", "inference-profile")
165+
expect(getModelByIdSpy).toHaveBeenCalledWith("anthropic.claude-3-opus-20240229-v1:0", "inference-profile")
166166

167167
// Verify that getModel returns the updated model info
168168
const costModel = handler.getModel()
169169
//expect(costModel.id).toBe("anthropic.claude-3-5-sonnet-20240620-v1:0")
170-
expect(costModel.info.inputPrice).toBe(8)
170+
expect(costModel.info.inputPrice).toBe(15)
171171

172172
// Verify that a usage event was emitted after updating the costModelConfig
173173
const usageEvents = events.filter((event) => event.type === "usage")

0 commit comments

Comments
 (0)