How does image generation using emitters work? #1797

Closed
opened 2025-11-11 14:53:28 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @hartmark on GitHub (Aug 16, 2024).

How do I consistently generate images?

I have trouble getting emitters to work reliably, I can get it to sometimes generate images automatically, but not consistently.

I have installed the tool to generate images.
https://openwebui.com/t/techelpr/image/

Then I have created a custom model.
I'm using llava:7b-v1.6 as base model, I have tried others without any luck.
I have this as system prompt:

You should never respond with that you cannot generate images or anything like that.

Generates an image of the prompt if it is something that could be thought as a concept to generate an image.

If your response has a generated image also suffix your response with "Prompt: <actual prompt of generated image>".

image

If I use the generate image button
image

I get an image so the generator is working well.

Originally created by @hartmark on GitHub (Aug 16, 2024). How do I consistently generate images? I have trouble getting emitters to work reliably, I can get it to sometimes generate images automatically, but not consistently. I have installed the tool to generate images. https://openwebui.com/t/techelpr/image/ Then I have created a custom model. I'm using **llava:7b-v1.6** as base model, I have tried others without any luck. I have this as system prompt: ``` You should never respond with that you cannot generate images or anything like that. Generates an image of the prompt if it is something that could be thought as a concept to generate an image. If your response has a generated image also suffix your response with "Prompt: <actual prompt of generated image>". ``` ![image](https://github.com/user-attachments/assets/1e182cbf-56f9-4438-9257-831d055efe94) If I use the generate image button ![image](https://github.com/user-attachments/assets/11823bff-6489-4f73-ba72-874c03418831) I get an image so the generator is working well.
Author
Owner

@hartmark commented on GitHub (Aug 16, 2024):

The tool is also enabled in the model.

image

@hartmark commented on GitHub (Aug 16, 2024): The tool is also enabled in the model. ![image](https://github.com/user-attachments/assets/9149ca36-bb12-4219-b121-6a80b3ec7f75)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1797