AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Set WIPE_REDIS_ON_START default True
Reinier van der Leere08b4d601f0c
diff --git a/.env.template b/.env.templateindex 0e50fcaf88..5848690460 100644--- a/.env.template+++ b/.env.template@@ -70,11 +70,11 @@ OPENAI_API_KEY=your-openai-api-key## REDIS_HOST - Redis host (Default: localhost, use "redis" for docker-compose)## REDIS_PORT - Redis port (Default: 6379)## REDIS_PASSWORD - Redis password (Default: "")-## WIPE_REDIS_ON_START - Wipes data / index on start (Default: False)+## WIPE_REDIS_ON_START - Wipes data / index on start (Default: True)# REDIS_HOST=localhost# REDIS_PORT=6379# REDIS_PASSWORD=-# WIPE_REDIS_ON_START=False+# WIPE_REDIS_ON_START=True### WEAVIATE## MEMORY_BACKEND - Use 'weaviate' to use Weaviate vector storagediff --git a/autogpt/config/config.py b/autogpt/config/config.pyindex b1241d5465..0c4576da23 100644--- a/autogpt/config/config.py+++ b/autogpt/config/config.py@@ -112,7 +112,7 @@ class Config(metaclass=Singleton):self.redis_host = os.getenv("REDIS_HOST", "localhost")self.redis_port = os.getenv("REDIS_PORT", "6379")self.redis_password = os.getenv("REDIS_PASSWORD", "")- self.wipe_redis_on_start = os.getenv("WIPE_REDIS_ON_START", "False") == "True"+ self.wipe_redis_on_start = os.getenv("WIPE_REDIS_ON_START", "True") == "True"self.memory_index = os.getenv("MEMORY_INDEX", "auto-gpt")# Note that indexes must be created on db 0 in redis, this is not configurable.