mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix providers issue
This commit is contained in:
parent
411cf01e7f
commit
eb0c60e73e
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ import { getOllamaModels } from "./ollama"
|
|||
import { getLMStudioModels } from "./lmstudio"
|
||||
import { getIOIntelligenceModels } from "./io-intelligence"
|
||||
import { getDeepInfraModels } from "./deepinfra"
|
||||
import { getWatsonxModels } from "./watsonx"
|
||||
|
||||
const memoryCache = new NodeCache({ stdTTL: 5 * 60, checkperiod: 5 * 60 })
|
||||
|
||||
async function writeModels(router: RouterName, data: ModelRecord) {
|
||||
|
|
@ -89,6 +91,9 @@ export const getModels = async (options: GetModelsOptions): Promise<ModelRecord>
|
|||
case "vercel-ai-gateway":
|
||||
models = await getVercelAiGatewayModels()
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue