mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-12-03 15:43:42 +08:00
- Translate Claude SSE error events into response.failed in streaming and failed responses (including native JSON errors) in non-streaming while preserving partial outputs, incomplete call status, and usage.
- Emit tool_choice {"type":"none"} when tools are present and filter declared tools and historical tool_search_output references consistently for allowed_tools with fail-closed handling.
- Add regression tests for error events, tool_choice none, allowed_tools modes and aliases, and mid-stream failures.
Closes: #8224