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.

Fixes overwrite memory command.

Toran Bruce Richardsba6df3674b36
diff --git a/scripts/commands.py b/scripts/commands.py
index 90ccf14c0e..e2f4257fe2 100644
--- a/scripts/commands.py
+++ b/scripts/commands.py
@@ -150,7 +150,7 @@ def delete_memory(key):
def overwrite_memory(key, string):
- if key >= 0 and key < len(mem.permanent_memory):
+ if int(key) >= 0 and key < len(mem.permanent_memory):
_text = "Overwriting memory with key " + \
str(key) + " and string " + string
mem.permanent_memory[key] = string