microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.35k stars 3.14k forks source link

.Net: Bug: try to run HomeAutomation #8593

Open shashankms9 opened 1 week ago

shashankms9 commented 1 week ago

Describe the bug I'm trying to use the demo code https://github.com/microsoft/semantic-kernel/tree/main/dotnet/samples/Demos/HomeAutomation

When I try to HomeAutomation through dotnet build and dotnet run It throws an issue Microsoft.Extensions.Options.OptionsValidationException: DataAnnotation validation failed for 'AzureOpenAIOptions' members: 'ChatDeploymentName' with the error: 'The ChatDeploymentName field is required.'.; DataAnnotation validation failed for 'AzureOpenAIOptions' members: 'Endpoint' with the error: 'The Endpoint field is required.'.; DataAnnotation validation failed for 'AzureOpenAIOptions' members: 'ApiKey' with the error: 'The ApiKey field is required.'.

Even though we have updated the appsetting.json file

image

evchaki commented 1 week ago

@shashankms9 - make sure you setup keys, it looks like these are missing which is why you are getting the error.

shashankms9 commented 1 week ago

@evchaki, I have tried both approach methods mentioned in the readme.md file still throwing the same error

evchaki commented 1 week ago

@markwallace-microsoft can you take a look?

shashankms9 commented 6 days ago

@markwallace-microsoft can you please help in resolving this issue?

shashankms9 commented 4 days ago

Hi @evchaki, the issue has been resolved after updating

Niladri24dutta commented 4 days ago

@evchaki Can I add a PR to fix this issue?

RogerBarreto commented 4 days ago

@Niladri24dutta go ahead, I would like to take a look on the PR, and suggest or approve it. THanks.