mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
fixbug: context missing
This commit is contained in:
parent
b58d2ff2d3
commit
95a5f1b9f1
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ class Assistant(Role):
|
|||
history_summary = await self.memory.summarize(max_words=800, keep_language=True, llm=self._llm)
|
||||
if last_talk and await self.memory.is_related(text1=last_talk, text2=history_summary, llm=self._llm):
|
||||
# Merge relevant content.
|
||||
last_talk = await self.memory.rewrite(sentence=last_talk, llm=self._llm)
|
||||
last_talk = await self.memory.rewrite(sentence=last_talk, context=history_summary, llm=self._llm)
|
||||
return last_talk
|
||||
|
||||
return last_talk
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue