Merge branch 'MaiM-with-u:dev' into dev
This commit is contained in:
@@ -158,12 +158,12 @@ class WillingManager:
|
|||||||
logger.debug(f"被提及, 当前意愿: {current_willing}")
|
logger.debug(f"被提及, 当前意愿: {current_willing}")
|
||||||
|
|
||||||
if is_emoji:
|
if is_emoji:
|
||||||
current_willing *= 0.1
|
current_willing = global_config.emoji_response_penalty * 0.1
|
||||||
logger.debug(f"表情包, 当前意愿: {current_willing}")
|
logger.debug(f"表情包, 当前意愿: {current_willing}")
|
||||||
|
|
||||||
# 根据话题兴趣度适当调整
|
# 根据话题兴趣度适当调整
|
||||||
if interested_rate > 0.5:
|
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
|
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)
|
base_probability = 0.30 if msg_count >= 15 else 0.03 * min(msg_count, 10)
|
||||||
|
|
||||||
# 考虑回复意愿的影响
|
# 考虑回复意愿的影响
|
||||||
reply_probability = base_probability * current_willing
|
reply_probability = base_probability * current_willing * global_config.response_willing_amplifier
|
||||||
|
|
||||||
# 检查群组权限(如果是群聊)
|
# 检查群组权限(如果是群聊)
|
||||||
if chat_stream.group_info and config:
|
if chat_stream.group_info and config:
|
||||||
|
|||||||
Reference in New Issue
Block a user