From ea990d8d6876b93daaee1779284575a232c9915e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E4=BC=9F=E9=9F=AC?= Date: Thu, 8 Aug 2024 21:10:08 +0800 Subject: [PATCH] combine_system_prompt --- metagpt/roles/di/role_zero.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/metagpt/roles/di/role_zero.py b/metagpt/roles/di/role_zero.py index 388eca13e..8093eda40 100644 --- a/metagpt/roles/di/role_zero.py +++ b/metagpt/roles/di/role_zero.py @@ -163,16 +163,13 @@ class RoleZero(Role): ) guidance_system_msgs = [instruction_system_prpomt] if self.system_msg: - guidance_system_msgs = self.system_msg + guidance_system_msgs + guidance_system_msgs = [self.system_msg[0] + guidance_system_msgs[0]] - # print(("\n"+"="*10+"\n").join(guidance_system_msgs)) ### Make Decision Dynamically ### memory = self.rc.memory.get(self.memory_k) prompt = self.cmd_prompt.format( plan_status=plan_status, current_task=current_task, - # thought_guidance=self.thought_guidance, - # latest_observation=memory[-1].content, requirements_constraints=self.requirements_constraints, ) memory = await self.parse_browser_actions(memory)