diff --git a/src/chat/replyer/group_generator.py b/src/chat/replyer/group_generator.py index f4956ab2..ec9ee4dc 100644 --- a/src/chat/replyer/group_generator.py +++ b/src/chat/replyer/group_generator.py @@ -846,12 +846,7 @@ class DefaultReplyer: memory_retrieval: str = results_dict["memory_retrieval"] keywords_reaction_prompt = await self.build_keywords_reaction_prompt(target) jargon_explanation: str = results_dict.get("jargon_explanation") or "" - - # 从 chosen_actions 中提取 planner 的整体思考理由 - planner_reasoning = "" - if global_config.chat.include_planner_reasoning and reply_reason: - # 如果没有 chosen_actions,使用 reply_reason 作为备选 - planner_reasoning = f"你的想法是:{reply_reason}" + planner_reasoning = f"你的想法是:{reply_reason}" if extra_info: extra_info_block = f"以下是你在回复时需要参考的信息,现在请你阅读以下内容,进行决策\n{extra_info}\n以上是你在回复时需要参考的信息,现在请你阅读以下内容,进行决策" diff --git a/src/chat/replyer/private_generator.py b/src/chat/replyer/private_generator.py index ef069b81..9ff340d9 100644 --- a/src/chat/replyer/private_generator.py +++ b/src/chat/replyer/private_generator.py @@ -765,12 +765,7 @@ class PrivateReplyer: memory_retrieval: str = results_dict["memory_retrieval"] keywords_reaction_prompt = await self.build_keywords_reaction_prompt(target) jargon_explanation: str = results_dict.get("jargon_explanation") or "" - - # 从 chosen_actions 中提取 planner 的整体思考理由 - planner_reasoning = "" - if global_config.chat.include_planner_reasoning and reply_reason: - # 如果没有 chosen_actions,使用 reply_reason 作为备选 - planner_reasoning = f"你的想法是:{reply_reason}" + planner_reasoning = f"你的想法是:{reply_reason}" if extra_info: extra_info_block = f"以下是你在回复时需要参考的信息,现在请你阅读以下内容,进行决策\n{extra_info}\n以上是你在回复时需要参考的信息,现在请你阅读以下内容,进行决策" diff --git a/src/config/official_configs.py b/src/config/official_configs.py index e9037c02..77ad1ba2 100644 --- a/src/config/official_configs.py +++ b/src/config/official_configs.py @@ -117,9 +117,6 @@ class ChatConfig(ConfigBase): 时间区间支持跨夜,例如 "23:00-02:00"。 """ - include_planner_reasoning: bool = False - """是否将planner推理加入replyer,默认关闭(不加入)""" - def _parse_stream_config_to_chat_id(self, stream_config_str: str) -> Optional[str]: """与 ChatStream.get_stream_id 一致地从 "platform:id:type" 生成 chat_id。""" try: diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index 0d60c7fd..5640be70 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -1,5 +1,5 @@ [inner] -version = "7.1.2" +version = "7.1.3" #----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读---- # 如果你想要修改配置文件,请递增version的值 @@ -106,8 +106,6 @@ talk_value_rules = [ { target = "qq:114514:private", time = "00:00-23:59", value = 0.3 }, ] -include_planner_reasoning = false # 是否将planner推理加入replyer,默认关闭(不加入) - [memory] max_agent_iterations = 2 # 记忆思考深度(最低为1) agent_timeout_seconds = 45.0 # 最长回忆时间(秒)