mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Save redis memory state, with the default being to wipe on start still.
This commit is contained in:
@@ -64,8 +64,9 @@ class Config(metaclass=Singleton):
|
||||
self.redis_host = os.getenv("REDIS_HOST")
|
||||
self.redis_port = os.getenv("REDIS_PORT")
|
||||
self.redis_password = os.getenv("REDIS_PASSWORD")
|
||||
self.wipe_redis_on_start = os.getenv("WIPE_REDIS_ON_START", "True") == 'True'
|
||||
# Note that indexes must be created on db 0 in redis, this is not configureable.
|
||||
|
||||
|
||||
self.memory_backend = os.getenv("MEMORY_BACKEND", 'pinecone')
|
||||
# Initialize the OpenAI API client
|
||||
openai.api_key = self.openai_api_key
|
||||
|
||||
Reference in New Issue
Block a user