From 458d4a32209a18b9b5fbe0b0708323d0e7924da1 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Wed, 4 Jun 2025 22:27:18 +0800 Subject: [PATCH] =?UTF-8?q?remove=EF=BC=9A=E7=A7=BB=E9=99=A4response=5Fwil?= =?UTF-8?q?ling=5Famplifier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/configexe.toml | 4 ---- src/api/config_api.py | 1 - src/chat/normal_chat/willing/mode_classical.py | 2 +- src/config/official_configs.py | 3 --- template/bot_config_template.toml | 3 +-- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/scripts/configexe.toml b/scripts/configexe.toml index a322025f2..c2a39fac6 100644 --- a/scripts/configexe.toml +++ b/scripts/configexe.toml @@ -266,10 +266,6 @@ description = "回复意愿的计算模式:经典模式(classical)、mxp name = "回复频率" description = "麦麦回复频率,一般为1,默认频率下,30分钟麦麦回复30条(约数)" -[translations.items.response_willing_amplifier] -name = "回复意愿放大系数" -description = "麦麦回复意愿放大系数,一般为1" - [translations.items.response_interested_rate_amplifier] name = "兴趣度放大系数" description = "麦麦回复兴趣度放大系数,听到记忆里的内容时放大系数" diff --git a/src/api/config_api.py b/src/api/config_api.py index 9af2a30ea..2e6a380ca 100644 --- a/src/api/config_api.py +++ b/src/api/config_api.py @@ -52,7 +52,6 @@ class APIBotConfig: emoji_chance: float # 表情符号出现概率 thinking_timeout: int # 思考超时时间 willing_mode: str # 意愿模式 - response_willing_amplifier: float # 回复意愿放大器 response_interested_rate_amplifier: float # 回复兴趣率放大器 down_frequency_rate: float # 降低频率率 emoji_response_penalty: float # 表情回复惩罚 diff --git a/src/chat/normal_chat/willing/mode_classical.py b/src/chat/normal_chat/willing/mode_classical.py index c282651dd..1aa302945 100644 --- a/src/chat/normal_chat/willing/mode_classical.py +++ b/src/chat/normal_chat/willing/mode_classical.py @@ -43,7 +43,7 @@ class ClassicalWillingManager(BaseWillingManager): self.chat_reply_willing[chat_id] = min(current_willing, 3.0) reply_probability = min( - max((current_willing - 0.5), 0.01) * global_config.normal_chat.response_willing_amplifier * 2, 1 + max((current_willing - 0.5), 0.01) * 2, 1 ) # 检查群组权限(如果是群聊) diff --git a/src/config/official_configs.py b/src/config/official_configs.py index a0b320757..ad2ef013d 100644 --- a/src/config/official_configs.py +++ b/src/config/official_configs.py @@ -107,9 +107,6 @@ class NormalChatConfig(ConfigBase): talk_frequency: float = 1 """回复频率阈值""" - response_willing_amplifier: float = 1.0 - """回复意愿放大系数""" - response_interested_rate_amplifier: float = 1.0 """回复兴趣度放大系数""" diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index fc11ebbf0..d8042dd54 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -80,8 +80,7 @@ thinking_timeout = 120 # 麦麦最长思考时间,超过这个时间的思考 willing_mode = "classical" # 回复意愿模式 —— 经典模式:classical,mxp模式:mxp,自定义模式:custom(需要你自己实现) talk_frequency = 1 # 麦麦回复频率,一般为1,默认频率下,30分钟麦麦回复30条(约数) -response_willing_amplifier = 1 # 麦麦回复意愿放大系数,一般为1 -response_interested_rate_amplifier = 1 # 麦麦回复兴趣度放大系数,听到记忆里的内容时放大系数 +response_interested_rate_amplifier = 1 # 麦麦回复兴趣度放大系数 emoji_response_penalty = 0 # 对其他人发的表情包回复惩罚系数,设为0为不回复单个表情包,减少单独回复表情包的概率 mentioned_bot_inevitable_reply = true # 提及 bot 必然回复