mirror of
https://github.com/router-for-me/CLIProxyAPIPlus.git
synced 2026-04-02 02:36:11 +00:00
The Claude-to-Gemini translator derived function names by splitting tool_use_id on "-", which produced empty strings for IDs with exactly 2 segments (e.g. toolu_tool-<uuid>). Replace the string-splitting heuristic with a lookup map built from tool_use blocks during the main processing loop, with fallback to the raw ID on miss.