From 76bf5b81d40864d0677baea45fb0242d06f8a13a Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 5 Mar 2026 17:10:54 +0000 Subject: [PATCH] fix(gemini): rename field to thoughtSignature for native REST API compliance - The native Gemini REST API requires camelCase 'thoughtSignature' as a sibling to functionCall. - Explicitly rename the field to match this requirement, resolving 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 e59d14b5..d7628865 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 = "thought_signature")] + #[serde(skip_serializing_if = "Option::is_none", rename = "thoughtSignature")] thought_signature: Option, }