mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-09-01 17:10:24 +08:00
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:
@@ -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",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user