You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Anthropic reports input tokens in first message delta (#2001)
* fix: Anthropic reports input tokens in first message delta
* fix: improve Anthropic streaming usage token collection
- Extract first_chunk_meta variable for better readability and performance
- Add explicit chunks check before accessing first chunk for safety
- Combine input tokens from message_start and output tokens from message_delta
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>
0 commit comments