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 79487bf commit 58cd1b1
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 58cd1b1

Please sign in to comment.