Skip to content

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

refactor: think

莘权 马a9b56a6f56e1
diff --git a/metagpt/roles/assistant.py b/metagpt/roles/assistant.py
index a988572f4..7fd1b1236 100644
--- a/metagpt/roles/assistant.py
+++ b/metagpt/roles/assistant.py
@@ -129,9 +129,10 @@ class Assistant(Role):
await self.memory.set_history_summary(
history_summary=history_summary, redis_key=CONFIG.REDIS_KEY, redis_conf=CONFIG.REDIS
)
- if last_talk and await self._llm.is_related(last_talk, history_summary): # Merge relevant content.
- last_talk = await self._llm.rewrite(sentence=last_talk, context=history_text)
- return last_talk
+ # if last_talk and await self._llm.is_related(last_talk, history_summary): # Merge relevant content.
+ # last_talk = await self._llm.rewrite(sentence=last_talk, context=history_text)
+ # return last_talk
+ last_talk = await self._llm.rewrite(sentence=last_talk, context=history_text)
return last_talk