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.
This commit is contained in:
@@ -57,7 +57,7 @@ struct GeminiPart {
|
||||
function_response: Option<GeminiFunctionResponse>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
thought: Option<String>,
|
||||
#[serde(skip_serializing_if = "Option::is_none", rename = "thought_signature")]
|
||||
#[serde(skip_serializing_if = "Option::is_none", rename = "thoughtSignature")]
|
||||
thought_signature: Option<String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user