mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-09 01:20:13 +08:00
- Cache token usage metrics from streaming chunks instead of prematurely finalizing content blocks. - Defer `message_delta` and `message_stop` emissions until encountering a finish reason, a trailing usage chunk, or stream completion. Closes: #5419