fixbug: exceed length

This commit is contained in:
莘权 马 2023-09-01 21:18:11 +08:00
parent 3454761f95
commit 7babb5ef71

View file

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