From 4455b298fcaf03f12dc079490490bd755430ae94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8E=98=E6=9D=83=20=E9=A9=AC?= Date: Sun, 7 Apr 2024 13:39:19 +0800 Subject: [PATCH] fixbug: type error --- metagpt/actions/di/detect_intent.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metagpt/actions/di/detect_intent.py b/metagpt/actions/di/detect_intent.py index a09541cf6..9109c01bb 100644 --- a/metagpt/actions/di/detect_intent.py +++ b/metagpt/actions/di/detect_intent.py @@ -91,8 +91,7 @@ You should follow the following Standard Operating Procedure: class DetectIntent(Action): async def run(self, with_message: Message, **kwargs) -> Tuple[str, str]: - ref_content = with_message.content.replace("\n", "\n> ") - user_requirement = f"> {with_message.role}: {ref_content}" + user_requirement = with_message.content intentions = "\n".join([f"{si.type_name}: {si.value.description}" for si in SOPItem]) prompt = DETECT_PROMPT.format(user_requirement=user_requirement, intentions=intentions)