Files
CLIProxyAPI/internal/runtime
Luis Pater 0c61b12cf2 fix(xai): deduplicate tools when promoting historical additional_tools
- 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
2026-10-25 11:39:33 +08:00
..