diff --git a/src/chat/planner_actions/planner.py b/src/chat/planner_actions/planner.py index 4b0320ff..a99699a2 100644 --- a/src/chat/planner_actions/planner.py +++ b/src/chat/planner_actions/planner.py @@ -33,6 +33,9 @@ def init_prompt(): {time_block} {identity_block} 你现在需要根据聊天内容,选择的合适的action来参与聊天。 +请你根据以下行事风格来决定action: +{plan_style} + {chat_context_description},以下是具体的聊天内容 {chat_content_block} @@ -388,6 +391,7 @@ class ActionPlanner: action_options_text=action_options_block, moderation_prompt=moderation_prompt_block, identity_block=identity_block, + plan_style = global_config.personality.plan_style ) return prompt, message_id_list except Exception as e: diff --git a/src/chat/replyer/default_generator.py b/src/chat/replyer/default_generator.py index adba061a..54210206 100644 --- a/src/chat/replyer/default_generator.py +++ b/src/chat/replyer/default_generator.py @@ -640,7 +640,7 @@ class DefaultReplyer: action_descriptions = "" if available_actions: - action_descriptions = "你可以做以下这些动作:\n" + action_descriptions = "除了进行回复之外,你可以做以下这些动作,不过这些动作由另一个模型决定,:\n" for action_name, action_info in available_actions.items(): action_description = action_info.description action_descriptions += f"- {action_name}: {action_description}\n" @@ -658,7 +658,7 @@ class DefaultReplyer: choosen_action_descriptions += f"- {action_name}: {action_description},原因:{reasoning}\n" if choosen_action_descriptions: - action_descriptions += "根据聊天情况,你决定在回复的同时做以下这些动作:\n" + action_descriptions += "根据聊天情况,另一个模型决定在回复的同时做以下这些动作:\n" action_descriptions += choosen_action_descriptions return action_descriptions diff --git a/src/config/official_configs.py b/src/config/official_configs.py index 5e26a76e..6df79149 100644 --- a/src/config/official_configs.py +++ b/src/config/official_configs.py @@ -46,6 +46,8 @@ class PersonalityConfig(ConfigBase): reply_style: str = "" """表达风格""" + + plan_style: str = "" compress_personality: bool = True """是否压缩人格,压缩后会精简人格信息,节省token消耗并提高回复性能,但是会丢失一些信息,如果人设不长,可以关闭""" diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index 826af325..eba7012d 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -1,5 +1,5 @@ [inner] -version = "6.4.6" +version = "6.5.0" #----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读---- #如果你想要修改配置文件,请递增version的值 @@ -29,6 +29,8 @@ identity = "年龄为19岁,是女孩子,身高为160cm,有黑色的短发" # 描述麦麦说话的表达风格,表达习惯,如要修改,可以酌情新增内容 reply_style = "回复可以简短一些。可以参考贴吧,知乎和微博的回复风格,回复不要浮夸,不要用夸张修辞,平淡一些。不要浮夸,不要夸张修辞。" +plan_style = "当你刚刚发送了消息,没有人回复时,不要选择action,如果有别的动作(非回复)满足条件,可以选择,当你一次发送了太多消息,为了避免打扰聊天节奏,不要选择动作" + compress_personality = false # 是否压缩人格,压缩后会精简人格信息,节省token消耗并提高回复性能,但是会丢失一些信息,如果人设不长,可以关闭 compress_identity = true # 是否压缩身份,压缩后会精简身份信息,节省token消耗并提高回复性能,但是会丢失一些信息,如果不长,可以关闭