Merge branch 'main' into watsonx-ai-integration

This commit is contained in:
Prasang Prajapati 2025-09-17 19:10:20 -04:00
parent b7bd92f648
commit 4723c8493d
3 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,7 @@ export const dynamicProviders = [
"requesty",
"unbound",
"glama",
"watsonx",
] as const
export type DynamicProvider = (typeof dynamicProviders)[number]

View file

@ -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"

View file

@ -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