-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Net: Bug: Token usage missing for Azure OpenAI Streaming Completion #9420
Comments
Hi @lukasz-appstream, thanks for filing the issue. For the streaming API, the usage is included in the last chunk. @markwallace-microsoft / @dmytrostruk for visibility, just in case. |
Thanks @moonbox3 for the response! Yeah, I thought so, I updated the library, I updated the api version, I saved the last message and it still had |
@JadynWong thanks for adding the context to this issue. This issue will be blocked until Azure SDK provides support for getting the usage. For context we are tracking those issues in Azure SDK repo |
Bug summary
When I use Azure OpenAI I don't get Usage in metadata any of the chunks.
Technical Details
SemanticKernel: 1.24.1 (.NET)
Model: gpt-4o
Azure OpenAI Api version: 2024-10-01-PREVIEW
Bug Description
I checked any chunk and I haven't got Usage in any of them when using chat completion with streaming and from what I've read - Usage should be there for Azure OpenAI Service in this API.
The text was updated successfully, but these errors were encountered: