Skip to content

Commit 79dd3fb

Browse files
committed
test: add claude-fable-5 model mock to fix failing provider tests
1 parent 3f9ba3d commit 79dd3fb

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ vitest.mock("../fetchers/modelCache", () => ({
3838
cacheReadsPrice: 0.3,
3939
description: "Claude 4 Sonnet",
4040
},
41+
"anthropic/claude-fable-5": {
42+
maxTokens: 32768,
43+
contextWindow: 200000,
44+
supportsImages: true,
45+
supportsPromptCache: true,
46+
inputPrice: 1.0,
47+
outputPrice: 5.0,
48+
cacheWritesPrice: 1.25,
49+
cacheReadsPrice: 0.1,
50+
description: "Claude Fable 5",
51+
},
4152
})
4253
}),
4354
}))

src/api/providers/__tests__/vercel-ai-gateway.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ vitest.mock("../fetchers/modelCache", () => ({
3838
cacheReadsPrice: 0.1,
3939
description: "Claude 3.5 Haiku",
4040
},
41+
"anthropic/claude-fable-5": {
42+
maxTokens: 32768,
43+
contextWindow: 200000,
44+
supportsImages: true,
45+
supportsPromptCache: true,
46+
inputPrice: 1.0,
47+
outputPrice: 5.0,
48+
cacheWritesPrice: 1.25,
49+
cacheReadsPrice: 0.1,
50+
description: "Claude Fable 5",
51+
},
4152
"openai/gpt-4o": {
4253
maxTokens: 16000,
4354
contextWindow: 128000,

0 commit comments

Comments
 (0)