fixbug: type error

This commit is contained in:
莘权 马 2024-04-07 13:39:19 +08:00
parent ada3c1554c
commit 4455b298fc

View file

@ -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)