igolaizola / bulkai

AI image generation in bulk automatically
MIT License
191 stars 40 forks source link

If we use the url address of the image to generate, we also cannot receive the response. #8

Closed ZYKJShadow closed 1 year ago

ZYKJShadow commented 1 year ago

I checked the reason, because the prompt given to the completion is not the same

I submitted this image

If I understand correctly, it should be used as the key of the map in the code, but it should be used for matching methods

But the response I received was this image

In addition to the image address change, there is also \u003 to deal with

igolaizola commented 1 year ago

That shouldn't be the issue. The bot is reading the updated response (it uses the nonce to make the match). See: https://github.com/igolaizola/bulkai/blob/eb80ac15c6ca6ef048446677cb9f066a4153d72f/pkg/ai/midjourney/midjourney.go#L368

Maybe the "niji" or "q" suffixes have something to do. Could you try it again and give me the logs just after the interaction has been sent? The one saying "...waiting to start".

I'll try to take another look to it using your same example.

ZYKJShadow commented 1 year ago

That shouldn't be the issue. The bot is reading the updated response (it uses the nonce to make the match). See:

https://github.com/igolaizola/bulkai/blob/eb80ac15c6ca6ef048446677cb9f066a4153d72f/pkg/ai/midjourney/midjourney.go#L368

Maybe the "niji" or "q" suffixes have something to do. Could you try it again and give me the logs just after the interaction has been sent? The one saying "...waiting to start".

I'll try to take another look to it using your same example.

this one

image

The address of the last image is different, so the prompt is different (key).

ZYKJShadow commented 1 year ago

There is also the question of whether the timeout can be reset if a progress change is received. Occasionally, the task will get close to completion but time out and fail

igolaizola commented 1 year ago

That shouldn't be the issue. The bot is reading the updated response (it uses the nonce to make the match). See: https://github.com/igolaizola/bulkai/blob/eb80ac15c6ca6ef048446677cb9f066a4153d72f/pkg/ai/midjourney/midjourney.go#L368

Maybe the "niji" or "q" suffixes have something to do. Could you try it again and give me the logs just after the interaction has been sent? The one saying "...waiting to start". I'll try to take another look to it using your same example.

this one

image

The address of the last image is different, so the prompt is different (key).

Got it!

The first response doesn't have the converted link anymore (it used to have it). Maybe the easiest fix is to just replace links. I'm already doing this for Bluewillow:

See https://github.com/igolaizola/bulkai/blob/eb80ac15c6ca6ef048446677cb9f066a4153d72f/pkg/ai/bluewillow/bluewillow.go#L497-L507

Until I fix this you won't be able to use links in your prompts.