From 93f209d1aa90204374cc0625a61f62d2811b3e4e Mon Sep 17 00:00:00 2001 From: Michael Tissen Date: Mon, 6 Nov 2023 06:29:25 +0100 Subject: [PATCH] Fix invalid memory store type: Disk (#570) ### Motivation and Context - This fixes #562 ### Description - Fixes the Error: 500: System.ArgumentException: Invalid memory store type: Disk ### Contribution Checklist - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [Contribution Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone :smile: --- webapi/Options/MemoryStoreType.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapi/Options/MemoryStoreType.cs b/webapi/Options/MemoryStoreType.cs index 079cba3e6..a94aca68c 100644 --- a/webapi/Options/MemoryStoreType.cs +++ b/webapi/Options/MemoryStoreType.cs @@ -63,7 +63,7 @@ public static MemoryStoreType GetMemoryStoreType(this SemanticMemoryConfig memor { return MemoryStoreType.Volatile; } - else if (type.Equals("TextFile", StringComparison.OrdinalIgnoreCase)) + else if (type.Equals("Disk", StringComparison.OrdinalIgnoreCase)) { return MemoryStoreType.TextFile; }