mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-20 22:44:22 +01:00
resolved latest conflicts
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
from memory.local import LocalCache
|
||||
|
||||
# List of supported memory backends
|
||||
# Add a backend to this list if the import attempt is successful
|
||||
supported_memory = ['local']
|
||||
|
||||
try:
|
||||
from memory.redismem import RedisMemory
|
||||
supported_memory.append('redis')
|
||||
except ImportError:
|
||||
print("Redis not installed. Skipping import.")
|
||||
RedisMemory = None
|
||||
|
||||
try:
|
||||
from memory.pinecone import PineconeMemory
|
||||
supported_memory.append('pinecone')
|
||||
except ImportError:
|
||||
print("Pinecone not installed. Skipping import.")
|
||||
PineconeMemory = None
|
||||
@@ -46,6 +53,8 @@ def get_memory(cfg, init=False):
|
||||
memory.clear()
|
||||
return memory
|
||||
|
||||
def get_supported_memory_backends():
|
||||
return supported_memory
|
||||
|
||||
__all__ = [
|
||||
"get_memory",
|
||||
|
||||
Reference in New Issue
Block a user