Remove warnings if memory backend is not installed

pull/1196/head
Richard Beales 2023-04-16 19:08:10 +01:00 committed by Pi
parent 5802f17726
commit a91ef56954
1 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ try:
supported_memory.append("redis") supported_memory.append("redis")
except ImportError: except ImportError:
print("Redis not installed. Skipping import.") # print("Redis not installed. Skipping import.")
RedisMemory = None RedisMemory = None
try: try:
@ -18,19 +18,19 @@ try:
supported_memory.append("pinecone") supported_memory.append("pinecone")
except ImportError: except ImportError:
print("Pinecone not installed. Skipping import.") # print("Pinecone not installed. Skipping import.")
PineconeMemory = None PineconeMemory = None
try: try:
from autogpt.memory.weaviate import WeaviateMemory from autogpt.memory.weaviate import WeaviateMemory
except ImportError: except ImportError:
print("Weaviate not installed. Skipping import.") # print("Weaviate not installed. Skipping import.")
WeaviateMemory = None WeaviateMemory = None
try: try:
from autogpt.memory.milvus import MilvusMemory from autogpt.memory.milvus import MilvusMemory
except ImportError: except ImportError:
print("pymilvus not installed. Skipping import.") # print("pymilvus not installed. Skipping import.")
MilvusMemory = None MilvusMemory = None