Skip to content

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.

Wipe local memory on load

Toran Bruce Richards9e139fb314b7
diff --git a/scripts/memory/__init__.py b/scripts/memory/__init__.py
index 9952307943..a441a46aa9 100644
--- a/scripts/memory/__init__.py
+++ b/scripts/memory/__init__.py
@@ -31,6 +31,8 @@ def get_memory(cfg, init=False):
if memory is None:
memory = LocalCache(cfg)
+ if init:
+ memory.clear()
return memory