mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-07-07 01:54:20 +08:00
- Added validation so OpenAI-style usage parsing only accepts object payloads with token fields. - Prevented streaming usage:null chunks from publishing zero-token records before the final usage chunk arrives. - Reused the shared OpenAI-style parser for stream usage to support both chat completions and responses token field names. - Added tests covering null usage chunks and input/output token usage fields in streaming responses.
18 KiB
18 KiB