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