File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export const dynamicProviders = [
4949 "requesty" ,
5050 "unbound" ,
5151 "glama" ,
52+ "watsonx" ,
5253] as const
5354
5455export type DynamicProvider = ( typeof dynamicProviders ) [ number ]
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { safeWriteJson } from "../../../utils/safeWriteJson"
99
1010import { ContextProxy } from "../../../core/config/ContextProxy"
1111import { getCacheDirectoryPath } from "../../../utils/storage"
12- import type { toRouterName , ModelRecord } from "../../../shared/api"
12+ import type { ModelRecord , RouterName } from "../../../shared/api"
1313import { fileExistsAtPath } from "../../../utils/fs"
1414
1515import { getOpenRouterModels } from "./openrouter"
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ const dynamicProviderExtras = {
157157 glama : { } as { } , // eslint-disable-line @typescript-eslint/no-empty-object-type
158158 ollama : { } as { } , // eslint-disable-line @typescript-eslint/no-empty-object-type
159159 lmstudio : { } as { } , // eslint-disable-line @typescript-eslint/no-empty-object-type
160+ watsonx : { } as { apiKey : string ; baseUrl : string } ,
160161} as const satisfies Record < RouterName , object >
161162
162163// Build the dynamic options union from the map, intersected with CommonFetchParams
You can’t perform that action at this time.
0 commit comments