feat: 兼容旧版的动态选择模型

This commit is contained in:
touer angler
2023-11-16 16:25:01 +08:00
parent 8cdeb22846
commit 4477267744
5 changed files with 88 additions and 38 deletions

View File

@@ -47,28 +47,26 @@ news:
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 #设定生成图片和代码使用的文件夹路径
chatgpt: # -----chatgpt配置这行不填-----
key: # 填写你 ChatGPT 的 key
api: https://api.openai.com/v1 # 如果你不知道这是干嘛的,就不要
proxy: # 如果你在国内你可能需要魔法大概长这样http://域名或者IP地址:端口号
prompt: # 根据需要对角色进行设定 你是智能聊天机器人你叫wcferry
tigerbot:
key: key
model: tigerbot-7b-sft
chatglm: # -----chatglm配置这行不填-----
key: # key 暂时没有
api: http://localhost:8000/v1 # 根据自己的chatglm地址修改
proxy: # 如果你在国内你可能需要魔法大概长这样http://域名或者IP地址:端口号
prompt: # 根据需要对角色进行设定 你是智能聊天机器人,你叫小薇
file_path: F:/Pictures/temp #设定生成图片和代码使用的文件夹路径
# 使用讯飞星火web模式api需要抓取以下参数
# 抓取方式详见文档https://www.bilibili.com/read/cv27066577
# xinghuo_web:
# cookie: cookie
# fd: fd
# GtToken: GtToken
# prompt: 你是智能聊天机器人你叫wcferry。请用这个角色回答我的问题 # 根据需要对角色进行设定
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。请用这个角色回答我的问题