[GH-ISSUE #15837] issue: middleware.py Line 254 Conditional Statement Logic Error #17688

Closed
opened 2026-04-19 23:30:38 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @lotus914 on GitHub (Jul 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15837

Check Existing Issues

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

Installation Method

Git Clone

Open WebUI Version

0.6.16

Ollama Version (if applicable)

No response

Operating System

Ubuntu

Browser (if applicable)

Edge, Chrome, Firefox

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 provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

On the 264 line we haven't seen any Conditional Statement (If - Else). When we look at v0.6.15 at the same line there was a if statement for Citation is enabled or not enabled. But, in this version there caught a logic error.

Actual Behavior

There must be a Conditional Statement on there.

Steps to Reproduce

Write a tool simple and add a citation. After that try your tool code.

Logs & Screenshots

There aren't any syntax error. So ı didn't add any resources here.

Additional Information

No response

Originally created by @lotus914 on GitHub (Jul 18, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15837 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.16 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu ### Browser (if applicable) Edge, Chrome, Firefox ### 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 **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior On the 264 line we haven't seen any Conditional Statement (If - Else). When we look at v0.6.15 at the same line there was a if statement for Citation is enabled or not enabled. But, in this version there caught a logic error. ### Actual Behavior There must be a Conditional Statement on there. ### Steps to Reproduce Write a tool simple and add a citation. After that try your tool code. ### Logs & Screenshots There aren't any syntax error. So ı didn't add any resources here. ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-19 23:30:38 -05:00
Author
Owner

@lotus914 commented on GitHub (Jul 18, 2025):

@tjbck

<!-- gh-comment-id:3089770718 --> @lotus914 commented on GitHub (Jul 18, 2025): @tjbck
Author
Owner

@tjbck commented on GitHub (Jul 19, 2025):

This is not a valid issue report. Include all the required details.

<!-- gh-comment-id:3092159951 --> @tjbck commented on GitHub (Jul 19, 2025): This is not a valid issue report. Include all the required details.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17688