Skip to content

Commit a844a7b

Browse files
committed
test: include new default models in mocks for OpenRouter and Unbound (claude-sonnet-4.5 / claude-sonnet-4-5)
1 parent c600f59 commit a844a7b

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/api/providers/__tests__/openrouter.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ vitest.mock("../fetchers/modelCache", () => ({
2828
description: "Claude 3.7 Sonnet",
2929
thinking: false,
3030
},
31+
"anthropic/claude-sonnet-4.5": {
32+
maxTokens: 8192,
33+
contextWindow: 200000,
34+
supportsImages: true,
35+
supportsPromptCache: true,
36+
inputPrice: 3,
37+
outputPrice: 15,
38+
cacheWritesPrice: 3.75,
39+
cacheReadsPrice: 0.3,
40+
description: "Claude 4.5 Sonnet",
41+
thinking: false,
42+
},
3143
"anthropic/claude-3.7-sonnet:thinking": {
3244
maxTokens: 128000,
3345
contextWindow: 200000,

src/api/providers/__tests__/unbound.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ vitest.mock("../fetchers/modelCache", () => ({
2222
description: "Claude 3.5 Sonnet",
2323
thinking: false,
2424
},
25+
"anthropic/claude-sonnet-4-5": {
26+
maxTokens: 8192,
27+
contextWindow: 200000,
28+
supportsImages: true,
29+
supportsPromptCache: true,
30+
inputPrice: 3,
31+
outputPrice: 15,
32+
cacheWritesPrice: 3.75,
33+
cacheReadsPrice: 0.3,
34+
description: "Claude 4.5 Sonnet",
35+
thinking: false,
36+
},
2537
"anthropic/claude-3-7-sonnet-20250219": {
2638
maxTokens: 8192,
2739
contextWindow: 200000,

0 commit comments

Comments
 (0)