From 66e57adab0aceb2360199a4f9c5cc58afd47fcb0 Mon Sep 17 00:00:00 2001 From: friendfish Date: Fri, 24 Apr 2026 17:39:39 +0800 Subject: [PATCH] fix(models): recognize google-generative-ai as google-gemini api type (#241) Fixes #239 --- src-tauri/src/commands/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/commands/config.rs b/src-tauri/src/commands/config.rs index 9fa725a..1306045 100644 --- a/src-tauri/src/commands/config.rs +++ b/src-tauri/src/commands/config.rs @@ -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", }