mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-04-29 10:56:22 +02:00
Merge pull request #45 from iorisa/fixbug/context
fixbug: context missing
This commit is contained in:
commit
1a7d66e414
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