Skip to main content

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

Project description

NoneBot-Plugin-DeepSeek

✨ NoneBot DeepSeek 插件 ✨

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

📖 介绍

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

💿 安装

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

[!TIP] 想要启用 Markdown 转图片功能,需安装 nonebot-plugin-deepseek[image]

[推荐] 使用 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"]

⚙️ 配置

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

[!note] api_key 请从 DeepSeek 开放平台 获取

配置项 必填 默认值
deepseek__api_key
deepseek__base_url https://api.deepseek.com
deepseek__prompt You are a helpful assistant.
deepseek__md_to_pic False

🎉 使用

[!note] 请检查你的 COMMAND_START 以及上述配置项。这里默认使用 /

问答

/deepseek [内容]

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

多轮对话

/deepseek --with-context

快捷命令:/ds --with-context /多轮对话

余额

权限:SUPERUSER

/deepseek --balance

快捷方式:/ds --balance /余额

📸 效果图

DeepSeek - Preview

📄 许可证

本项目使用 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.

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_deepseek-0.1.0.tar.gz (10.4 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_deepseek-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_deepseek-0.1.0.tar.gz.

File metadata

  • Download URL: nonebot_plugin_deepseek-0.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.2 CPython/3.12.3 Linux/6.8.0-1020-azure

File hashes

Hashes for nonebot_plugin_deepseek-0.1.0.tar.gz
Algorithm Hash digest
SHA256 543cd813e1b8c2b38439739acc825abea109a06e398e7bcb3a6a47bcc1b5534b
MD5 6f10e310360f9cd226b0a5b2a249398c
BLAKE2b-256 f52ebf3c25159b254b5ae137f6397f25c84b91ab064c1b20455debbb5bbe75c6

See more details on using hashes here.

File details

Details for the file nonebot_plugin_deepseek-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_deepseek-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6df3ca4209f70f3c97e6f4c42f0546e64c278901c5677884420ee0517f2b7544
MD5 f84698307de1a05d8bd5f41896be79bd
BLAKE2b-256 fbaecca20b96712c27499b3e4045d8172e97db770da858ea277d87322a9b54cf

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