Files
WeChatHookBot/plugins/ChatRoomSummary/config.toml

49 lines
1.5 KiB
TOML
Raw 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.
# 群聊总结插件配置
[database]
# 使用与 MessageLogger 相同的数据库配置
host = "43.137.46.150"
port = 3306
user = "80012029Lz"
password = "wechat_message"
database = "wechat_message"
charset = "utf8mb4"
[api]
# AI API 配置
base_url = "https://ai.dgbmc.top/v1/chat/completions"
api_key = "sk-KF5YoN2Q8gFwq8irvoQZIsYaLNGgYjbXnfrL2t9CcV3OHN19" # 请填入你的 API Key
model = "gemini-2.5-pro"
max_tokens = 1000000
timeout = 1200
temperature = 0.7
[proxy]
# 代理配置(可选)
enabled = false
type = "socks5" # http 或 socks5
host = "38.55.107.103"
port = 53054
[behavior]
# 功能配置
enabled = true # 是否启用插件
auto_summary_enabled = true # 是否启用自动定时总结
min_messages = 2 # 最少消息数量才生成总结
max_message_length = 1500 # 单条消息最大长度(超过会分段发送)
max_messages = 2000 # 单次总结最多使用的消息条数(避免过长导致失败)
# 群聊过滤配置
enabled_groups = [ # 启用总结的群聊列表(留空表示所有群可用)
"48712602520@chatroom",
"47652853273@chatroom",
"48977668554@chatroom",
"51803330518@chatroom", # 示例群聊ID
]
disabled_groups = [ # 禁用总结的群聊列表
# "disabled_group@chatroom", # 示例禁用群聊
]
# 定时任务配置
summary_time = "09:00" # 每日总结时间24小时制