mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-26 17:41:33 +08:00
Meta streaming armed protocol-aware TTFT tracking but never observed token events, so usage records kept the first-body-byte fallback even when substantive output arrived later. Observe Responses events before failure publication and translation using the existing shared helper. Add deterministic virtual-clock coverage for content, terminal events, error fallbacks, downstream translation, and non-streaming timing. Fixes #6664