Skip to main content

一个bot可以主动发送消息、表情包或自主让长消息分段发送的qwen大家族对话插件,让你的bot更拟人

Project description

NoneBotPluginLogo

NoneBotPluginText

Qwen Chat

✨ 一个bot可以主动发送消息、表情包或自主让长消息分段发送的qwen大家族对话插件,让你的bot更拟人 ✨

license pypi python

[!WARNING] 你正在DEV分支预览项目!
本分支可能会有亿点奇奇怪怪的bug
回到main

📖 介绍

现有大模型对话插件配置难?回复慢?不能发图片?不能自定义角色? Qwen Chat来帮你!

本项目正处于开发阶段,完成时间待定

💿 安装

使用PIP安装 在 nonebot2 项目的插件目录下, 打开命令行, 输入安装命令
pip install nonebot-plugin-qwen-chat

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

plugins = ["nonebot_plugin_qwen-chat"]

⚙️ 配置

qwen_api_key="" # 必填 阿里云百炼API密钥
qwen_model="" # 必填 模型名称(目前只支持阿里云百炼平台模型)
user_prompt="" # 必填 用户提示词
bot_bot_name="" # 必填 机器人名称
emoji_dir="" # 必填 表情包目录(此版本无用)
debug_mode= # 可选 开发模式(输出详细日志)

🎉 使用

直接发送包含{name}的内容即可唤醒

TODO LIST

  • 完成基础功能(支持大模型主动换行的对话)
  • 使用异步请求OpenAI Python客户端
  • 让大模型能够发送表情包和网络图片
  • 永久记忆(指本地保存)对话上下文
  • 全模态支持(需要等Qwen Omni)

参考的项目(仅参考逻辑)

nonebot_plugin_random_reply
MaiBot

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_qwen_chat-0.1.0b1.tar.gz (19.2 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_qwen_chat-0.1.0b1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_qwen_chat-0.1.0b1.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_qwen_chat-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 3df656f6c423900a2f8b1d8874943cca5eb057a6701b3a6be78bd165b5afcd69
MD5 d3d9392909726f4d9792652b59b9c963
BLAKE2b-256 efe1a1ad175ff1478b1525b9e1564555683b16c051b0b4099b5a976c1fab71d7

See more details on using hashes here.

File details

Details for the file nonebot_plugin_qwen_chat-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_qwen_chat-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d17485b68e9a758985d82bfb8c61c3181e9aea733fed92b4822eb76d9d02ae7
MD5 1d598e8ab4ed9353e8a5ff363ba92e0f
BLAKE2b-256 2f8a4ca9bd49d3dc5960b15544dd6dbcd256aaa680ed136185aeb817a9083817

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