Skip to main content

插件描述

Project description

logo

✨ nonebot-plugin-YawnelleChat ✨

license pypi python ruff uv

[!IMPORTANT] 收藏项目 ~⭐️

starify

📖 介绍

NoneBot2 插件 YawnelleChat 是一个基于 OpenAI API 的智能群聊助手插件。它能够:

  • 🤖 提供智能群聊对话功能
  • 💬 自动维护对话历史记录
  • 🎯 支持自定义系统提示词
  • ⚡ 支持自定义 API 接口

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-YawnelleChat --upgrade

使用 pypi 源安装

nb plugin install nonebot-plugin-YawnelleChat --upgrade -i "https://pypi.org/simple"

使用清华源安装

nb plugin install nonebot-plugin-YawnelleChat --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
uv
uv add nonebot-plugin-YawnelleChat

安装仓库 master 分支

uv add git+https://github.com/Wohaokunr/nonebot-plugin-YawnelleChat@master
pdm
pdm add nonebot-plugin-YawnelleChat

安装仓库 master 分支

pdm add git+https://github.com/Wohaokunr/nonebot-plugin-YawnelleChat@master
poetry
poetry add nonebot-plugin-YawnelleChat

安装仓库 master 分支

poetry add git+https://github.com/Wohaokunr/nonebot-plugin-YawnelleChat@master

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_YawnelleChat"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
openai_api_key none OpenAI API密钥
openai_api_base https://dashscope.aliyuncs.com/compatible-mode/v1 OpenAI API基础URL
openai_model qwen2.5-vl-32b-instruct OpenAI模型名称
system_prompt 预设的系统提示词 AI系统提示词
max_history_length 3 群聊历史消息最大保存数量

🎉 使用

指令表

指令 权限 需要@ 范围 说明
/chat [消息] 群员 群聊 与AI助手对话
@机器人 [消息] 群员 群聊 与AI助手对话

🎨 效果图

如果有效果图的话

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_yawnellechat-0.1.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_yawnellechat-0.1.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_yawnellechat-0.1.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_yawnellechat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4fa515ba9019b874ad465977aeddb97fcff59d96931d116217915f6266088a2d
MD5 d3d600072ba2219c602e871889c7bfd3
BLAKE2b-256 50104c745fbdac0241abf60051f0b2ccc2b5b2c2ee46004410a850c385db9c77

See more details on using hashes here.

File details

Details for the file nonebot_plugin_yawnellechat-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_yawnellechat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 942cd59669ba16ca1d4116360d42fb38c9bfe83dca558d3fa9233669ee4a8f3c
MD5 0cff04e52c37222f46cf6f8c0cc9cec2
BLAKE2b-256 0ad21ef08af682f82df6fe8c933dbed50b2d2651418976ed2581b06c0d670327

See more details on using hashes here.

Supported by

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