Files
abot/config.yaml.template
2023-10-16 16:17:11 +08:00

68 lines
1.9 KiB
Plaintext
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.
logging:
version: 1
disable_existing_loggers: False
formatters:
simple:
format: "%(asctime)s %(message)s"
datefmt: "%Y-%m-%d %H:%M:%S"
error:
format: "%(asctime)s %(name)s %(levelname)s %(filename)s::%(funcName)s[%(lineno)d]:%(message)s"
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: simple
stream: ext://sys.stdout
info_file_handler:
class: logging.handlers.RotatingFileHandler
level: INFO
formatter: simple
filename: wx_info.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
error_file_handler:
class: logging.handlers.RotatingFileHandler
level: ERROR
formatter: error
filename: wx_error.log
maxBytes: 10485760 # 10MB
backupCount: 20
encoding: utf8
root:
level: INFO
handlers: [console, info_file_handler, error_file_handler]
groups:
enable: [] # 允许响应的群 roomId大概长这样2xxxxxxxxx3@chatroom
news:
receivers: [] # 定时新闻接收人roomid 或者 wxid
report_reminder:
receivers: [] # 定时日报周报月报提醒roomid 或者 wxid
# 如果要使用 ChatGPT取消下面的注释并填写相关内容
# chatgpt:
# key: 填写你 ChatGPT 的 key
# api: https://api.openai.com/v1 # 如果你不知道这是干嘛的,就不要改
# proxy: # 如果你在国内你可能需要魔法大概长这样http://域名或者IP地址:端口号
# prompt: 你是智能聊天机器人你叫wcferry # 根据需要对角色进行设定
tigerbot:
key: key
model: tigerbot-7b-sft
# 使用讯飞星火web模式api需要抓取以下参数
# 抓取方式详见文档https://www.bilibili.com/read/cv27066577
# xinghuo_web:
# cookie: cookie
# fd: fd
# GtToken: GtToken
# prompt: 你是智能聊天机器人你叫wcferry。请用这个角色回答我的问题 # 根据需要对角色进行设定