diff --git a/Program.cs b/Program.cs index 1594f0d..114f583 100644 --- a/Program.cs +++ b/Program.cs @@ -14,16 +14,16 @@ { services.AddApplicationInsightsTelemetryWorkerService(); services.ConfigureFunctionsApplicationInsights(); - services.AddSingleton(s => + services.AddTransient(s => { var builder = Kernel.CreateBuilder(); builder.AddAzureOpenAIChatCompletion( _apiDeploymentName, _apiEndpoint, - _apiKey + _apiKey ); return builder.Build(); - }); + }); }) .Build();