mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-27 03:10:03 +08:00
fix(models): recognize google-generative-ai as google-gemini api type (#241)
Fixes #239
This commit is contained in:
@@ -5063,7 +5063,7 @@ fn normalize_base_url(raw: &str) -> String {
|
||||
fn normalize_model_api_type(raw: &str) -> &'static str {
|
||||
match raw.trim() {
|
||||
"anthropic" | "anthropic-messages" => "anthropic-messages",
|
||||
"google-gemini" => "google-gemini",
|
||||
"google-gemini" | "google-generative-ai" => "google-gemini",
|
||||
"openai" | "openai-completions" | "openai-responses" | "" => "openai-completions",
|
||||
_ => "openai-completions",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user