From dd2eb49e11d4f4b5d351d6dae830ab09332347c3 Mon Sep 17 00:00:00 2001 From: Prasang Prajapati Date: Tue, 26 Aug 2025 12:39:28 -0400 Subject: [PATCH] fix providers issue --- src/api/providers/fetchers/modelCache.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/providers/fetchers/modelCache.ts b/src/api/providers/fetchers/modelCache.ts index f4c240a61c..4e296302d7 100644 --- a/src/api/providers/fetchers/modelCache.ts +++ b/src/api/providers/fetchers/modelCache.ts @@ -18,6 +18,7 @@ import { GetModelsOptions } from "../../../shared/api" import { getOllamaModels } from "./ollama" import { getLMStudioModels } from "./lmstudio" import { getIOIntelligenceModels } from "./io-intelligence" +import { getWatsonxModels } from "./watsonx" const memoryCache = new NodeCache({ stdTTL: 5 * 60, checkperiod: 5 * 60 }) async function writeModels(router: RouterName, data: ModelRecord) { @@ -81,6 +82,9 @@ export const getModels = async (options: GetModelsOptions): Promise case "io-intelligence": models = await getIOIntelligenceModels(options.apiKey) break + case "watsonx": + models = await getWatsonxModels(options.apiKey) + break default: { // Ensures router is exhaustively checked if RouterName is a strict union const exhaustiveCheck: never = provider