Skip to main content

NoneBot-Plugin-DeepSeek

✨ NoneBot DeepSeek 插件 ✨

DeepSeek
pypi python uv-managed alc-resolved
NoneBot Registry Supported Adapters
📸 演示与预览   |   📦️ 下载插件   |   💬 加入交流群

📖 介绍 Human coded

NoneBot DeepSeek 插件。接入 DeepSeek 模型,提供智能对话与问答功能

Wiki: 👉 传送门

starify
Star History

💿 安装

以下提到的方法任选 其一 即可

[推荐] 使用 nb-cli 安装 在 Bot 的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-deepseek
使用包管理器安装
pip install nonebot-plugin-deepseek
# or, use poetry
poetry add nonebot-plugin-deepseek
# or, use pdm
pdm add nonebot-plugin-deepseek

打开 NoneBot 项目根目录下的配置文件, 在 [plugin] 部分追加写入

plugins = ["nonebot_plugin_deepseek"]

⚙️ 配置

在项目的配置文件中添加下表中配置

配置项 必填 默认值 说明
deepseek__api_key 是 无 API Key
deepseek__enable_models 否 [{ "name": "deepseek-v4-flash" }, { "name": "deepseek-v4-pro" }] 启用的模型 配置说明
deepseek__prompt 否 无 模型预设
deepseek__stream 否 False 是否启用流式传输
deepseek__timeout 否 {"api_request": 100, "user_input": 60} 超时设定
deepseek__md_to_pic 否 False 是否启用 Markdown 转图片
deepseek__enable_send_thinking 否 False 是否发送思维链

🎉 使用

帮助

deepseek --help
         --balance

         [...content] 
           --use-model [model]
           --with-context
           --render | -r

         model
           --list | -l
           --set-default [model]
           --render-markdown ['enable' | 'disable' | 'on' | 'off']

问答

/deepseek [内容]

快捷命令:/ds [内容] 或回复文本消息

多轮对话

/deepseek --with-context [内容]

快捷指令:/ds --with-context [内容] /多轮对话

深度思考

/deepseek [内容] --use-model deepseek-v4-pro

快捷指令:/深度思考 [内容]

余额

权限:SUPERUSER

/deepseek --balance

快捷指令:/ds --balance /余额

设置

权限:设置默认模型 指令仅 SUPERUSER 可用

# 查看支持的模型列表
/deepseek model -l|--list
# 设置默认模型
/deepseek model --set-default [模型名]
# 设置 Markdown 转图片
/deepseek model --render-markdown ['enable' | 'disable' | 'on' | 'off']

快捷指令:/模型列表 /设置默认模型 [模型名]

自定义快捷指令

该特性依赖于 Alconna 快捷指令。自定义指令不带 COMMAND_START,若有必要需手动填写

# 增加
/deepseek --shortcut <自定义指令> /deepseek
# 删除
/deepseek --shortcut delete <自定义指令>
# 列出
/deepseek --shortcut list

例子:

user: /deepseek --shortcut /chat /deepseek --use-model deepseek-v4-flash
bot: deepseek::deepseek 的快捷指令: "/chat" 添加成功
user: /chat
bot: (使用模型 deepseek-v4-flash)

📸 效果图

DeepSeek - Preview

💖 鸣谢

贡献者们

contributors sponsors

感谢这些大佬对本项目作出的贡献:

contributors

📄 许可证

本项目使用 MIT 许可证开源

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Metadata

Release files for nonebot-plugin-deepseek 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-deepseek 0.3.0
File Size Uploaded
nonebot_plugin_deepseek-0.3.0.tar.gz 27.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-deepseek 0.3.0
File Interpreter ABI Platform
nonebot_plugin_deepseek-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 65.3 kB

Release files / nonebot_plugin_deepseek-0.3.0.tar.gz

Download URL nonebot_plugin_deepseek-0.3.0.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd57c67660d6c6ea870add7c24c3cd2756142fbe5dcdcf0f56bfe06095c185be
BLAKE2b-256 checksum
How to use checksums
052d7367695ba0cd8c7e563fa2e1d6f0a21ab2260093d477837306b7e80ada59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nonebot_plugin_deepseek-0.3.0-py3-none-any.whl

Download URL nonebot_plugin_deepseek-0.3.0-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbcf51935cd12049fe9b2fb6ee5029fee843f253f556e4bdd76029a7b7e08c19
BLAKE2b-256 checksum
How to use checksums
fdb42397f9d94ec4e46406a66e162c98f95d922a234d4a192e46cce3a90f9289
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page