[BUG] Usage not returned when streaming with Images #48578
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Library name and version
Azure.AI.OpenAI 2.1.0 , Azure.AI.OpenAI 2.2.0-beta.2
Describe the bug
When the chat message contains an image and we are streaming the response, the usage information is missing when the call is made through the library even though the azure open ai api is returning the usage chunk. Please find below a git repo with a sample project to reproduce the issue
https://github.com/jmurkothintel/OpenAIClientTest
Expected behavior
The library should bubble the usage information to the caller as the underlying api is returning the information
Actual behavior
The library does not return the usage information
Reproduction Steps
Please run the sample project that has been provided
Environment
No response
The text was updated successfully, but these errors were encountered: