mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Merge branch 'main' into watsonx-ai-integration
This commit is contained in:
parent
b7bd92f648
commit
4723c8493d
3 changed files with 3 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ export const dynamicProviders = [
|
|||
"requesty",
|
||||
"unbound",
|
||||
"glama",
|
||||
"watsonx",
|
||||
] as const
|
||||
|
||||
export type DynamicProvider = (typeof dynamicProviders)[number]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { safeWriteJson } from "../../../utils/safeWriteJson"
|
|||
|
||||
import { ContextProxy } from "../../../core/config/ContextProxy"
|
||||
import { getCacheDirectoryPath } from "../../../utils/storage"
|
||||
import type { toRouterName, ModelRecord } from "../../../shared/api"
|
||||
import type { ModelRecord, RouterName } from "../../../shared/api"
|
||||
import { fileExistsAtPath } from "../../../utils/fs"
|
||||
|
||||
import { getOpenRouterModels } from "./openrouter"
|
||||
|
|
|
|||
|
|
@ -157,6 +157,7 @@ const dynamicProviderExtras = {
|
|||
glama: {} as {}, // eslint-disable-line @typescript-eslint/no-empty-object-type
|
||||
ollama: {} as {}, // eslint-disable-line @typescript-eslint/no-empty-object-type
|
||||
lmstudio: {} as {}, // eslint-disable-line @typescript-eslint/no-empty-object-type
|
||||
watsonx: {} as { apiKey: string; baseUrl: string },
|
||||
} as const satisfies Record<RouterName, object>
|
||||
|
||||
// Build the dynamic options union from the map, intersected with CommonFetchParams
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue