Open shashankms9 opened 2 months ago
@shashankms9 - make sure you setup keys, it looks like these are missing which is why you are getting the error.
@evchaki, I have tried both approach methods mentioned in the readme.md file still throwing the same error
@markwallace-microsoft can you take a look?
@markwallace-microsoft can you please help in resolving this issue?
Hi @evchaki, the issue has been resolved after updating
The appsetting.json
file with AzureOpenAIOption it was AzureOpenAI as in AzureOpenAIOptions.cs file provided class name as AzureOpenAIOptions
Updated the Program.cs
files to use Azure OpenAI option and IOption to AzureOpenAIOption from AzureOpenAI
After updating this I was able to run the application without any issue
@evchaki Can I add a PR to fix this issue?
@Niladri24dutta go ahead, I would like to take a look on the PR, and suggest or approve it. THanks.
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