From 3b7dbf5e4ee1826c2240698c948979dd4c820c38 Mon Sep 17 00:00:00 2001 From: Yizhou Chi Date: Wed, 14 Aug 2024 14:46:38 +0800 Subject: [PATCH] Remove TL's quick think system prompt --- metagpt/prompts/di/team_leader.py | 6 ------ metagpt/roles/di/team_leader.py | 5 ----- 2 files changed, 11 deletions(-) diff --git a/metagpt/prompts/di/team_leader.py b/metagpt/prompts/di/team_leader.py index 7c536875c..d7eb33442 100644 --- a/metagpt/prompts/di/team_leader.py +++ b/metagpt/prompts/di/team_leader.py @@ -35,12 +35,6 @@ Sixth, describe the requirements as they pertain to software development, data a Seventh, describe the technologies you must use. """ ) -QUICK_THINK_SYSTEM_PROMPT = """ -{role_info} -Your team member: -{team_info} -However, you MUST respond to the user message by yourself directly, DON'T ask your team members. -""" TL_INFO = """ {role_info} diff --git a/metagpt/roles/di/team_leader.py b/metagpt/roles/di/team_leader.py index 305d546d8..82288a7ed 100644 --- a/metagpt/roles/di/team_leader.py +++ b/metagpt/roles/di/team_leader.py @@ -7,7 +7,6 @@ from pydantic import Field from metagpt.actions.di.run_command import RunCommand from metagpt.prompts.di.team_leader import ( FINISH_CURRENT_TASK_CMD, - QUICK_THINK_SYSTEM_PROMPT, TL_INFO, TL_INSTRUCTION, TL_THOUGHT_GUIDANCE, @@ -55,10 +54,6 @@ class TeamLeader(RoleZero): return TL_INFO.format(role_info=role_info, team_info=team_info) async def _quick_think(self) -> Message: - self.llm.system_prompt = QUICK_THINK_SYSTEM_PROMPT.format( - role_info=super()._get_prefix(), - team_info=self._get_team_info(), - ) return await super()._quick_think() async def _think(self) -> bool: