diff --git a/.env.template b/.env.template index 0e50fcaf..58486904 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 storage diff --git a/autogpt/config/config.py b/autogpt/config/config.py index b1241d54..0c4576da 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.