Skip to content

Commit 76ded7e

Browse files
committed
feat: convert Chutes to dynamic/router provider
- Add chutes to dynamicProviders array in provider-settings - Add chutes entry to dynamicProviderExtras in api.ts - Create fetcher function for Chutes models API - Convert ChutesHandler to extend RouterProvider - Update tests to work with dynamic provider setup - Export chutesDefaultModelInfo for RouterProvider constructor
1 parent ca10cba commit 76ded7e

File tree

7 files changed

+154
-346
lines changed

7 files changed

+154
-346
lines changed

packages/types/src/provider-settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const dynamicProviders = [
5050
"unbound",
5151
"glama",
5252
"roo",
53+
"chutes",
5354
] as const
5455

5556
export type DynamicProvider = (typeof dynamicProviders)[number]

packages/types/src/providers/chutes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ export type ChutesModelId =
4545

4646
export const chutesDefaultModelId: ChutesModelId = "deepseek-ai/DeepSeek-R1-0528"
4747

48+
export const chutesDefaultModelInfo: ModelInfo = {
49+
maxTokens: 32768,
50+
contextWindow: 163840,
51+
supportsImages: false,
52+
supportsPromptCache: false,
53+
inputPrice: 0,
54+
outputPrice: 0,
55+
description: "DeepSeek R1 0528 model.",
56+
}
57+
4858
export const chutesModels = {
4959
"deepseek-ai/DeepSeek-R1-0528": {
5060
maxTokens: 32768,

0 commit comments

Comments
 (0)