📖 介绍
这是一个 nonebot2 的 ai 解释插件,对着你想要了解的东西,回复「zssm」吧!
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-zssm
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-zssm
pdm
pdm add nonebot-plugin-zssm
poetry
poetry add nonebot-plugin-zssm
conda
conda install nonebot-plugin-zssm
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_zssm"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| zssm_ai_text_endpoint | 否 | https://api.deepseek.com/v1 | 解释使用的 ai 端点 |
| zssm_ai_text_token | 是 | 无 | 解释使用的 api-key |
| zssm_ai_text_model | 否 | deepseek-reasoner | 解释使用的模型 |
| zssm_ai_vl_endpoint | 否 | https://api.siliconflow.cn/v1 | 识图使用的 ai 端点 |
| zssm_ai_vl_token | 是 | 无 | 解释使用的 api-key |
| zssm_ai_vl_model | 否 | Qwen/Qwen2.5-VL-72B-Instruct | 解释使用的模型 |
| zssm_ai_check_endpoint | 否 | https://api.deepseek.com/v1 | 审查使用的 ai 端点 |
| zssm_ai_check_token | 否 | 无 | 审查使用的 api-key,不填则不进行审查 |
| zssm_ai_check_model | 否 | deepseek-v3 | 审查使用的模型 |
| zssm_browser_proxy | 否 | 无 | 浏览器代理 |
| zssm_install_browser | 否 | True | 启动时安装浏览器 |
| zssm_pdf_max_size | 否 | 10 | 最大pdf大小 |
| zssm_pdf_max_chars | 否 | 300000 | 最大字符数 |
| zssm_pdf_max_pages | 否 | 50 | 最大页数 |
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| zssm | 无 | 否 | 回复 | 对着需要解释的东西回复一下 |
效果图
Metadata
Release files for nonebot-plugin-zssm 0.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_zssm-0.3.7.tar.gz | 16.1 kB | Without provenance | Details for nonebot_plugin_zssm-0.3.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_zssm-0.3.7-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_zssm-0.3.7-py3-none-any.whl |
Total release size: 35.8 kB
Release files / nonebot_plugin_zssm-0.3.7.tar.gz
| Download URL | nonebot_plugin_zssm-0.3.7.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18a92faca606851fc646bef778ead99ddbbadf425be84939f3d1902145a5868c
|
|
BLAKE2b-256 checksum How to use checksums |
68605c738da5892363dc5001544e3b5c8b22091103fb926bfbe0e356d34c02c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / nonebot_plugin_zssm-0.3.7-py3-none-any.whl
| Download URL | nonebot_plugin_zssm-0.3.7-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6cd13d05d97e6a9f31b004cf45912400ca7292e104f2a1178e3f7acbbda1921
|
|
BLAKE2b-256 checksum How to use checksums |
512a53011a3dda4a0953e5acb11834e57422cd5d0a8690ae1567134044a5cf7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for nonebot-plugin-zssm 0.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.