Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

feat: + summary

莘权 马a0ad7872f7df
diff --git a/metagpt/roles/assistant.py b/metagpt/roles/assistant.py
index 0a796ac11..5d04c2d6f 100644
--- a/metagpt/roles/assistant.py
+++ b/metagpt/roles/assistant.py
@@ -122,7 +122,7 @@ class Assistant(Role):
if history_text == "":
return last_talk
history_summary = await self._llm.get_summary(
- history_text, max_words=800, keep_language=True, memory=self.memory
+ history_text, max_words=800, keep_language=True, history=self.memory.history
)
await self.memory.set_history_summary(
history_summary=history_summary, redis_key=CONFIG.REDIS_KEY, redis_conf=CONFIG.REDIS