Adds Ollama to allowed client providers list

Allows users to select Ollama as a provider from client settings.
Previously, Ollama was blocked with "Invalid provider" error even
though the UI supported it.

Fixes #652
This commit is contained in:
dayuan.jiang
2026-01-29 21:24:48 +09:00
parent fdd4be6463
commit 67196225f0

View File

@@ -39,7 +39,7 @@ export interface ClientOverrides {
baseUrlEnv?: string
}
// Providers that can be used with client-provided API keys
// Providers that can be selected from client settings
const ALLOWED_CLIENT_PROVIDERS: ProviderName[] = [
"openai",
"anthropic",
@@ -53,6 +53,7 @@ const ALLOWED_CLIENT_PROVIDERS: ProviderName[] = [
"sglang",
"gateway",
"edgeone",
"ollama",
"doubao",
"modelscope",
]