Coder Social home page Coder Social logo

licoy / chatgpt-midjourney Goto Github PK

View Code? Open in Web Editor NEW
6.2K 39.0 1.8K 13.7 MB

🍭 一键拥有你自己的 ChatGPT+StabilityAI+Midjourney 网页服务 | Own your own ChatGPT+StabilityAI+Midjourney web service with one click

Home Page: https://aidemo.xiazai.zip

License: MIT License

Shell 0.44% JavaScript 0.99% Dockerfile 0.17% TypeScript 89.39% SCSS 8.96% Rust 0.04%
chatgpt chatgpt-web midjourney discord discord-bot openai stable-diffusion niji

chatgpt-midjourney's Introduction

🍭 ChatGPT-Midjourney

中文 | English

一一键拥有你自己的 ChatGPT+StabilityAI+Midjourney 网页服务(基于ChatGPT-Next-Web开发)

QQ交流群 | 💥PRO版本

WordPress+ChatGPT支持

主界面

功能支持

🍭 PRO版本支持更强大的功能,宝塔5分钟部署,配置超简单,站点完全自适应支持PC、平板、手机,占用内存不到100M包含AI对话、AI绘画、AI音乐、AI视频、AI生成PPT、PDF解析对话、AI应用支持等等,同时具有非常完善的运营机制,包括但不限于套餐系统、兑换码系统、邀请奖励、签到福利、推广返利等等,同时基于Golang开发,天生支持高并发能力:💥 点我立即查看及体验PRO版本最低1C1G的服务器就能流畅运行

已支持

  • ChatGPT-Next-Web所有功能
  • Midjourney Imgine Upscale Variation Zoom Vary Pan Reroll Describe Blend 等众多操作,完美支持 Midjourney 图像生成之后的任何操作
  • Midjourney 区域重绘(Vary Region)支持
  • Midjourney 参考图片
  • 绘图进度百分比、实时图像显示
  • 支持 Stable Image Ultra
  • 支持 Stable Image Core
  • 支持 Stable Diffusion 3

MJ Proxy API支持

本项目Midjourney相关API能力由 trueai-org/midjourney-proxy 开源项目或同类项目提供API生成能力支持,使用本项目之前您需要先自建此服务,或者使用第三方中转平台的API。

Midjourney-Proxy

  • 项目地址:trueai-org/midjourney-proxy
  • 支持系统:Linux / Windows / MacOS
  • 部署方式:Docker、一键脚本、安装包等

第三方中转API

以下为第三方中转API,本项目不做任何担保,请自行选择使用,若遇到任何疑问请联系对应的平台客服。

  • 支持ChatGPT、Claude、GPTs、Midjourney等多种模型的API接入,且超低成本比例 [立即访问]

参数说明

MJ_PROXY_URL

MJ Proxy的API链接地址

MJ_PROXY_KEY

MJ Proxy的API密钥

CODE

(可选)设置页面中的访问密码

...其余参数

与 ChatGPT-Next-Web 一致

部署

Docker

docker run -d -p 3000:3000 \
   -e OPENAI_API_KEY="sk-xxx" \
   -e BASE_URL="https://api.openai.com" \
   -e MJ_PROXY_URL="" \
   -e MJ_PROXY_KEY="" \
   licoy/chatgpt-midjourney:latest

Vercel

Deploy with Vercel

Railway

Deploy on Railway

Sealos

手动部署

  • clone本项目到本地
  • 安装依赖
npm install
npm run build
npm run start // #或者开发模式启动: npm run dev

使用

创建绘画

部署好后,点击左上方的绘画,选择您需要使用的绘画模型即可进入: step-1

截图

Midjourney生成主界面

step-1

Midjourney区域重绘

step-1

StabilityAI生成主界面

step-1

自定义配置接口

step-1

更多功能

等你自行发掘

开源协议

MIT

chatgpt-midjourney's People

Contributors

ai-chef avatar eltociear avatar ezioruan avatar fanux avatar gitlayzer avatar kennydizi avatar lala-0x3f avatar licoy avatar michaelyuhe avatar ok3721 avatar yangchuansheng avatar yanyutin753 avatar yaohuiwu avatar zhtwinkle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-midjourney's Issues

在网页输入画图指令时,也显示图片成功画出,discord中也能看到,但无法在ChatGPT new wab中返回图片

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • [ x ] 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • [ x ] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • [ x ] 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
在网页输入画图指令时,也显示图片成功画出,discord中也能看到,但无法在ChatGPT new wab中返回图片

如何复现
未知,Midjourney代理使用的谷歌海外服务器,

截图
image
image

一些必要的信息

  • 系统:[mac air]
  • 浏览器: [chrome,]
  • 版本: [m-p-2.2.3]
  • 部署方式:[docker]

较长的midjourney prompt无法执行

描述问题
较长的midjourney prompt无法执行,提示:任务提交失败:未知的任务类型

如何复现
比如这个prompt:
/mj Seeing a bloom under white light, Flowing transparent fabric, sleek glass thickness, transparent, pink and white and blue holographic, in the style of precise hyperrealism, mesmerizing colorscapes, i can't believe how beautiful this is, zen buddhism influence, luminous color palette, fanciful, dreamlike imagery ::3 Stockphoto, datamoshing, analytical art, urban energy, contained chaos, low bitrate high - key lighting, abstraction - création kodak elite chrome extra color, juxtaposition of light and shadow, clear colors smooth, modern minimalist, 3d render, unreal engine 5, industrial design, studio lighting, zoomed shoot, isometric, blender ::1 --ar 3:2

截图
image

Zeabur部署项目后,手机端不能使用

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • [ x ] 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • [x ] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • [ x] 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
请在此描述你遇到了什么问题。
Zeabur部署项目后,手机端不能使用,电脑端能正常使用。手机端访问会出现

{
  "error": true,
  "message": "Failed to execute 'fetch' on 'Window': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point."
}

如何复现
请告诉我们你是通过什么操作触发的该问题。
手机端登录就出现这个问题

截图
请在此提供控制台截图、屏幕截图或者服务端的 log 截图。
Screenshot_2023-06-23-18-22-25-42_df198e732186825c8df26e3c5a10d7cd

一些必要的信息

  • 系统:[比如 windows 10/ macos 12/ linux / android 11 / ios 16] 手机端
  • 浏览器: [比如 chrome, safari] Edge浏览器
  • 版本: [填写设置页面的版本号]
  • 部署方式:[比如 vercel、docker 或者服务器部署]Zeabur

使用命令”/Mj"后,对话框总是强制到底

使用命令”/Mj"后,对话框到最下面,很合理,但是一直强制到底,无法看到上面历史记录了,我这边属于使用了"/mj"就会一直强制到对话框的最底部,无法看到上面的历史记录,即使图片生成完毕,也是一直强制到对话框最底部

[Feature] 绘画进行一半,中途退出,或者刷新页面,能否请求一下最新结果

你想要什么功能或者有什么建议?
绘画进行一半,中途退出,或者刷新页面,就在也看不到这个绘图的最终结果,作者大大,初次加载页面或刷新页面能否根据任务状态,如果是任务进行中的任务,都请求一下最新结果?

其他信息
图片的每一次进度,会出现一闪一闪的情况,能否实现无感的切换,或者给页面加个固定高度?

[Feature] 建议在设置中加入Authorization请求头的设置功能

这个功能与现有的问题有关吗?
问题出现的场景:使用nginx进行反代,在配置中使用HTTP basic auth设置访问密码。

在输入密码进入主页面之后,请求/completion接口的时候,请求头没有带上Authorization字段,导致出现401错误。

你想要什么功能或者有什么建议?
可以在设置中自行设置Authorization(就像访问密码的功能一样),在设置之后,使用ajax发送请求的时候带上这个头。

Zeabur部署使用MJ图片加载不出来

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
1.我是使用Zeabur部署的,fork的本项目和Midjourney-proxy项目,已同步,今天使用的时候图加载不出来,点击图片报错1101;
2.有时候提交任务后显示:任务已提交至Midjourney服务器,其实discord里已经执行完了,然后就任务超时了,不显示图片。
如何复现
问题1、2复现:使用Zeabur部署,使用/mj 命令作图
截图

83f6d963abcbb3742e1c447961bc94b3

一些必要的信息

  • 系统:macos 13.4
  • 浏览器: chrome
  • 版本:114.0.5735.198
  • 部署方式:Zeabur

[Bug] docker pull not found

Describe the bug
centos7
docker
docker pull not found

To Reproduce
Steps to reproduce the behavior:

  1. docker pull licoy/chatgpt-midjourney:v1.3.2

Expected behavior
pull success
but
manifest for docker.io/licoy/chatgpt-midjourney:v1.3.2 not found

Midjourney使用Bug:Failed to fetch、Load failed

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
使用Vercel部署ChatGPT-Midjourney前端,使用境外VPS部署midjourney-proxy使用正常,但使用zeabur部署midjourney-proxy时在Windows11Edge浏览器中提示Failed to fetch,在iOS15.6的Safari浏览器中提示任务提交失败:Load failed但查看discord频道发现midjourney-proxy运行正常

如何复现
使用/mj百分百出现
截图
image
image
image

一些必要的信息

  • 系统:windows 11、ios 15
  • 浏览器: Edge、Safari
  • 版本:20230704
  • 部署方式:vercel

