文心一言的nonebot2适配
Project description
📖 介绍
简易千帆平台文心4适配
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-wx4
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-wx4
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_wx4"]
⚙️ 配置
在项目的config.py
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
API_KEY | 是 | 无 | 千帆平台应用 |
SECRET_KEY | 是 | 无 | 千帆平台应用 |
🎉 使用
指令表
指令 | 权限 | 需要@ | 范围 | 说明 |
---|---|---|---|---|
文心 | 群员 | 否 | 私聊/私聊 | 调用文心接口 |
失忆术 | 群员 | 否 | 私聊/私聊 | 忘记对话内容 |
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
Built Distribution
Close
Hashes for nonebot_plugin_wx4-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a0f7bcb6c404ffd4de399b73d62e4f63315169960c595b72d7846992c7d7237 |
|
MD5 | fdf31b84d5e2261543e8d494807cba83 |
|
BLAKE2b-256 | 0bac9e6fb53458b65391873ddf63059736604c28d6104d56b694235d4c5768f8 |