From b2dd8717419e77142e007794a79825ecfb7aaf6d Mon Sep 17 00:00:00 2001 From: Bakadax Date: Thu, 8 May 2025 19:48:29 +0800 Subject: [PATCH] =?UTF-8?q?config=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/config.py | 9 ++++----- template/bot_config_template.toml | 11 ++--------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/config/config.py b/src/config/config.py index b0d20ab6..da5b3c2e 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -276,7 +276,7 @@ class BotConfig: enable_pfc_reply_checker: bool = True # 是否开启PFC回复检查 # idle_conversation - enable_idle_conversation: bool = False # 是否启用 pfc 主动发言(未完善) + enable_idle_conversation: bool = False # 是否启用 pfc 主动发言 idle_check_interval: int = 10 # 检查间隔,10分钟检查一次 min_idle_time: int = 7200 # 最短无活动时间,2小时 (7200秒) max_idle_time: int = 18000 # 最长无活动时间,5小时 (18000秒) @@ -493,7 +493,6 @@ class BotConfig: "llm_heartflow", "llm_PFC_action_planner", "llm_PFC_chat", - "llm_PFC_reply_checker", "llm_PFC_relationship_eval", ] @@ -666,7 +665,7 @@ class BotConfig: config.talk_allowed_private = set(str(user) for user in experimental_config.get("talk_allowed_private", [])) if config.INNER_VERSION in SpecifierSet(">=1.1.0"): config.enable_pfc_chatting = experimental_config.get("pfc_chatting", config.enable_pfc_chatting) - if config.INNER_VERSION in SpecifierSet(">=1.1.0"): + if config.INNER_VERSION in SpecifierSet(">=1.6.2"): config.enable_pfc_reply_checker = experimental_config.get( "enable_pfc_reply_checker", config.enable_pfc_reply_checker ) @@ -674,7 +673,7 @@ class BotConfig: def idle_conversation(parent: dict): idle_conversation_config = parent["idle_conversation"] - if config.INNER_VERSION in SpecifierSet(">=1.6.3"): + if config.INNER_VERSION in SpecifierSet(">=1.6.2"): config.enable_idle_conversation = idle_conversation_config.get( "enable_idle_conversation", config.enable_idle_conversation ) @@ -717,7 +716,7 @@ class BotConfig: "chat": {"func": chat, "support": ">=1.6.0", "necessary": False}, "normal_chat": {"func": normal_chat, "support": ">=1.6.0", "necessary": False}, "focus_chat": {"func": focus_chat, "support": ">=1.6.0", "necessary": False}, - "idle_conversation": {"func": idle_conversation, "support": ">=1.6.3", "necessary": False}, + "idle_conversation": {"func": idle_conversation, "support": ">=1.6.2", "necessary": False}, } # 原地修改,将 字符串版本表达式 转换成 版本对象 diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index 95282ed5..0415e75d 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -1,5 +1,5 @@ [inner] -version = "1.6.5" +version = "1.6.2" #----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读---- #如果你想要修改配置文件,请在修改后将version的值进行变更 @@ -191,7 +191,7 @@ pfc_chatting = false # 是否启用PFC聊天,该功能仅作用于私聊,与 enable_pfc_reply_checker = true # 是否启用 PFC 的回复检查器 [idle_conversation] -enable_idle_conversation = false +enable_idle_conversation = false # 是否启用 pfc 主动发言 idle_check_interval = 10 # 检查间隔,10分钟检查一次 min_idle_time = 7200 # 最短无活动时间,2小时 (7200秒) max_idle_time = 18000 # 最长无活动时间,5小时 (18000秒) @@ -291,13 +291,6 @@ temp = 0.3 pri_in = 2 pri_out = 8 -#PFC检查模型 -[model.llm_PFC_reply_checker] -name = "Pro/deepseek-ai/DeepSeek-V3" -provider = "SILICONFLOW" -pri_in = 2 -pri_out = 8 - # PFC 关系评估LLM [model.llm_PFC_relationship_eval] name = "Pro/deepseek-ai/DeepSeek-V3" # 或者其他你认为适合判断任务的模型