erictik / midjourney-ui

Midjourney UI is an open source AI painting UI based on Midjourney
https://midjourney-ui.vercel.app
Apache License 2.0
343 stars 118 forks source link

vercel ws doesn't work. #33

Open zcpua opened 1 year ago

zcpua commented 1 year ago

netlify ws work. vercel ws doesn't work. u can disable ws or try netlify.

allentofight commented 1 year ago

how to disable ws, I use the following with Ws set to false, but it still reports 502

  const client = new Midjourney({
    ServerId: <string>process.env.SERVER_ID,
    ChannelId: <string>process.env.CHANNEL_ID,
    SalaiToken: <string>process.env.SALAI_TOKEN,
    Debug: true,
    Ws: false,
  });
zcpua commented 1 year ago

https://github.com/erictik/midjourney-api/blob/main/example/imagine.ts