Skip to content

Commit

Permalink
Change ISemanticTextMemory from Singleton to Scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianwyatt authored and shawncal committed May 8, 2023
1 parent d1d2d03 commit 0d19f47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal static IServiceCollection AddSemanticKernelServices(this IServiceCollec
services.AddSingleton<PromptSettings>();

// Add the semantic memory with backing memory store.
services.AddSingleton<ISemanticTextMemory>(CreateSemanticTextMemory);
services.AddScoped<ISemanticTextMemory>(CreateSemanticTextMemory);

// Add the planner.
services.AddScoped<CopilotChatPlanner>(sp =>
Expand Down

0 comments on commit 0d19f47

Please sign in to comment.