-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: SemanticKernel package was not working in Winforms .NetFramework. #9755
Comments
@ChidanandMurugaiah, can you check if this works with our latest version? 1.29 Please provide more details about the stack trace you getting. We had a bug 1 month ago related to Null reference exception when using function calling and can be related to your example |
1) can you check if this works with our latest version? 1.29 2) Please provide more details about the stack trace you getting. Below is the Stack trace at Microsoft.SemanticKernel.ChatCompletion.ChatCompletionServiceExtensions.GetChatMessageContentsAsync(IChatCompletionService chatCompletionService, String prompt, PromptExecutionSettings executionSettings, Kernel kernel, CancellationToken cancellationToken) 3) We had a bug 1 month ago related to Null reference exception when using function calling and can be related to your example
|
@ChidanandMurugaiah Thanks for the added context. For the first item to successfully install in .Net Framework you need to download those dependencies manually because they are still in pre-release state. Go to nuget package and download the If the error persists for our latest version let me know and feel free to close this issue if the problem is solved. Thanks. |
Describe the bug
We are utilizing the Microsoft.SemanticKernel package in a .NET Framework 4.8 Winforms sample to retrieve responses from ChatGPT. However, when invoking kernel.GetRequiredService(), it consistently returns null. As a result, we are unable to use the ChatCompletionService to fetch AI responses. Notably, the same code functions correctly in a .NET80 environment.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Sample needs to be run properly without exception.
Screenshots
Sample Link - SemanticKernel (2).zip
Platform
Additional context
We saw that this package was compatible for WPF .NetFramework.
The text was updated successfully, but these errors were encountered: