📖 介绍
基于部署在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 | 普通 | 否 | 均可 | 聊天。 |
Metadata
Release files for nonebot-plugin-lingyi-chat 0.1.4
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_lingyi_chat-0.1.4.tar.gz | 15.1 kB | Without provenance | Details for nonebot_plugin_lingyi_chat-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_lingyi_chat-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_lingyi_chat-0.1.4-py3-none-any.whl |
Total release size: 30.7 kB
Release files / nonebot_plugin_lingyi_chat-0.1.4.tar.gz
| Download URL | nonebot_plugin_lingyi_chat-0.1.4.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbaf86651908f71873616cfad6df0132b4255eec2ce079972a66b9dc31aa782d
|
|
BLAKE2b-256 checksum How to use checksums |
9caef3209a3708a4e4ffe91173c88936fdbbce4342e6be2f3231ec473859cf39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Windows/11
|
Release files / nonebot_plugin_lingyi_chat-0.1.4-py3-none-any.whl
| Download URL | nonebot_plugin_lingyi_chat-0.1.4-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
feefe815a1197b46b3dd650b608559382a36aa7066fdbd508bef1985eb0df91e
|
|
BLAKE2b-256 checksum How to use checksums |
b534dd04d4ab3107db284b42e329aa7c49d55ca18fa3155e4b73ee0850a311af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Windows/11
|
Security for nonebot-plugin-lingyi-chat 0.1.4
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.