Skip to content
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: Exception thrown with chatCompletionService.GetStreamingChatMessageContentsAsync #9333

Open
deepinderdeol opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@deepinderdeol
Copy link

Seeing the exception below with this call:
chatCompletionService.GetStreamingChatMessageContentsAsync(_skChatHistory, executionSettings, kernel)

  • I see this issue with latest nuget package version 1.24.1
  • The issue is not repro with package version 1.20.0

Exception:
System.TypeLoadException
HResult=0x80131522
Message=Method 'GetAsyncEnumerator' in type 'OpenAI.Chat.InternalAsyncStreamingChatCompletionUpdateCollection' from assembly 'OpenAI, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b4187f3e65366280' does not have an implementation.
Source=OpenAI
StackTrace:
at OpenAI.Chat.ChatClient.CompleteChatStreamingAsync(IEnumerable1 messages, ChatCompletionOptions options, CancellationToken cancellationToken) at Azure.AI.OpenAI.Chat.AzureChatClient.CompleteChatStreamingAsync(IEnumerable1 messages, ChatCompletionOptions options, CancellationToken cancellationToken)
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.<>c__DisplayClass16_1.b__0()
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.RunRequest[T](Func`1 request)
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.d__16.MoveNext()
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.d__16.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)

@deepinderdeol deepinderdeol added the bug Something isn't working label Oct 18, 2024
@deepinderdeol deepinderdeol changed the title Bug: Exception thrown with chatCompletionService.GetStreamingChatMessageContentsAsync .Net: Bug: Exception thrown with chatCompletionService.GetStreamingChatMessageContentsAsync Oct 18, 2024
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
Status: Bug
Development

No branches or pull requests

3 participants