Skip to main content

nonebot插件-多模ai工具

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-sparkapi

✨一个多模态AI聊天插件✨

license pypi python

📖 介绍

基于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

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

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

效果图

demo demo demo demo

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-multigpt-1.1.tar.gz (23.8 kB view hashes)

Uploaded Source

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