Skip to content

Commit

Permalink
Fix invalid memory store type: Disk (microsoft#570)
Browse files Browse the repository at this point in the history
### Motivation and Context

- This fixes microsoft#562

### Description

- Fixes the Error: 500: System.ArgumentException: 
Invalid memory store type: Disk

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] 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 😄
  • Loading branch information
rubiktubik authored Nov 6, 2023
1 parent 9fedbd4 commit 93f209d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapi/Options/MemoryStoreType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 93f209d

Please sign in to comment.