Skip to main content

文心一言的nonebot2适配

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-wx4

✨ NoneBot 插件简单描述 ✨

license pypi python

📖 介绍

简易千帆平台文心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


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-wx4-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_wx4-1.0.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-plugin-wx4-1.0.0.tar.gz.

File metadata

  • Download URL: nonebot-plugin-wx4-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for nonebot-plugin-wx4-1.0.0.tar.gz
Algorithm Hash digest
SHA256 37fca5525755d0e9a6f005f4f3bcb66a39f07218f2f69c118e0d0c4d2b1ca72c
MD5 a137e769d78930d9b6d6e998e1ebdd6e
BLAKE2b-256 3ec21ffeb06837e596425b7fe539bcfb4019ee0370072ebcd347f4c6edb0704d

See more details on using hashes here.

File details

Details for the file nonebot_plugin_wx4-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_wx4-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a0f7bcb6c404ffd4de399b73d62e4f63315169960c595b72d7846992c7d7237
MD5 fdf31b84d5e2261543e8d494807cba83
BLAKE2b-256 0bac9e6fb53458b65391873ddf63059736604c28d6104d56b694235d4c5768f8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page