[Bug] 请问哪里获取付费Midjourney的服务器ID?谢谢。

请问楼上各位大佬,我遇到下面的问题该如何处理?
画面描述: a tiger
任务ID: 1692067317731634
任务状态: [2023/8/15 10:41:55] - 未知频道

任务提交失败:关联任务状态错误

我是MJ付费会员,频道ID也有了;但看了教程后不知道哪里去服务器ID。

URL上只有@me这种信息,例如:

https://discord.com/channels/@me/107415488680*****94

https://cdn.discordapp.com/attachments/107415488680*****94/1139373882772553758/concordance6_a_slim_and_pretty_woman_on_the_beach_in_her_bikini_7bdb6f12-dea2-47f7-a388-69f6a82843e4.png
https://cdn.discordapp.com/attachments/107415488680*****94/1134049235961122937/concordance6_a_baby_monk_wearing_an_asian_robe_in_front_of_a_wa_8c16c671-006b-4c30-95c6-c77228ceea82.png
https://cdn.discordapp.com/attachments/107415488680*****94/1118673420243189760/concordance6_captain_commandos_mack_in_Pixar_style_3fd784c1-0e87-436c-a8f9-fd57cf7a72af.png

还望各位老大指点迷津,谢谢谢谢。

请教一下avatar定义

我想添加一些自定义的Mask,但是不太清楚avatar的定义,不知道怎么引用图标,有没有哪里可以查到avatar图标对应的代码?
image
是不是有个预定义的图标库啊?知道的朋友麻烦指点一下,谢谢!

[Bug] midjourney-proxy 日志报错

2023-06-14 16:35:23.183 DEBUG
1
:推送任务变更失败,任务ID:8980646060104986,描述:
ReadingThread] c.g.n.m.wss.user.UserMessageListener
:CREATE - Midiourney Bot : [8980646060104986] Thre
任务状态:[2023/6/14 16:36:02]- 任务正在运行,进度:93%
e is clean and bright, and photos are taken
-ar 129:77
- <01110764319504875601> (Waiting
fo start)
2023-06-14 16:35:23.190 WARN 1
TaskNotify-2] c.g.n.m.service.NotifyServiceImp1
:推送任务变更失败,任务ID:8980646060104986,描述:
2023-06-14 16:35:36.474 DEBUG 1
ReadingThread] c.g.n.m.wss.user.UserMessageListener
:UPDATE - Midjourney Bot : [8980646060104986] Thre
e is clean and bright, and photos are taken --ar 129:77
- <@1110764319504875601> (0%) (fas*)
2023-06-14 16:35:36.480 WARN 1---
TaskNotify-3] c.g.n.m.service.NotifyServiceImp1
2023-06-14 16:35:42.539 DEBUG 1
ReadingThread]c.g.n.m.wss.user.UserMessageListener
:推送任务变更失败,任务ID:8980646日60104986,描述:
::UPDATE - Midjourney Bot : [8980646060104986] Thre
e is clean and bright, and photos are taken
--ar 129:77
- <@1110764319504875601> (15%) (fast)
2023-06-14 16:35:42.546 WARN 1
TaskNotify-4] c.g.n.m.service.NotifyServiceImp1
2023-06-14 16:35:46.247 DEBUG 1
ReadingThread] c.g.n.m.wss.user.UserMessageListener
:推送任务变更失败,任务ID: 8980646060104986,描述:
:UPDATE - Midjourney Bot: [8980646060104986〕 Thre
e is clean and bright, and photos are taken --ar 129:77
- <01110764319504875601> (31%) (fast)

有没有可能给绘图指令加个密码保护

现在页面上会对chatgpt有密码和api key来保护gpt不被滥用,但是在没有密码和api key的情况下,/mj指令还是可以正常使用的,我不想在页面上暴露mj proxy api的地址,有没有可能给/mj指令也加个保护,可以设置一个或多个密码,没密码不让用/mj指令。

[Bug] TypeError: RequestInit: duplex option is required when sending a body. 这是什么问题

反馈须知

⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。

请在下方中括号内输入 x 来表示你已经知晓相关内容。

  • 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
  • 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
  • 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。

描述问题
请在此描述你遇到了什么问题。
在最新版的的代码中,我下的是1.3.9版本, 部署到服务器中后,问答报这个错误。
TypeError: RequestInit: duplex option is required when sending a body.
但是在本地运行的就可以正常问答,这是为什么

如何复现
请告诉我们你是通过什么操作触发的该问题。

截图
请在此提供控制台截图、屏幕截图或者服务端的 log 截图。
image
一些必要的信息

  • 系统:linux debain
  • 浏览器:chrome
  • 版本:1.3.9
  • 部署方式:服务器部署

[Bug] 突然用不了

前面还出图正常,现在提交一直提示FAILURE,去midjourney proxy里状态查询也是提示异常如下:
"action": "IMAGINE",
"id": "7564193164428700",
"prompt": "Seascape, Coastal view, Beach sunset, Waves crashing, Sandy shores",
"promptEn": "Seascape, Coastal view, Beach sunset, Waves crashing, Sandy shores",
"description": "/imagine Seascape, Coastal view, Beach sunset, Waves crashing, Sandy shores",
"state": null,
"submitTime": 1686998127218,
"startTime": 1686998127234,
"finishTime": 1686998127596,
"imageUrl": null,
"status": "FAILURE",
"progress": "",
"failReason": "Invalid Form Body"

discord里的midjourney账号正常的。

[Bug] 更新后提示这个

/mj prompt提交后秒提示下面错误
任务提交失败:
状态码:401
响应体:{"error":true,"msg":"empty access code"}
(ChatGPT-Midjourney最新版本0625)

Midjourney-proxy(最新版本2.3.2)没有收到任何提交过来的信息。
Discord账号正常 获取的token也是正常的(在另一个服务测试正常使用)

增加付费功能[Feature]

为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。

点击加入官方群聊

这个功能与现有的问题有关吗?
如果有关,请在此列出链接或者描述问题。

你想要什么功能或者有什么建议?
类似于gptlink增加付费功能

有没有可以参考的同类竞品?
可以给出参考产品的链接或者截图。

其他信息
可以说说你的其他考虑。

[Bug] midjourney绘图用V的时候会提交但是没有后续

绘图选择V的时候会提交但是没有后续返回
画面描述: VARIATION::1::3525525412808094
任务ID: 7709611621575780
任务状态: [2023/6/18 16:17:44] - 任务已提交至Midjourney服务器

discord里V的按钮是绿色的 但是估计没有提交的,因为如果在discord手动点V1-4是会弹窗提示要确定的 不知道是不是midjourney-proxy那边没有做处理

[Feature] 异步获取绘画结果,增加灵犀Midjourney-API支持

这个功能与现有的问题有关吗?
这篇文档: https://docs.qq.com/doc/DYnN4dXNDTk5UekRW 给出了免部署Midjourney-api接口,只需要MJ 的token就能生成api,并给出了利用生成的API部署本项目的命令(无需部署除本项目之外的其他项目):

docker run -d -p 3000:3000
-e OPENAI_API_KEY="sk-xxxxxxxxx"
-e BASE_URL="http://ai.4387.top:8010"
-e MIDJOURNEY_PROXY_URL="http://ai.4387.top:8609"
-e MIDJOURNEY_PROXY_API_SECRET="sk-xxxxxxxx"
licoy/chatgpt-midjourney:v1.3.1

你想要什么功能或者有什么建议?
建议增加异步获取绘画结果,参考API接口文档:https://docs.qq.com/doc/DYmpqVVR3U3JnaVho

有没有可以参考的同类竞品?
可以给出参考产品的链接或者截图。

其他信息
可以说说你的其他考虑。

关于MIDJOURNEY_PROXY_URL

docker布署,如果宿主机处于可以直接访问openai的环境(比如国内全局代理的虚拟机、海外vps),MIDJOURNEY_PROXY_URL可以填写宿主机ip(避免封号风险,避开香港节点vps/代理——此风险未确认,但香港不在openai使用地区);如果宿主机开启代理访问openai(PROXY_URL部分填写了代理),那么MIDJOURNEY_PROXY_URL要填写公网ip(docker映射出公网)。

[Bug]

使用的时候报错信息
[Time] 2023/6/14 18:28:53
[Auth] admin did not provide an api key
[Proxy] v1/chat/completions?path=v1&path=chat&path=completions
[Base Url] https://api.openai.com
[OpenAI] [TypeError: RequestInit: duplex option is required when sending a body.]

Azure API

大神求助azure 的api如何可以使用,chatgpt的api付费实在搞不定

不算Bug,但是不是特别人性化

1.关键词切换提议
我在使用的时候/mj,会提示不少关键词出来,我这个时候在想是否可以做一下,下方的点击按钮,功能是点击切换提示词,因为chat的提示词混在用画图的时候特别不适。
image
2.由于在画图期间,chat的关键词干扰,导致我输入prompt,还是有一条或者几条提升跟随,正常很多人习惯回车打到输入框内,就会将和画画无关的chat提示词完全覆盖掉刚才的输入,由于是/mj,正常我们输入chat没有这个问题,是因为,我们正常问问题,很少使用”/“,因此在我们使用”/mj“,输入回车,只要有提示,就会被覆盖,给人一种不友好的感觉
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.