Description
When using Gemini 2.5 Flash or 2.5 Pro models via Google AI Studio API, tool calls fail with a 400 error:
API Error: 400 [{"error":{"code":400,"message":"Function call is missing a thought_signature in functionCall parts.
This is required for tools to work correctly, and missing thought_signature may lead to degraded model
performance.","status":"INVALID_ARGUMENT"}}]
Steps to Reproduce
- Configure openclaude with a Gemini 2.5 Flash/Pro model via AI Studio API key
- Use any MCP plugin that triggers a tool call (e.g.
mcp__plugin_claude-mem_mcp-search__search)
- The first tool call fails with the above error
Expected Behavior
Tool calls should work correctly with Gemini 2.5 thinking models. The thought_signature from Gemini's response
should be preserved and sent back in the functionResponse.
Workaround
- Use
gemini-2.0-flash (no thinking, no signature required)
- Or disable thinking with
thinkingBudget: 0 (if supported)
Environment
- openclaude version: 0.1.8
- Model: gemini-2.5-flash (via AI Studio)
- OS: Linux Mint
Reference
Google's documentation on thought signatures:
https://ai.google.dev/gemini-api/docs/thought-signatures
Related issues in similar projects:
Description
When using Gemini 2.5 Flash or 2.5 Pro models via Google AI Studio API, tool calls fail with a 400 error:
API Error: 400 [{"error":{"code":400,"message":"Function call is missing a thought_signature in functionCall parts.
This is required for tools to work correctly, and missing thought_signature may lead to degraded model
performance.","status":"INVALID_ARGUMENT"}}]
Steps to Reproduce
mcp__plugin_claude-mem_mcp-search__search)Expected Behavior
Tool calls should work correctly with Gemini 2.5 thinking models. The
thought_signaturefrom Gemini's responseshould be preserved and sent back in the
functionResponse.Workaround
gemini-2.0-flash(no thinking, no signature required)thinkingBudget: 0(if supported)Environment
Reference
Google's documentation on thought signatures:
https://ai.google.dev/gemini-api/docs/thought-signatures
Related issues in similar projects: