Fixed new backends not being added to supported memory

This commit is contained in:
Eesa Hamza
2023-04-16 21:40:09 +03:00
parent a91ef56954
commit 3944f29add
2 changed files with 5 additions and 1 deletions

View File

@@ -195,7 +195,7 @@ python -m autogpt --help
```bash
python -m autogpt --ai-settings <filename>
```
* Specify one of 3 memory backends: `local`, `redis`, `pinecone` or `no_memory`
* Specify a memory backend
```bash
python -m autogpt --use-memory <memory-backend>
```

View File

@@ -23,12 +23,16 @@ except ImportError:
try:
from autogpt.memory.weaviate import WeaviateMemory
supported_memory.append("weaviate")
except ImportError:
# print("Weaviate not installed. Skipping import.")
WeaviateMemory = None
try:
from autogpt.memory.milvus import MilvusMemory
supported_memory.append("milvus")
except ImportError:
# print("pymilvus not installed. Skipping import.")
MilvusMemory = None