Files
WeChatHookBot/plugins/AutoReply/config.toml

48 lines
1.7 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AutoReply 插件配置 v2.0
[basic]
enabled = true # 是否启用自动回复
judge_api_url = "https://ai.dgbmc.top/v1/chat/completions" # 判断模型API地址
judge_api_key = "sk-KF5YoN2Q8gFwq8irvoQZIsYaLNGgYjbXnfrL2t9CcV3OHN19" # 判断模型API密钥
judge_model = "glm-4.7" # 判断模型(建议使用小模型)
reply_threshold = 0.6 # 回复阈值(0-1)超过此分数才回复提高到0.7减少频繁回复)
[energy]
decay_rate = 0.15 # 精力衰减速度每次回复后下降增加到0.15
recovery_rate = 0.01 # 精力恢复速度不回复时恢复降低到0.01
[context]
messages_count = 5 # 判断时考虑的最近消息数量
[rate_limit]
min_interval = 30 # 最小判断间隔提高到30秒避免高频判断
reply_cooldown = 120 # 回复后的冷却时间2分钟内不再主动回复
skip_if_judging = true # 如果正在判断中,跳过新消息
[stale_detection]
# 消息过时检测 - 避免回复已被刷走的消息
max_elapsed_seconds = 45 # 判断耗时超过此秒数则放弃回复
max_new_messages = 10 # 判断期间新消息超过此数量则放弃回复
[whitelist]
enabled = false # 是否启用白名单
chat_list = [] # 白名单群聊ID列表
[weights]
# 判断权重配置总和必须为1.0
relevance = 0.25 # 内容相关度
willingness = 0.20 # 回复意愿
social = 0.20 # 社交适宜性
timing = 0.15 # 时机恰当性
continuity = 0.20 # 对话连贯性
[judge]
include_reasoning = true # 是否包含判断理由
max_retries = 3 # 判断失败最大重试次数
[proxy]
enabled = false # 是否启用代理
type = "socks5" # 代理类型: socks5, http
host = "127.0.0.1"
port = 7890