Skip to content

Conversation

@fenilfaldu
Copy link

@fenilfaldu fenilfaldu commented Oct 15, 2025

closes #2268

Some providers return usage only on the final streaming chunk when include_usage is requested. Without this, Phoenix undercounts tokens on streaming spans

Before
Screenshot 2025-10-15 at 9 29 36 PM

After
Screenshot 2025-10-15 at 9 29 51 PM

@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 15, 2025
@fenilfaldu
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[bug] Token counts on Phoenix inconsistent vs. OpenRouter or model providers

1 participant