Remove warnings if memory backend is not installed
parent
5802f17726
commit
a91ef56954
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue