Update src/api/providers/fetchers/modelCache.ts

Co-authored-by: Chris Estreich <cestreich@gmail.com>
This commit is contained in:
slytechnical 2025-05-19 13:00:23 -05:00 committed by GitHub
parent e710d970b7
commit caea66f340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,7 @@ export const getModels = async (
// However, for robustness, if called without baseUrl for litellm, it would fail in getLiteLLMModels or here.
throw new Error("Base URL and api key are required for LiteLLM models.")
}
models = await getLiteLLMModels(apiKey || "", baseUrl)
models = await getLiteLLMModels(apiKey, baseUrl)
break
default:
// Ensures router is exhaustively checked if RouterName is a strict union