The Gemini HTTP API provider only set thoughtSignature (camelCase) when building tool call request bodies. Gemini 2.5 models accept camelCase, but Gemini 3.5 Flash Agentic reasoning requires thought_signature (snake_case) — matching the format it returns in API responses. When only the camelCase variant was sent, Gemini 3.5 Flash rejected the request with a 400 Bad Request for missing thought_signature. The fix sets both ThoughtSignature and ThoughtSignatureSnake in the geminiPart struct, matching the pattern already used in antigravity_provider.go. This ensures compatibility with both Gemini 2.x (camelCase) and Gemini 3.x Agentic (snake_case) models. Closes #3111 |
||
|---|---|---|
| .. | ||
| gemini_helpers.go | ||
| gemini_provider.go | ||
| gemini_provider_test.go | ||
| http_provider.go | ||
| types.go | ||