From d1c940c782e90220cab71e41b3dfd85f7ceaa8cb Mon Sep 17 00:00:00 2001 From: 2829798842 <2829798842@qq.com> Date: Tue, 27 May 2025 20:58:13 +0800 Subject: [PATCH] Update mind_processor.py --- .../info_processors/mind_processor.py | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/chat/focus_chat/info_processors/mind_processor.py b/src/chat/focus_chat/info_processors/mind_processor.py index 8e911ace..f48676a2 100644 --- a/src/chat/focus_chat/info_processors/mind_processor.py +++ b/src/chat/focus_chat/info_processors/mind_processor.py @@ -22,43 +22,43 @@ logger = get_logger("processor") def init_prompt(): group_prompt = """ -你的名字是{bot_name} +Your name is {bot_name} {memory_str} {extra_info} {relation_prompt} {cycle_info_block} -现在是{time_now},你正在上网,和qq群里的网友们聊天,以下是正在进行的聊天内容: +It is currently {time_now}, you are online, chatting with netizens in a QQ group, the following is the ongoing chat content: {chat_observe_info} -以下是你之前对聊天的观察和规划,你的名字是{bot_name}: +Below are your previous observations and plans for the chat, your name is {bot_name}: {last_mind} -现在请你继续输出观察和规划,输出要求: -1. 先关注未读新消息的内容和近期回复历史 -2. 根据新信息,修改和删除之前的观察和规划 -3. 根据聊天内容继续输出观察和规划 -4. 注意群聊的时间线索,话题由谁发起,进展状况如何,思考聊天的时间线。 -6. 语言简洁自然,不要分点,不要浮夸,不要修辞,仅输出思考内容就好""" +Now please continue to output observations and plans, output requirements: +1. First, pay attention to the content of unread new messages and recent reply history +2. Based on new information, modify and delete previous observations and plans +3. Continue to output observations and plans based on the chat content +4. Pay attention to the timeline of the group chat, who initiated the topic, how it is progressing, and think about the timeline of the chat. +6. The language should be concise and natural, without bullet points, exaggeration, or rhetoric, just output the thinking content.""" Prompt(group_prompt, "sub_heartflow_prompt_before") private_prompt = """ -你的名字是{bot_name} +Your name is {bot_name} {memory_str} {extra_info} {relation_prompt} {cycle_info_block} -现在是{time_now},你正在上网,和qq群里的网友们聊天,以下是正在进行的聊天内容: +It is currently {time_now}, you are online, chatting with netizens in a QQ group, the following is the ongoing chat content: {chat_observe_info} -以下是你之前对聊天的观察和规划,你的名字是{bot_name}: +Below are your previous observations and plans for the chat, your name is {bot_name}: {last_mind} -现在请你继续输出观察和规划,输出要求: -1. 先关注未读新消息的内容和近期回复历史 -2. 根据新信息,修改和删除之前的观察和规划 -3. 根据聊天内容继续输出观察和规划 -4. 注意群聊的时间线索,话题由谁发起,进展状况如何,思考聊天的时间线。 -6. 语言简洁自然,不要分点,不要浮夸,不要修辞,仅输出思考内容就好""" +Now please continue to output observations and plans, output requirements: +1. First, pay attention to the content of unread new messages and recent reply history +2. Based on new information, modify and delete previous observations and plans +3. Continue to output observations and plans based on the chat content +4. Pay attention to the timeline of the group chat, who initiated the topic, how it is progressing, and think about the timeline of the chat. +6. The language should be concise and natural, without bullet points, exaggeration, or rhetoric, just output the thinking content.""" Prompt(private_prompt, "sub_heartflow_prompt_private_before")