mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-24 14:15:17 +02:00
refactor: brain memory
This commit is contained in:
parent
24a3e72572
commit
a4f36e0852
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
break
|
||||
msgs.append(i)
|
||||
total_length += delta
|
||||
self.history = msgs
|
||||
self.history = msgs.reverse()
|
||||
self.is_dirty = True
|
||||
await self.dumps(redis_key=CONFIG.REDIS_KEY, redis_conf=CONFIG.REDIS_CONF)
|
||||
self.is_dirty = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue