Skip to main content

NoneBotPluginLogo


NoneBotPluginText

📖 介绍

基于Nonebot2平台,一个多模态AI聊天插件

能够识图,制作PPT,一键生成论文word文档,绘画,以及基本的对话功能

💬 功能

  • 支持AI对话

  • 支持上下文关联记忆(可设置记忆文本长度)

  • 用户鉴别(每个用户的历史记录独立)

  • 支持AI绘图(AI Image Generation)

  • 支持AI生成PPT(PPT Generation)

  • 支持AI生成word(word Generation)

📦 项目地址

💿 安装

使用 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 |

| MULTI_PROXY | 否 | "" | 代理地址"http://127.0.0.1:你的端口" |

⚙️ 注意:

你需要在data/nonebot-plugin-multigpt/theme文件夹下放置包含你的ppt模板的文件夹

例如:data/nonebot-plugin-multigpt/theme/红色风/示例.pptx

其中GOOGLE_KEY在Serper注册密钥,每个人免费2500次搜索

image

注意需要绘画时请切换绘画模型例如dalle-3(参考你的转发站或openai)

效果图

demo

demo

demo

demo

PPT制作代码

PPT制作代码改编于:Python-PPTX-ChatGPT-Presentation-Generator

Metadata

Release files for nonebot-plugin-multigpt 3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-multigpt 3.4
File Size Uploaded
nonebot_plugin_multigpt-3.4.tar.gz 19.7 kB Details

Release files / nonebot_plugin_multigpt-3.4.tar.gz

Download URL nonebot_plugin_multigpt-3.4.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
804b14a43d4761e3fd155ffe7c9e1f43cd66a1ac10b7164a466b8bd53c6f4658
BLAKE2b-256 checksum
How to use checksums
e7c2dd7b4464d44872bb6fd6a417437c5d9b8de0954b61c9e54ebd6794ec857d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

3.4 This release

1 release file

3.2

1 release file

3.1

1 release file

3.0

1 release file

2.9

1 release file

2.8

1 release file

2.7

1 release file

2.6

1 release file

2.5

1 release file

2.4

1 release file

2.3

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.3

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page