mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
feat: +cache
This commit is contained in:
parent
4d9cfe6f43
commit
26e35d799d
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
|
||||
@property
|
||||
def history_text(self):
|
||||
if len(self.history) == 0:
|
||||
if len(self.history) == 0 and not self.historical_summary:
|
||||
return ""
|
||||
texts = [self.historical_summary] if self.historical_summary else []
|
||||
for m in self.history[:-1]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue