mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-02 04:12:45 +02:00
feat: + summary
This commit is contained in:
parent
2324c1c6dc
commit
ef485e7400
2 changed files with 24 additions and 1 deletions
|
|
@ -121,7 +121,9 @@ class Assistant(Role):
|
|||
return None
|
||||
if history_text == "":
|
||||
return last_talk
|
||||
history_summary = await self._llm.get_summary(history_text, max_words=800, keep_language=True)
|
||||
history_summary = await self._llm.get_summary(
|
||||
history_text, max_words=800, keep_language=True, memory=self.memory
|
||||
)
|
||||
await self.memory.set_history_summary(
|
||||
history_summary=history_summary, redis_key=CONFIG.REDIS_KEY, redis_conf=CONFIG.REDIS
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue