Files
Bubbles/config.yaml.template
2025-04-23 13:30:10 +08:00

191 lines
9.8 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
warning_file_handler:
class: logging.handlers.RotatingFileHandler
level: WARNING
formatter: simple
filename: wx_warning.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: [example12345@chatroom,example12345@chatroom] # 允许响应的群 roomId大概长这样2xxxxxxxxx3@chatroom
welcome_msg: "欢迎 {new_member} 加入群聊!\n请简单介绍一下自己吧~\n如果想和我聊天可以@我" # 新人入群欢迎消息,可使用{new_member}和{inviter}变量
# 群聊与AI模型映射如果不配置则使用默认模型
models:
# 模型ID参考
# 0: 自动选择第一个可用模型
# 1: TigerBot
# 2: ChatGPT
# 3: 讯飞星火
# 4: ChatGLM
# 5: BardAssistant/Gemini
# 6: 智谱ZhiPu
# 7: Ollama
# 8: DeepSeek
# 9: Perplexity
default: 0 # 默认模型ID0表示自动选择第一个可用模型
# 群聊映射
mapping:
- room_id: example12345@chatroom
model: 2 # 对应ChatType.CHATGPT
- room_id: example12345@chatroom
model: 7 # 对应ChatType.OLLAMA
# 私聊映射
private_mapping:
- wxid: filehelper
model: 2 # 对应ChatType.CHATGPT
- wxid: wxid_example12345
model: 8 # 对应ChatType.DEEPSEEK
news:
receivers: ["filehelper"] # 定时新闻接收人roomid 或者 wxid
report_reminder:
receivers: [] # 定时日报周报月报提醒roomid 或者 wxid
# 消息发送速率限制一分钟内最多发送6条消息
send_rate_limit: 6
weather: # -----天气提醒配置这行不填-----
city_code: 101010100 # 北京城市代码如若需要其他城市可参考base/main_city.json或者自寻城市代码填写
receivers: ["filehelper"] # 天气提醒接收人roomid 或者 wxid
chatgpt: # -----chatgpt配置这行不填-----
key: # 填写你 ChatGPT 的 key
api: https://api.openai.com/v1 # 如果你不知道这是干嘛的,就不要改
model: gpt-3.5-turbo # 可选gpt-3.5-turbo、gpt-4、gpt-4-turbo、gpt-4.1-mini、o4-mini
proxy: # 如果你在国内你可能需要魔法大概长这样http://域名或者IP地址:端口号
prompt: 你是智能聊天机器人,你叫 wcferry # 根据需要对角色进行设定
chatglm: # -----chatglm配置这行不填-----
key: # 这个应该不用动
api: http://localhost:8000/v1 # 根据自己的chatglm地址修改
proxy: # 如果你在国内你可能需要魔法大概长这样http://域名或者IP地址:端口号
prompt: 你是智能聊天机器人,你叫小薇 # 根据需要对角色进行设定
file_path: F:/Pictures/temp #设定生成图片和代码使用的文件夹路径
ollama: # -----ollama配置这行不填-----
enable: true # 是否启用 ollama
model: deepseek-r1:1.5b # ollama-7b-sft
prompt: 你是智能聊天机器人,你叫 梅好事 # 根据需要对角色进行设定
file_path: d:/pictures/temp #设定生成图片和代码使用的文件夹路径
tigerbot: # -----tigerbot配置这行不填-----
key: # key
model: # tigerbot-7b-sft
xinghuo_web: # -----讯飞星火web模式api配置这行不填 抓取方式详见文档https://www.bilibili.com/read/cv27066577-----
cookie: # cookie
fd: # fd
GtToken: # GtToken
prompt: 你是智能聊天机器人,你叫 wcferry。请用这个角色回答我的问题 # 根据需要对角色进行设定
bard: # -----bard配置这行不填-----
api_key: # api-key 创建地址https://ai.google.dev/pricing?hl=en创建后复制过来即可
model_name: gemini-pro # 新模型上线后可以选择模型
proxy: http://127.0.0.1:7890 # 如果你在国内你可能需要魔法大概长这样http://域名或者IP地址:端口号
# 提示词尽可能用英文bard对中文提示词的效果不是很理想下方提示词为英语老师的示例请按实际需要修改,默认设置的提示词为谷歌创造的AI大语言模型
# I want you to act as a spoken English teacher and improver. I will speak to you in English and you will reply to me in English to practice my spoken English. I want you to keep your reply neat, limiting the reply to 100 words. I want you to strictly correct my grammar mistakes, typos, and factual errors. I want you to ask me a question in your reply. Now let's start practicing, you could ask me a question first. Remember, I want you to strictly correct my grammar mistakes, typos, and factual errors.
prompt: You am a large language model, trained by Google.
zhipu: # -----zhipu配置这行不填-----
api_key: #api key
model: # 模型类型
deepseek: # -----deepseek配置这行不填-----
#思维链相关功能默认关闭开启后会增加响应时间和消耗更多的token
key: # 填写你的 DeepSeek API Key API Key的格式为sk-xxxxxxxxxxxxxxx
api: https://api.deepseek.com # DeepSeek API 地址
model: deepseek-chat # 可选: deepseek-chat (DeepSeek-V3), deepseek-reasoner (DeepSeek-R1)
prompt: 你是智能聊天机器人,你叫 DeepSeek 助手 # 根据需要对角色进行设定
enable_reasoning: false # 是否启用思维链功能,仅在使用 deepseek-reasoner 模型时有效
show_reasoning: false # 是否在回复中显示思维过程,仅在启用思维链功能时有效
cogview: # -----智谱AI图像生成配置这行不填-----
# 此API请参考 https://www.bigmodel.cn/dev/api/image-model/cogview
enable: False # 是否启用图像生成功能默认关闭将False替换为true则开启此模型可和其他模型同时运行。
api_key: # 智谱API密钥请填入您的API Key
model: cogview-4-250304 # 模型编码可选cogview-4-250304、cogview-4、cogview-3-flash
quality: standard # 生成质量可选standard快速、hd高清
size: 1024x1024 # 图片尺寸,可自定义,需符合条件
trigger_keyword: 牛智谱 # 触发图像生成的关键词
temp_dir: # 临时文件存储目录留空则默认使用项目目录下的zhipuimg文件夹如果要更改例如 D:/Pictures/temp 或 /home/user/temp
fallback_to_chat: true # 当未启用绘画功能时true=将请求发给聊天模型处理false=回复固定的未启用提示信息
aliyun_image: # -----如果要使用阿里云文生图,取消下面的注释并填写相关内容,模型到阿里云百炼找通义万相-文生图2.1-Turbo-----
enable: true # 是否启用阿里文生图功能false为关闭默认开启如果未配置则会将消息发送给聊天大模型
api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxx # 替换为你的DashScope API密钥
model: wanx2.1-t2i-turbo # 模型名称默认使用wanx2.1-t2i-turbo(快),wanx2.1-t2i-plus,wanx-v1会给用户不同的提示
size: 1024*1024 # 图像尺寸,格式为宽*高
n: 1 # 生成图像的数量
temp_dir: ./temp # 临时文件存储路径
trigger_keyword: 牛阿里 # 触发词,默认为"牛阿里"
fallback_to_chat: true # 当服务不可用时是否转发给聊天模型处理
gemini_image: # -----谷歌AI画图配置这行不填-----
enable: true # 是否启用谷歌AI画图功能
api_key: # 谷歌Gemini API密钥必填
model: gemini-2.0-flash-exp-image-generation # 模型名称,建议保持默认,只有这一个模型可以进行绘画
temp_dir: ./geminiimg # 图片保存目录,可选
trigger_keyword: 牛谷歌 # 触发词,默认为"牛谷歌"
fallback_to_chat: false # 未启用时是否回退到聊天模式
proxy: http://127.0.0.1:7890 # 使用Clash代理格式为http://域名或者IP地址:端口号
perplexity: # -----perplexity配置这行不填-----
key: # 填写你的Perplexity API Key
api: https://api.perplexity.ai # API地址
proxy: # 如果你在国内你可能需要魔法大概长这样http://域名或者IP地址:端口号
model: mixtral-8x7b-instruct # 可选模型包括sonar-small-chat, sonar-medium-chat, sonar-pro, mixtral-8x7b-instruct等
prompt: 你是Perplexity AI助手请用专业、准确、有帮助的方式回答问题 # 角色设定
trigger_keyword: ask # 触发Perplexity服务的前置词
allow_all: false # 是否允许所有群聊和用户使用Perplexity设为true时忽略下面的白名单配置
allowed_groups: [] # 允许使用Perplexity的群聊ID列表例如["123456789@chatroom", "123456789@chatroom"]
allowed_users: [] # 允许使用Perplexity的用户ID列表例如["wxid_123456789", "filehelper"]
goblin_gift: # -----古灵阁妖精的馈赠配置这行不填-----
enable: false # 是否全局启用古灵阁妖精的馈赠功能,默认关闭
probability: 0.01 # 触发概率默认为1%
min_points: 10 # 最小奖励积分
max_points: 100 # 最大奖励积分
allowed_groups: [] # 允许使用馈赠功能的群聊ID列表例如["123456789@chatroom", "123456789@chatroom"],留空表示不启用