-
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. |
@RogerBarreto, Now, I am able to install the latest version of Microsoft.SemanticKernal package but for that I need to install the below packages manually.
Because these packages are in pre-release. So, when installing the SK package, these package not installed automatically in .NetFramework Let me come to the point, even after installing the latest version of the SK, the issue still occurs. |
@ChidanandMurugaiah I download your application demo and Identified that the problem on the Null actually is happening because you are calling an Since there's no asynchronous task executing within your I updated the project also to the latest version 1.30, installing the packages individually and was able to get the result with no problem. |
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: