fix(models): recognize google-generative-ai as google-gemini api type (#241)

Fixes #239
This commit is contained in:
friendfish
2026-04-24 17:39:39 +08:00
committed by GitHub
parent cb540564f8
commit 66e57adab0

View File

@@ -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",
}