Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

refactor: brain memory

莘权 马24a3e7257263
diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.py
index 3d713ddfb..09a4915fc 100644
--- a/metagpt/memory/brain_memory.py
+++ b/metagpt/memory/brain_memory.py
@@ -181,7 +181,7 @@ class BrainMemory(pydantic.BaseModel):
m.content = m.content[0:left]
msgs.append(m.dict())
break
- msgs.append(m.dict())
+ msgs.append(i)
total_length += delta
self.history = msgs
self.is_dirty = True