项目地址:https://gitee.com/shuciqianye/yunzai-custom-dialogue-welm
WeLM-Plugin是一个基于WeLM提供的API所制作的AI对话插件
安装插件
1. 克隆本仓库至plugins目录
在Yunzai-Bot根目录打开终端并选择一个执行
使用Gitee(国内服务器推荐使用此方法)
git clone -b master --depth=1 https://gitee.com/shuciqianye/yunzai-custom-dialogue-welm.git ./plugins/WeLM-plugin 使用GitHub git clone -b master --depth=1 https://github.com/JD1433223/WeLM-plugin.git ./plugins/WeLM-plugin 2. 安装必要依赖(axios) PS: 请在Yunzai-Bot根目录执行 pnpm install 3. 填写Token(否则大部分功能无法使用) 对机器人私聊"#填写token xxx"(这个xxx是你的API-Token) 如果没有去这个文档申请WeLM申请文档 4. 填写预设 PS: dhdata.txt在WeLM-plugin/data内 需要在dhdata.txt内写入预设,预设内第1行输入给模型的提示信息,然后回车空一行,接下来写一段模拟的对话。 5. 填写机器人预设内名称 使用#更改name xxx把name改成和预设里面机器人要扮演的角色一样的名字