microsoft / semantic-kernel

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

.Net: Bug: try to run HomeAutomation #8593

Open shashankms9 opened 2 months ago

shashankms9 commented 2 months 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 2 months ago

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

shashankms9 commented 2 months ago

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

evchaki commented 2 months ago

@markwallace-microsoft can you take a look?

shashankms9 commented 2 months ago

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

shashankms9 commented 2 months ago

Hi @evchaki, the issue has been resolved after updating

Niladri24dutta commented 2 months ago

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

RogerBarreto commented 2 months ago

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