🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-06-24 16:28:06 +00:00
parent babf43d211
commit 0e7bcbd8c7
2 changed files with 3 additions and 5 deletions

View File

@@ -1019,9 +1019,9 @@ class NormalChat:
elif bot_reply_count_10_min <= target_replies_in_window * 2:
# 在 [目标数, 目标数*2] 区间,意愿从 1.0 线性下降到 0.2
over_target_cap = target_replies_in_window * 2
new_amplifier = 1.0 + (bot_reply_count_10_min - target_replies_in_window) * (
0.2 - 1.0
) / (over_target_cap - target_replies_in_window)
new_amplifier = 1.0 + (bot_reply_count_10_min - target_replies_in_window) * (0.2 - 1.0) / (
over_target_cap - target_replies_in_window
)
else:
# 超过目标数2倍直接设为最小值
new_amplifier = 0.2

View File

@@ -227,7 +227,6 @@ class CoreActionsPlugin(BasePlugin):
"skip_judge_when_tired": ConfigField(
type=bool, default=True, description="当发言过多时是否启用跳过LLM判断机制"
),
"frequency_check_window": ConfigField(
type=int, default=600, description="回复频率检查窗口时间(秒)", example=600
),
@@ -261,7 +260,6 @@ class CoreActionsPlugin(BasePlugin):
skip_judge_when_tired = self.get_config("no_reply.skip_judge_when_tired", True)
NoReplyAction._skip_judge_when_tired = skip_judge_when_tired
# 新增:频率检测相关配置
frequency_check_window = self.get_config("no_reply.frequency_check_window", 600)
NoReplyAction._frequency_check_window = frequency_check_window