erictik / midjourney-ui Goto Github PK
View Code? Open in Web Editor NEWMidjourney UI is an open source AI painting UI based on Midjourney
Home Page: https://midjourney-ui.vercel.app
License: Apache License 2.0
Midjourney UI is an open source AI painting UI based on Midjourney
Home Page: https://midjourney-ui.vercel.app
License: Apache License 2.0
用什么命令
如题,是否支持局部重绘?
node:child_process Module build failed: UnhandledSchemeError: Reading from "node:child_process" is not handled by plugins (Unhandled scheme). Webpack supports "data:" and "file:" URIs by default. You may need an additional plugin to handle "node:" URIs. Import trace for requested module: node:child_process ./node_modules/discord.js/src/sharding/Shard.js ./node_modules/discord.js/src/index.js ./node_modules/midjourney/libs/midjourney.js ./node_modules/midjourney/libs/index.js
example:
imagine.loading https://cdn.discordapp.com/attachments/1106141066148708422/1106449060593946654/grid_0.webp
imagine.loading https://xxx.xxx.com/attachments/1106141066148708422/1106449060593946654/grid_0.webp
Using the domain name provided by the user for forwarding
因为网络限制,src="[https://cdn.discordapp.com/attachments//nd_the_Ye_18a33ae1-6b56-49a9-9755-6c9d3510f7cf.png"这类照片不能访问,这个怎么处理]([https://cdn.discordapp.com/attachments//nd_the_Ye_18a33ae1-6b56-49a9-9755-6c9d3510f7cf.png,你可以把后端显示的代码地址https://cdn.discordapp.com/attachments,可以变成后端可配置?
Digest: sha256:66f1dd266b4a1e4b3c0409b7f27ab5039e6166a2da40c97f87e8c19958269046
Status: Downloaded newer image for erictik/midjourney-ui:latest
yarn run v1.22.19
$ next start
▲ Next.js 13.5.3
- Local: http://localhost:3000
✓ Ready in 582ms
Error: Cannot find module 'next/dist/shared/lib/html-context.js'
Require stack:
- /dist/.next/server/pages/_document.js
- /dist/node_modules/next/dist/server/require.js
- /dist/node_modules/next/dist/server/next-server.js
- /dist/node_modules/next/dist/server/next.js
- /dist/node_modules/next/dist/server/lib/start-server.js
- /dist/node_modules/next/dist/cli/next-start.js
- /dist/node_modules/next/dist/lib/commands.js
- /dist/node_modules/next/dist/bin/next
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at /dist/node_modules/next/dist/server/require-hook.js:54:36
at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at mod.require (/dist/node_modules/next/dist/server/require-hook.js:64:28)
at require (node:internal/modules/helpers:130:18)
at 8743 (/dist/.next/server/pages/_document.js:263:18)
at __webpack_require__ (/dist/.next/server/webpack-runtime.js:25:42)
at 2940 (/dist/.next/server/chunks/378.js:6354:22)
at __webpack_require__ (/dist/.next/server/webpack-runtime.js:25:42) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/dist/.next/server/pages/_document.js',
'/dist/node_modules/next/dist/server/require.js',
'/dist/node_modules/next/dist/server/next-server.js',
'/dist/node_modules/next/dist/server/next.js',
'/dist/node_modules/next/dist/server/lib/start-server.js',
'/dist/node_modules/next/dist/cli/next-start.js',
'/dist/node_modules/next/dist/lib/commands.js',
'/dist/node_modules/next/dist/bin/next'
]
}
Error: Cannot find module 'next/dist/shared/lib/html-context.js'
Require stack:
- /dist/.next/server/pages/_document.js
- /dist/node_modules/next/dist/server/require.js
- /dist/node_modules/next/dist/server/next-server.js
- /dist/node_modules/next/dist/server/next.js
- /dist/node_modules/next/dist/server/lib/start-server.js
- /dist/node_modules/next/dist/cli/next-start.js
- /dist/node_modules/next/dist/lib/commands.js
- /dist/node_modules/next/dist/bin/next
at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
at /dist/node_modules/next/dist/server/require-hook.js:54:36
at Module._load (node:internal/modules/cjs/loader:901:27)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at mod.require (/dist/node_modules/next/dist/server/require-hook.js:64:28)
at require (node:internal/modules/helpers:130:18)
at 8743 (/dist/.next/server/pages/_document.js:263:18)
at __webpack_require__ (/dist/.next/server/webpack-runtime.js:25:42)
at 2940 (/dist/.next/server/chunks/378.js:6354:22)
at __webpack_require__ (/dist/.next/server/webpack-runtime.js:25:42) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/dist/.next/server/pages/_document.js',
'/dist/node_modules/next/dist/server/require.js',
'/dist/node_modules/next/dist/server/next-server.js',
'/dist/node_modules/next/dist/server/next.js',
'/dist/node_modules/next/dist/server/lib/start-server.js',
'/dist/node_modules/next/dist/cli/next-start.js',
'/dist/node_modules/next/dist/lib/commands.js',
'/dist/node_modules/next/dist/bin/next'
]
}
The program fails in Docker container when submitting the prompt from the UI:
(base) morpher@rog ~/Documents/MyProjects/midjourney-ui (main)$ docker run --env-file .env -p 3000:3000 erictik/midjourney-ui
yarn run v1.22.19
$ next start
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
imagine.handler unicorn
imagine.start unicorn
ReadableStream class {
constructor(e2 = {}, t2 = {}) {
void 0 === e2 ? e2 = null : D(e2, "First parameter");
const r2 = Ye(t2, "Second parameter"), o2 = function(e3, t3) {
F(e3, t3);
const r3 = e3, o3 = null == r3 ? void 0 : r3.autoAllocateChunkSize, n3 = null == r3 ? void 0 : r3.cancel, a2 = null == r3 ? void 0 : r3.pull, i2 = null == r3 ? void 0 : r3.start, l2 = null == r3 ? void 0 : r3.type;
return { autoAllocateChunkSize: void 0 === o3 ? void 0 : N(o3, `${t3} has member 'autoAllocateChunkSize' that`), cancel: void 0 === n3 ? void 0 : $t(n3, r3, `${t3} has member 'cancel' that`), pull: void 0 === a2 ? void 0 : Mt(a2, r3, `${t3} has member 'pull' that`), start: void 0 === i2 ? void 0 : Yt(i2, r3, `${t3} has member 'start' that`), type: void 0 === l2 ? void 0 : Qt(l2, `${t3} has member 'type' that`) };
}(e2, "First parameter");
var n2;
if ((n2 = this)._state = "readable", n2._reader = void 0, n2._storedError = void 0, n2._disturbed = false, "bytes" === o2.type) {
if (void 0 !== r2.size)
throw new RangeError("The strategy for a byte stream cannot have a size function");
Oe(this, o2, $e(r2, 0));
} else {
const e3 = Me(r2);
It(this, o2, $e(r2, 1), e3);
}
}
get locked() {
if (!Vt(this))
throw Kt("locked");
return Ut(this);
}
cancel(e2) {
return Vt(this) ? Ut(this) ? d(new TypeError("Cannot cancel a stream that already has a reader")) : Gt(this, e2) : d(Kt("cancel"));
}
getReader(e2) {
if (!Vt(this))
throw Kt("getReader");
return void 0 === function(e3, t2) {
F(e3, t2);
const r2 = null == e3 ? void 0 : e3.mode;
return { mode: void 0 === r2 ? void 0 : Nt(r2, `${t2} has member 'mode' that`) };
}(e2, "First parameter").mode ? new ReadableStreamDefaultReader(this) : function(e3) {
return new ReadableStreamBYOBReader(e3);
}(this);
}
pipeThrough(e2, t2 = {}) {
if (!H(this))
throw Kt("pipeThrough");
$(e2, 1, "pipeThrough");
const r2 = xt(e2, "First parameter"), o2 = Ht(t2, "Second parameter");
if (this.locked)
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
if (r2.writable.locked)
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
return m(kt(this, r2.writable, o2.preventClose, o2.preventAbort, o2.preventCancel, o2.signal)), r2.readable;
}
pipeTo(e2, t2 = {}) {
if (!H(this))
return d(Kt("pipeTo"));
if (void 0 === e2)
return d("Parameter 1 is required in 'pipeTo'.");
if (!x(e2))
return d(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));
let r2;
try {
r2 = Ht(t2, "Second parameter");
} catch (e3) {
return d(e3);
}
return this.locked ? d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")) : e2.locked ? d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")) : kt(this, e2, r2.preventClose, r2.preventAbort, r2.preventCancel, r2.signal);
}
tee() {
if (!H(this))
throw Kt("tee");
if (this.locked)
throw new TypeError("Cannot tee a stream that already has a reader");
return Ot(this);
}
values(e2) {
if (!H(this))
throw Kt("values");
return function(e3, t2) {
const r2 = e3.getReader(), o2 = new te(r2, t2), n2 = Object.create(re);
return n2._asyncIteratorImpl = o2, n2;
}(this, function(e3, t2) {
F(e3, t2);
const r2 = null == e3 ? void 0 : e3.preventCancel;
return { preventCancel: Boolean(r2) };
}(e2, "First parameter").preventCancel);
}
}
imagine.error [Error: A Node.js API is used (setImmediate) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime]
报错信息如下 :
请问这问题如何解决?
Although the latest commit is (fix next stream api) , I still encounter JSON.parse error frequently. After debugging I noticed sometimes the response json is not valid, which cause the stream stops.
因为网络限制,src="[https://cdn.discordapp.com/attachments/*/nd_the_Ye_18a33ae1-6b56-49a9-9755-6c9d3510f7cf.png"这类照片不能访问,这个怎么处理](https://cdn.discordapp.com/attachments/*/nd_the_Ye_18a33ae1-6b56-49a9-9755-6c9d3510f7cf.png,你可以把后端显示的代码地址https://cdn.discordapp.com/attachments,可以变成后端可配置?获取你告诉我,你的代理是怎么实现的
imagine.error Error: ImagineApi failed with status 400
at (node_modules/midjourney/libs/midjourney.js:24:0)
at (node_modules/tslib/tslib.es6.js:118:42)
Error when loading the midjourney ui site seems to be related to the version change as in the main api project
如题
跑的是v2ray,代理地址:http://127.0.0.1:10809
尝试改过UI内的request下的程序无果,是不是要改midjourney-api内的源码呢,写不来
Now midjourney official added the up, down, left, right and four directions of the panning extension function, the current library can be realized!
I get this error
Failed to load resource: the server responded with a status of 404 (Not Found) on image command
你好,这个支持图生图,垫图这个功能吗?
I can not use this normally.
I see the commit, it is added the session_id
What is the different between session_id and SALAI_TOKEN?
Should I config that session_id?
是否对违禁词,有识别判断机制呢?discord会返回违禁词的错误,是否会返回对应的错误信息?
add prompt and application command
Added to netlify, edited the .env but nothing is generated when sending a message
Hoping someone can help here because I've spent two days trying to get this working and I'm too dumb to figure out what's wrong.
I'm trying to generate images via the API endpoint with Make.com, deployed on both Vercel (WS=FALSE) and Netlify(WS=FALSE and WS=TRUE).
The API request often — almost always — returns incomplete streaming binary data which translates into an incomplete JSON response like the below:
{"uri":"https://cdn.discordapp.com/attachments/1099844378522034196/1120457502526554193/grid_0.webp",
Occasionally, it will return the final JSON with progress:done, in a similarly truncated form. Very occasionally, it will return a complete, successful response.
My timeout values are long enough to fully process the image.
When I try to generate an image via cURL, I also get incomplete data with the following response:
curl: (18) transfer closed with outstanding read data remaining
Can someone point me in the right direction to even start troubleshooting this? I'm about to lose my mind here.
I followed the instruction to run it locally.
I can see the view (http://localhost:3000/midjourney/).
But I got this error message in console.
POST http://localhost:3000/midjourney/api/imagine/ 404 (Not Found)
Hello,
I would like to ask if it is safe for a discord account, which we are using as a midjourney subscription provider.
I am just wodering, because this way there would be thousands of websites offering extremely cheap midjourney generations just by purchasing one subscription. And as far as I know there are not so many this type of websites.
thanks for the answer in advance
Will you updated this UI to use your new api updates?
DevTools failed to load source map: Could not load content for chrome-extension://cofdbpoegempjloogbagkncekinflcnj/build/content.js.map: 系统错误: net::ERR_BLOCKED_BY_CLIENT
i will fork this repo and deploy on vercel and config the env.
Then i test imagine, it works well. but variation failed the http status is 504. there is no more log in addition to the following log
[POST] /api/variation/ reason=EDGE_FUNCTION_INVOCATION_TIMEOUT, status=504, user_error=true
Please update it to the latest https://github.com/erictik/midjourney-api, we still face issues like #39
Varation and upscale are gone
https://github.com/trueai-org/midjourney-proxy
中文 | English
代理 Midjourney 的 Discord 频道,实现 API 形式调用 AI 绘图,公益项目,提供绘图 API 免费使用。
完全开源,不会存在部分开源或部分闭源,欢迎 PR。
功能最全、最安全、占用内存最小(100MB+)的 Midjourney Proxy API ~~
公益接口为慢速模式,接口免费调用,账号池由赞助者提供,请大家合理使用。
无
无
netlify ws work.
vercel ws doesn't work.
u can disable ws or try netlify.
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation
Import trace for requested module:
./node_modules/_lodash.snakecase@[email protected]/index.js
./node_modules/_discord.js@[email protected]/src/util/Transformers.js
./node_modules/_discord.js@[email protected]/src/util/Options.js
./node_modules/_discord.js@[email protected]/src/index.js
./node_modules/_midjourney@2.2.31@midjourney/libs/midjourney.js
./node_modules/_midjourney@2.2.31@midjourney/libs/index.js
i just fork the repo and npm run build in local.
anyone have meet this issue?
I was working last week and it went good.
From yesterday it's failing returning 400.
api.DiscordBaseUrl https: //discord.com
api.fetchUrl https: //discord.com/api/v9/interactions
imagine.error [Error: ImagineApi failed with status 400]
api.error.config {
payload: {
type: 2,
application_id: '',
guild_id: '',
channel_id: '',
session_id: '',
data: {
version: '',
id: '',
name: 'imagine',
type: 1,
options: [
{ type: 3, name: 'prompt', value: '[
4758450366
] draw a cat'
}
],
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.