fixbug: exceed length

This commit is contained in:
莘权 马 2023-09-01 21:19:57 +08:00
parent f2aaafbe00
commit 8c943dd8e9

View file

@ -49,7 +49,7 @@ class BrainMemory(pydantic.BaseModel):
return "\n".join(texts)
def move_to_solution(self, history_summary):
"""放入solution队列以备后续长程检索。目前还未加此功能"""
"""放入solution队列以备后续长程检索。目前还未加此功能先用history_summary顶替"""
if len(self.history) < 2:
return
msgs = self.history[:-1]