diff --git a/src/WebApp/Extensions/Extensions.cs b/src/WebApp/Extensions/Extensions.cs index 4c11292..b12cea5 100644 --- a/src/WebApp/Extensions/Extensions.cs +++ b/src/WebApp/Extensions/Extensions.cs @@ -103,6 +103,7 @@ private static void AddAIServices(this IHostApplicationBuilder builder) if (!string.IsNullOrWhiteSpace(builder.Configuration.GetConnectionString("openai")) && !string.IsNullOrWhiteSpace(deploymentName)) { + builder.Services.AddKernel(); builder.AddAzureOpenAI("openai"); builder.Services.AddAzureOpenAIChatCompletion(deploymentName); }