mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
refactor: brain memory
This commit is contained in:
parent
b1f7aa3968
commit
f4eea02866
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ class BrainMemory(pydantic.BaseModel):
|
|||
if summary:
|
||||
await self.set_history_summary(history_summary=summary, redis_key=CONFIG.REDIS_KEY, redis_conf=CONFIG.REDIS)
|
||||
return summary
|
||||
raise openai.error.InvalidRequestError("text too long")
|
||||
raise openai.error.InvalidRequestError(message="text too long", param=None)
|
||||
|
||||
async def _metagpt_summarize(self, max_words=200, **kwargs):
|
||||
if not self.history:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue