issue: duplicate image for image generation tools calling #4500

Closed
opened 2025-11-11 15:55:30 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @cheebinc on GitHub (Mar 20, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.5.20

Ollama Version (if applicable)

0.6.1

Operating System

Ubuntu 22.04

Browser (if applicable)

Chrome

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

should only generate single image based on user prompt

Actual Behavior

Randomly generate multiple images after multiple conversation.

Steps to Reproduce

  1. Go 'Tools', add a new tools (copy the tools from https://openwebui.com/t/justinrahb/image_gen)
  2. Ollama download llama3-groq-tool-use model (https://ollama.com/library/llama3-groq-tool-use) from search model in Openwebui
  3. Create new chat with llama3-groq-tool-use model and enable Image Gen tools
  4. Ask for generate cat (first conversation will be normal)
  5. After multiple conversation, the chat might randomly generate multiple image when only request for single image.

Logs & Screenshots

Image

Additional Information

Seems like duplication only happen when triggering event_emitter type="message", since the prompt generation part is only generate single response. Only image url duplicated.
Always randomly happen after first conversation, sometime have to test multiple times then only able to reproduce the issue.

Originally created by @cheebinc on GitHub (Mar 20, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.5.20 ### Ollama Version (if applicable) 0.6.1 ### Operating System Ubuntu 22.04 ### Browser (if applicable) Chrome ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior should only generate single image based on user prompt ### Actual Behavior Randomly generate multiple images after multiple conversation. ### Steps to Reproduce 1. Go 'Tools', add a new tools (copy the tools from https://openwebui.com/t/justinrahb/image_gen) 2. Ollama download llama3-groq-tool-use model (https://ollama.com/library/llama3-groq-tool-use) from search model in Openwebui 3. Create new chat with llama3-groq-tool-use model and enable Image Gen tools 4. Ask for generate cat (first conversation will be normal) 5. After multiple conversation, the chat might randomly generate multiple image when only request for single image. ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/7bb1b39a-18da-4271-823f-e4c2c93f77d1) ### Additional Information Seems like duplication only happen when triggering event_emitter type="message", since the prompt generation part is only generate single response. Only image url duplicated. Always randomly happen after first conversation, sometime have to test multiple times then only able to reproduce the issue.
GiteaMirror added the bug label 2025-11-11 15:55:30 -06:00
Author
Owner

@tjbck commented on GitHub (Mar 20, 2025):

https://openwebui.com/t/justinrahb/image_gen is now built-in.

@tjbck commented on GitHub (Mar 20, 2025): https://openwebui.com/t/justinrahb/image_gen is now built-in.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4500