基于 LLM 的玉检测插件,使用智谱API
使用智谱的 GLM-4V-Flash
进行检测,不消耗api余额
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令安装nb plugin install nonebot-plugin-llm-jade
pip安装
pip install nonebot-plugin-llm-jade
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_llm_jade"]
Github下载
手动克隆本仓库或直接下载压缩包,将里面的 nonebot_plugin_llm_jade
文件夹复制到 src/plugins
中,并安装以下依赖
httpx PyJWT
#智谱清言的API Key
jadefoot_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
启用的群聊
jadefoot_group = ["123456789","987654321"]
#触发的概率(默认为0.5)
jadefoot_probability = 0.5