refactor: brain memory

This commit is contained in:
莘权 马 2023-09-07 21:35:48 +08:00
parent 12b2fcd4be
commit 24a3e72572

View file

@ -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