[GH-ISSUE #12296] issue: Filter function’s priority valve has no effect #16540

Closed
opened 2026-04-19 22:26:17 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @landerrosette on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12296

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.6.0

Ollama Version (if applicable)

No response

Operating System

Debian 12

Browser (if applicable)

No response

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

By design, when multiple filters are applied to a model, their relative sequence of execution should be defined by one of their respective valves named priority.

Actual Behavior

The filter execution sequence does not change when priority values are modified.

Steps to Reproduce

  1. Create two filter functions each with a priority valve field Image
  2. Assign different integer values to the 'priority' valve in each filter function. For example, set priority to '1' in the first filter and '2' in the second Image
  3. Send a message to a model that has these two filters ticked in its configuration
  4. Observe in the log which filter is executing after the other
  5. Reverse the 'priority' values assigned to the filter functions (e.g., change 1 to 2 and 2 to 1)
  6. Observe the same execution sequence as in step 4

Logs & Screenshots

See above.

Additional Information

The related code may be located in 04799f1f95/backend/open_webui/utils/filter.py (L13-L18)

The code includes a TODO concerning the use of "valves" in FunctionModel. Further clarification may be needed regarding how valves are intended to affect execution order.

Originally created by @landerrosette on GitHub (Apr 1, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12296 ### 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.6.0 ### Ollama Version (if applicable) _No response_ ### Operating System Debian 12 ### Browser (if applicable) _No response_ ### 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 By design, when multiple filters are applied to a model, their relative sequence of execution should be defined by one of their respective valves named `priority`. ### Actual Behavior The filter execution sequence does not change when priority values are modified. ### Steps to Reproduce 1. Create two filter functions each with a `priority` valve field ![Image](https://github.com/user-attachments/assets/7d00711a-3eb5-493a-aa49-006702fbdbcf) 2. Assign different integer values to the 'priority' valve in each filter function. For example, set priority to '1' in the first filter and '2' in the second ![Image](https://github.com/user-attachments/assets/42b58443-2ab4-4c17-a148-7f663b0703f0) 3. Send a message to a model that has these two filters ticked in its configuration 4. Observe in the log which filter is executing after the other 5. Reverse the 'priority' values assigned to the filter functions (e.g., change 1 to 2 and 2 to 1) 6. Observe the same execution sequence as in step 4 ### Logs & Screenshots See above. ### Additional Information The related code may be located in https://github.com/open-webui/open-webui/blob/04799f1f95f958674d35ba4854ef62754a4d332e/backend/open_webui/utils/filter.py#L13-L18 The code includes a TODO concerning the use of "valves" in FunctionModel. Further clarification may be needed regarding how valves are intended to affect execution order.
GiteaMirror added the bug label 2026-04-19 22:26:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16540