🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor: brain memory
莘权 马f4eea02866cc
diff --git a/metagpt/memory/brain_memory.py b/metagpt/memory/brain_memory.pyindex f3a3e3563..cdf3d7fbb 100644--- a/metagpt/memory/brain_memory.py+++ b/metagpt/memory/brain_memory.py@@ -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: