[GH-ISSUE #10966] Attached filename injected in the response of the model #54759

Closed
opened 2026-05-05 16:41:20 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @mariomaz87 on GitHub (Feb 28, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10966

Originally assigned to: @tjbck on GitHub.

Installation Method

Docker Compose on a Raspberry Pi with RaspberryOS

Environment

  • Open WebUI Version: 0.5.18 (but the same behavior was present also in past versions)

  • Operating System: RaspberryOS

  • Browser (if applicable): Firefox

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on 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 provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

When I attach a file in a conversation, the filename should not be included in the answer, if not requested.

Actual Behavior:

When I attach a file in a conversation and the answer by the model includes formatted code, the filename of the attached file is "randomly" included in the response, invalidating the provided code.

Description

Bug Summary:
Find attached the screenshots.

Reproduction Details

Steps to Reproduce:
Open a chat, attach a file, select to use the entire content of the file, ask a question that includes the generation of code.

Logs and Screenshots

Image

Image

Browser Console Logs:
Can't find anything relevant

Docker Container Logs:
Can't find anything relevant

Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]

Additional Information

[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]

Note

If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

Originally created by @mariomaz87 on GitHub (Feb 28, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10966 Originally assigned to: @tjbck on GitHub. ## Installation Method Docker Compose on a Raspberry Pi with RaspberryOS ## Environment - **Open WebUI Version:** 0.5.18 (but the same behavior was present also in past versions) - **Operating System:** RaspberryOS - **Browser (if applicable):** Firefox **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: When I attach a file in a conversation, the filename should not be included in the answer, if not requested. ## Actual Behavior: When I attach a file in a conversation and the answer by the model includes formatted code, the filename of the attached file is "randomly" included in the response, invalidating the provided code. ## Description **Bug Summary:** Find attached the screenshots. ## Reproduction Details **Steps to Reproduce:** Open a chat, attach a file, select to use the entire content of the file, ask a question that includes the generation of code. ## Logs and Screenshots ![Image](https://github.com/user-attachments/assets/ab67b40c-6c23-48c1-b857-dc31b57ecc32) ![Image](https://github.com/user-attachments/assets/a756f9ae-73a6-4a83-9349-af29757d604f) **Browser Console Logs:** Can't find anything relevant **Docker Container Logs:** Can't find anything relevant **Screenshots/Screen Recordings (if applicable):** [Attach any relevant screenshots to help illustrate the issue] ## Additional Information [Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] ## Note If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
Author
Owner

@DarremMolko commented on GitHub (Mar 3, 2025):

I have the same problem, I thought it was the model I was using, even tried asking it to not include the file name in the response but to no avail.

<!-- gh-comment-id:2695802574 --> @DarremMolko commented on GitHub (Mar 3, 2025): I have the same problem, I thought it was the model I was using, even tried asking it to not include the file name in the response but to no avail.
Author
Owner

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

Status: Open.
#11111

<!-- gh-comment-id:2695942602 --> @tjbck commented on GitHub (Mar 4, 2025): Status: Open. #11111
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#54759