mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 05:42:37 +02:00
refactor: brain memory
This commit is contained in:
parent
bed3d8c841
commit
5f3931820e
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class TalkAction(Action):
|
|||
format_msgs.append({"role": "assistant", "content": self._knowledge})
|
||||
if self._history_summary:
|
||||
if CONFIG.LLM_TYPE == LLMType.METAGPT.value:
|
||||
format_msgs.append(json.loads(self._history_summary))
|
||||
format_msgs.extend(json.loads(self._history_summary))
|
||||
else:
|
||||
format_msgs.append({"role": "assistant", "content": self._history_summary})
|
||||
return self._talk, format_msgs, system_msgs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue