mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-17 21:10:48 +00:00
When rebuilding SDK messages from conversation history, tool-result messages had toolName hardcoded to an empty string. This works for OpenAI/Claude APIs but Gemini requires functionResponse.name to be non-empty, causing AI_APICallError on every follow-up message. Now looks up the tool name from the matching assistant tool call via toolCallId. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>