You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
Bug: AzureOpenAIChatCompletionService.GetStreamingChatMessageContentsAsync() throwing exception with custom HttpMessageHandler
.Net: Bug: AzureOpenAIChatCompletionService.GetStreamingChatMessageContentsAsync() throwing exception with custom HttpMessageHandler
Jan 15, 2025
Describe the bug
After migrating to version 1.32.0 (from 1.7.1) our code started throwing an
on the end of GetStreamingChatMessageContentsAsync() loop.
For some reason, reading the HTTP response beforehand, by using a custom HttpMessageHandler, makes the loop cleanup crash.
To Reproduce
I created a patch for the sample AzureOpenAI_ChatCompletionStreaming.cs (version 1.33.0-nightly-250110.1) to reproduce the problem:
Output:
Expected behavior
The streaming loop ends without exceptions
Platform
Additional context
The exception seems to come from the OpenAI-dotnet project. Specifically at the InternalAsyncStreamingChatCompletionUpdateCollection.cs.
The text was updated successfully, but these errors were encountered: