Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
Fixed the secret section name.
  • Loading branch information
tanaka-takayoshi authored Jan 3, 2025
1 parent 926a590 commit f903dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotnet/samples/Demos/HomeAutomation/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal static async Task Main(string[] args)

// Get configuration
builder.Services.AddOptions<AzureOpenAIOptions>()
.Bind(builder.Configuration.GetSection(nameof(AzureOpenAIOptions)))
.Bind(builder.Configuration.GetSection(AzureOpenAIOptions.SectionName))
.ValidateDataAnnotations()
.ValidateOnStart();

Expand Down

0 comments on commit f903dfe

Please sign in to comment.