Skip to content

Conversation

@kzu
Copy link
Member

@kzu kzu commented Jan 9, 2026

We were not surfacing usage in chat streaming as expected by MS.E.AI: it expects a UsageContent to be present in the response updates, which signals consumption tokens during streaming. The extension method ToChatResponse then aggregates that into the response.Usage property, which we now verify in our sanity check.

kzu added 2 commits January 9, 2026 14:16
We were not surfacing usage in chat streaming as expected by MS.E.AI: it expects a UsageContent to be present in the response updates, which signals consumption tokens during streaming. The extension method ToChatResponse then aggregates that into the response.Usage property, which we now verify in our sanity check.
@kzu kzu added the bug Something isn't working label Jan 9, 2026
@kzu kzu enabled auto-merge (squash) January 9, 2026 17:18
@kzu
Copy link
Member Author

kzu commented Jan 9, 2026

24 passed 24 passed 18 skipped

🧪 Details on Ubuntu 24.04.3 LTS

from retest v1.1.0 on .NET 10.0.1 with 💜 by @devlooped

@kzu kzu merged commit 8f7229e into main Jan 9, 2026
7 checks passed
@kzu kzu deleted the dev/streaming-usage branch January 9, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants