【危险插件】炸炸你的NB
Project description
📖 介绍
基于部署在CFWorkers的LLM API在Nonebot2上提供聊天服务。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-lingyi-chat
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-lingyi-chat
pdm
pdm add nonebot-plugin-lingyi-chat
poetry
poetry add nonebot-plugin-lingyi-chat
conda
conda install nonebot-plugin-lingyi-chat
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_lingyi_chat"]
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
api_url | 是 | 无 | 填入你的API地址。 |
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
chat | 普通 | 否 | 均可 | 聊天。 |
Project details
Release history Release notifications | RSS feed
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_boom-0.1.0.tar.gz
(14.8 kB
view details)
Built Distribution
File details
Details for the file nonebot_plugin_boom-0.1.0.tar.gz
.
File metadata
- Download URL: nonebot_plugin_boom-0.1.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3361aea8329b53d2495dd233ae9b069fd8f91d27fe2d6844356f81a2a87aab1c |
|
MD5 | 8ec160c33de7c2c4c43ce94bc3f009fc |
|
BLAKE2b-256 | 2c553ac4804727abf52071d9387d8e0993759c2b0080c771b65572623eed0411 |
File details
Details for the file nonebot_plugin_boom-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_boom-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c52af8e621d85cff5045201d1222f1649796f9cc3be43fd10fa8f3132072ab52 |
|
MD5 | cee36f31128160334b557dda183d954e |
|
BLAKE2b-256 | 1933a302499f391282f7d6e437e9feafbc2d34b1fdef1d5db51b9f3344ae51e0 |