Update mode_dynamic.py

This commit is contained in:
2829798842
2025-04-09 10:21:03 +08:00
committed by GitHub
parent 863ed4b2c1
commit de219e50cb

View File

@@ -163,7 +163,7 @@ class WillingManager:
# 根据话题兴趣度适当调整
if interested_rate > 0.5:
current_willing += (interested_rate - 0.5) * 0.5
current_willing += (interested_rate - 0.5) * 0.5 * global_config.response_interested_rate_amplifier
# 根据当前模式计算回复概率
base_probability = 0.0
@@ -180,7 +180,7 @@ class WillingManager:
base_probability = 0.30 if msg_count >= 15 else 0.03 * min(msg_count, 10)
# 考虑回复意愿的影响
reply_probability = base_probability * current_willing * config.response_willing_amplifier
reply_probability = base_probability * current_willing * global_config.response_willing_amplifier
# 检查群组权限(如果是群聊)
if chat_stream.group_info and config: