mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 06:24:20 +01:00
Changes string_key_memory to permanent_memory.
Fixes: ```Command memory_ovr returned: Error: module 'memory' has no attribute 'string_key_memory'```
This commit is contained in:
committed by
GitHub
parent
b418861d70
commit
962fc9a42a
@@ -218,7 +218,7 @@ def overwrite_memory(key, string):
|
|||||||
elif isinstance(key, str):
|
elif isinstance(key, str):
|
||||||
_text = "Overwriting memory with key " + key + " and string " + string
|
_text = "Overwriting memory with key " + key + " and string " + string
|
||||||
# Overwrite the memory slot with the given string key and string
|
# Overwrite the memory slot with the given string key and string
|
||||||
mem.string_key_memory[key] = string
|
mem.permanent_memory[key] = string
|
||||||
print(_text)
|
print(_text)
|
||||||
return _text
|
return _text
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user