picoclaw/pkg/providers/httpapi
徐闻涵0668001344 5b41f18c3d fix(gemini): set both camelCase and snake_case thought_signature in tool call request body
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
2026-06-16 20:51:59 +08:00
..
gemini_helpers.go fix(mcp): sanitize MCP tool schemas for Gemini function calling 2026-04-26 22:23:55 +02:00
gemini_provider.go fix(gemini): set both camelCase and snake_case thought_signature in tool call request body 2026-06-16 20:51:59 +08:00
gemini_provider_test.go fix(gemini): set both camelCase and snake_case thought_signature in tool call request body 2026-06-16 20:51:59 +08:00
http_provider.go feat(openai_compat): map DeepSeek thinking fields 2026-05-23 10:51:24 +08:00
types.go feat: support streaming (#2892) 2026-05-19 16:38:47 +08:00