mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-11 06:37:47 +08:00
- Format streaming error payloads with nested error objects matching official OpenAI Responses SSE specifications. - Extract and propagate sequence numbers from upstream terminal events and framer states. - Use `json.Number` to prevent precision loss for large integers and token metrics. - Sanitize sensitive keys recursively across nested error objects without dropping custom fields.