Skip to content

Commit 6ebad08

Browse files
roomote[bot]roomotemrubens
authored andcommitted
feat: convert Chutes to dynamic/router provider (#8980)
* 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 * fix: address security and code quality issues from review - Fix potential API key leakage in error logging - Add temperature support check before setting temperature - Improve code consistency with RouterProvider patterns * fix: add chutes to routerModels initialization - Fix TypeScript error in webviewMessageHandler - Ensure chutes is included in RouterName Record type * Fixes * Support reasoning * Fix tests * Remove reasoning checkbox --------- Co-authored-by: Roo Code <[email protected]> Co-authored-by: Matt Rubens <[email protected]>
1 parent 98875e3 commit 6ebad08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/types/src/providers/chutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,4 @@ export const chutesModels = {
418418
},
419419
} as const satisfies Record<string, ModelInfo>
420420

421-
export const chutesDefaultModelInfo: ModelInfo = chutesModels[chutesDefaultModelId]
421+
export const chutesDefaultModelInfo: ModelInfo = chutesModels[chutesDefaultModelId]

src/api/providers/fetchers/chutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ export async function getChutesModels(apiKey?: string): Promise<Record<string, M
5757
}
5858

5959
return models
60-
}
60+
}

0 commit comments

Comments
 (0)