mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-24 10:53:12 +08:00
- Deduplicate normalized xAI tool declarations and promoted additional_tools entries by tool name with first-wins precedence so top-level tools remain authoritative over historical copies. - Deduplicate flattened tool counts and merge repeated namespaces during folding so overlapping historical tools do not prematurely trigger namespace folding or emit duplicate dispatchers. - Align namespace reference collection and dispatcher child unwrapping with the winning declaration to preserve response tool call restoration. Closes: #6962