Skip to content

Commit 4723c84

Browse files
Merge branch 'main' into watsonx-ai-integration
1 parent b7bd92f commit 4723c84

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

packages/types/src/provider-settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const dynamicProviders = [
4949
"requesty",
5050
"unbound",
5151
"glama",
52+
"watsonx",
5253
] as const
5354

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

src/api/providers/fetchers/modelCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { safeWriteJson } from "../../../utils/safeWriteJson"
99

1010
import { ContextProxy } from "../../../core/config/ContextProxy"
1111
import { getCacheDirectoryPath } from "../../../utils/storage"
12-
import type { toRouterName, ModelRecord } from "../../../shared/api"
12+
import type { ModelRecord, RouterName } from "../../../shared/api"
1313
import { fileExistsAtPath } from "../../../utils/fs"
1414

1515
import { getOpenRouterModels } from "./openrouter"

src/shared/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)