No project description provided
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nonebot_plugin_lingyi_chat-0.1.1.tar.gz
.
File metadata
- Download URL: nonebot_plugin_lingyi_chat-0.1.1.tar.gz
- Upload date:
- Size: 15.1 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 | 64a9bffc6a5ec0b0b4bd7146f0ff8fbb0aa82c7e370e76660a076b590aaa99bc |
|
MD5 | 3446540b3d7346d666b655b8025037fd |
|
BLAKE2b-256 | a5456a091b3f111269d0e3f02b22d9b5a7a50dbcd6dd9cf7f0efa27e0e4c9217 |
File details
Details for the file nonebot_plugin_lingyi_chat-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_lingyi_chat-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.6 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 | c79f35a3a2a3cbec782539b23b06a76682258df38db77ffcb18d53fcc6fc4a33 |
|
MD5 | 05a4b373ecd8016e4398cb7cdfe6db3b |
|
BLAKE2b-256 | 18c51f471f31e5014f63f08b7c70d6b71fcd0ff9a44c570f7074fa831a931b60 |