-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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: "GetStreamingChatMessageContentsAsync" is not working properly #6919
Comments
@EachShow, mind providing some pieces of the code you are using? This is a very central API method where we have plenty of UnitTests, we need to understand what's the context of this error. Are you using it against OpenAI/Azure OpenAI or Non-OpenAI models? |
@RogerBarreto I was able to reproduce this issue by also adding the Google connector package: |
// I using it against Azure OpenAI var chat = new AzureOpenAIChatCompletionService(....); await foreach (var item in response) // the exception is occurred here |
This issue is stale because it has been open for 90 days with no activity. |
@EachShow We had many updates to our streaming APIs regarding the latest 90 days, let me know if you still have this issue. Thanks. |
Describe the bug
"GetStreamingChatMessageContentsAsync" is not working properly
To Reproduce
update Microsoft.SemanticKernel.Connectors to V1.15.0
Expected behavior
Receive streaming output correctly
Screenshots
Platform
Additional context
the exception info:
Method not found: 'System.String Microsoft.SemanticKernel.FunctionResultContent.get_Id()'.|System.MissingMethodException: Method not found: 'System.String Microsoft.SemanticKernel.FunctionResultContent.get_Id()'.
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.GetRequestMessages(ChatMessageContent message, ToolCallBehavior toolCallBehavior)
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.CreateChatCompletionsOptions(OpenAIPromptExecutionSettings executionSettings, ChatHistory chatHistory, Kernel kernel, String deploymentOrModelName)
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.GetStreamingChatMessageContentsAsync(ChatHistory chat, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken)+MoveNext()
at Microsoft.SemanticKernel.Connectors.OpenAI.ClientCore.GetStreamingChatMessageContentsAsync(ChatHistory chat, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult()
The text was updated successfully, but these errors were encountered: