mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-06 16:15:50 +08:00
- Introduced `StreamUsageBuffer` to encapsulate stream usage observation and publishing logic. - Updated OpenAI-compatible executors and helpers to use `StreamUsageBuffer` for consistent stream usage tracking. - Added unit tests to validate `StreamUsageBuffer` behavior, ensuring proper handling of usage details. Closes: #4053