75 lines
2.3 KiB
Plaintext
75 lines
2.3 KiB
Plaintext
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 # 根据需要对角色进行设定
|
||
|
||
chatglm:
|
||
key: key
|
||
api: http://localhost:8000/v1 # 根据自己的chatglm地址修改
|
||
proxy: # 如果你在国内,你可能需要魔法,大概长这样:http://域名或者IP地址:端口号
|
||
prompt: 你是智能聊天机器人,你叫小薇 # 根据需要对角色进行设定
|
||
file_path: F:/Pictures/temp #设定生成图片和代码使用的文件夹路径
|
||
|
||
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。请用这个角色回答我的问题 # 根据需要对角色进行设定
|