Skip to content

.Net: Bug: Token usage missing for Azure OpenAI Streaming Completion #9420

@lukasz-appstream

Description

@lukasz-appstream

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.

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codeai connectorAnything related to AI connectorsblockedThis issue is blocked from making progress

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions