Skip to main content

这是什么?问一下!用 ai 来解释群友发送的「未知」内容

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-zssm

✨ 这是什么?问一下! ✨

license pypi python

📖 介绍

这是一个 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_pdf_max_size 10 最大pdf大小
zssm_pdf_max_chars 300000 最大字符数
zssm_pdf_max_pages 50 最大页数

🎉 使用

指令表

指令 权限 需要@ 范围 说明
zssm 回复 对着需要解释的东西回复一下

效果图

05f21be5fdf0221fe8f13e64342ed622

8ef4fdfcf05161dcaf77a27cab1670b5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_zssm-0.3.6.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_zssm-0.3.6-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_zssm-0.3.6.tar.gz.

File metadata

  • Download URL: nonebot_plugin_zssm-0.3.6.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nonebot_plugin_zssm-0.3.6.tar.gz
Algorithm Hash digest
SHA256 4904eb3fd8eb0884497dba6c2070e864d66bf93a1f5dc775a68be7c3ef2eeba9
MD5 7df3bee601e358d42ee6b803a49d37cb
BLAKE2b-256 9ec3e71887864883a18a2e0d6c89973ee871201c949b04e5c250324d751fc38e

See more details on using hashes here.

File details

Details for the file nonebot_plugin_zssm-0.3.6-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_zssm-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2a71ead76db01f69caa26a750cc9037811f6a37c5e6799e0cdc940262cd4530d
MD5 ede44fd0e599f98adba8ffc30ab49282
BLAKE2b-256 1150656ab116aa301fe3c7f772a9e0b225f61f2828495a3d0869363bbf65f127

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page