From eac3781079410e53392a723cdc6ee2260d88bca8 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 5 Mar 2026 17:15:16 +0000 Subject: [PATCH] fix(gemini): force snake_case naming for thought_signature - Despite struct-wide camelCase policy, Gemini 3 reasoning models strictly require 'thought_signature' in snake_case. - Explicitly rename the field to resolve the 'missing thought_signature' 400 error. --- src/providers/gemini.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/gemini.rs b/src/providers/gemini.rs index d7628865..e59d14b5 100644 --- a/src/providers/gemini.rs +++ b/src/providers/gemini.rs @@ -57,7 +57,7 @@ struct GeminiPart { function_response: Option, #[serde(skip_serializing_if = "Option::is_none")] thought: Option, - #[serde(skip_serializing_if = "Option::is_none", rename = "thoughtSignature")] + #[serde(skip_serializing_if = "Option::is_none", rename = "thought_signature")] thought_signature: Option, }