erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.64k stars 269 forks source link

Allow progress updates without images, for 2x and 4x upscales for exa… #242

Open owengo opened 8 months ago

owengo commented 8 months ago

With the new upscale x2 and x4, we receive progress updates but the attachments list is empty, so there is no image progress sent to the client. These upscales are very slow so it creates a long delay without any progress and can cause problems to client applications. With this small patch, if the user configures UpdateProgressWithoutImage to "true", these updates will be sent with the "EmptyImageUri" from the config ( defaults to "about:blank" ). By default behavior is the same as before.