Skip to content

Commit

Permalink
Fix two build warnings (microsoft#703)
Browse files Browse the repository at this point in the history
### Motivation and Context

Fix two analyzer warnings issued during the build.
  • Loading branch information
stephentoub committed Apr 27, 2023
1 parent f195bb6 commit afbbe61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal static IServiceCollection AddPlannerFactory(this IServiceCollection ser
services.AddScoped<PlannerFactoryAsync>(sp => async (IKernel kernel) =>
{
// Create a kernel for the planner with the same contexts as the chat's kernel but with only skills we want available to the planner.
IKernel plannerKernel = new Kernel(new SkillCollection(), kernel.PromptTemplateEngine, kernel.Memory, kernel.Config, kernel.Log);
var plannerKernel = new Kernel(new SkillCollection(), kernel.PromptTemplateEngine, kernel.Memory, kernel.Config, kernel.Log);
//
// Add skills to the planner here.
Expand Down

0 comments on commit afbbe61

Please sign in to comment.