feat: + summary

This commit is contained in:
莘权 马 2023-09-07 15:58:13 +08:00
parent a0ad7872f7
commit 8a0644a496

View file

@ -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, history=self.memory.history
text=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