nonebot插件-多模ai工具
Project description
📖 介绍
基于Nonebot2平台,一个多模态AI聊天插件
能够识图,制作PPT,一键生成论文word文档,绘画,以及基本的对话功能
💬 功能
- 支持AI对话
- 支持上下文关联记忆(可设置记忆文本长度)
- 用户鉴别(每个用户的历史记录独立)
- 支持AI绘图(AI Image Generation)
- 支持AI生成PPT(PPT Generation)
- 支持AI生成word(word Generation)
📦 项目地址
- Github:https://github.com/syagina/nonebot-plugin-multigpt
- Pypi:https://pypi.org/project/nonebot-plugin-multigpt/
- Nonebot:https://registry.nonebot.dev/plugin/nonebot-plugin-multigpt:nonebot-plugin-multigpt
- 觉得好用的话,请给个 Star⭐️ 谢谢喵~
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-multigpt
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-multigpt
pdm
pdm add nonebot-plugin-multigpt
poetry
poetry add nonebot-plugin-multigpt
conda
conda install nonebot-plugin-multigpt
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_multigpt"]
⚙️ 指令列表
指令 | 需要@ | 范围 | 说明 |
---|---|---|---|
chat | 否 | 私聊/群聊 | 与机器人进行对话 |
chat文字+图片 | 否 | 私聊/群聊 | 根据内容对图片分析 |
PPT | 否 | 私聊/群聊 | 制作PPT |
论文 | 否 | 私聊/群聊 | 输入要求一键生成论文docx文档 |
设置模型 | 否 | 私聊/群聊 | 切换gpt的模型 |
清空对话/刷新 | 否 | 私聊/群聊 | 清空历史记录 |
⚙️ 配置
在 nonebot2 项目的.env
文件中添加下表中的必填配置(均为str类型)
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
OPENAI_API_KEY | 是 | "" | APIKey |
OPENAI_API_BASE | 否 | "https://api.openai.com/v1/chat/completions" | 你的转发站地址 |
MODEL | 否 | "" | 使用的模型 |
GOOGLE_KEY | 否 | "" | "不填写不能使PPT附加图片" |
COMMAND_MU | 否 | "chat" | 起始命令符参考nonebot的COMMAND_START |
其中GOOGLE_KEY在Serper注册密钥,每个人免费2500次搜索
注意需要绘画时请切换绘画模型例如dalle-3(参考你的转发站或openai)
效果图
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
Close
Hashes for nonebot-plugin-multigpt-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0237620cb6ac237b8c4f3f09857441fb248e5dc3ac2f39ce7f0b3e18265849a9 |
|
MD5 | 59182eace1d6e2fe221195523ee87221 |
|
BLAKE2b-256 | f0f824f3175896098549a337ea0a4a2df077d613a882af710e6ced5db52161b1 |