[GH-ISSUE #15607] issue: UserValves not showing up in UI when used in Pipeline #137341

Closed
opened 2026-05-25 07:00:47 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @thomassrour on GitHub (Jul 9, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15607

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

0.6.15

Ollama Version (if applicable)

No response

Operating System

Ubuntu 22.04

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

the User Valves show up in the Chat controls.

Actual Behavior

Only the Valves show up in the admin panel, not the User Valves.

Steps to Reproduce

Run openwebui and pipelines with docker, then upload pipeline in the UI.

Here is the code I have:

class Pipeline:

class Valves(BaseModel):
    OLLAMA_BASE_URL: str
    MODEL_NAME: str
    EMBEDDING_MODEL_NAME: str

class UserValves(BaseModel):

    filter_value: Literal["a", "b"] = Field(
        default = "a", 
        description="filter"
    )

def __init__(self):
    self.valves = self.Valves(
        **{
            "OLLAMA_BASE_URL": os.getenv("OLLAMA_BASE_URL", "http://10.28.58.3:11435"),
            "MODEL_NAME": os.getenv("MODEL_NAME", "gemma3:27b-20k"),
            "EMBEDDING_MODEL_NAME": os.getenv("EMBEDDING_MODEL_NAME", "sentence-transformers/all-mpnet-base-v2"),
        }
    )

    self.user_valves = self.UserValves()

Logs & Screenshots

There are no error messages

Additional Information

No response

Originally created by @thomassrour on GitHub (Jul 9, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15607 ### 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 0.6.15 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 22.04 ### 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 **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 the User Valves show up in the Chat controls. ### Actual Behavior Only the Valves show up in the admin panel, not the User Valves. ### Steps to Reproduce Run openwebui and pipelines with docker, then upload pipeline in the UI. Here is the code I have: class Pipeline: class Valves(BaseModel): OLLAMA_BASE_URL: str MODEL_NAME: str EMBEDDING_MODEL_NAME: str class UserValves(BaseModel): filter_value: Literal["a", "b"] = Field( default = "a", description="filter" ) def __init__(self): self.valves = self.Valves( **{ "OLLAMA_BASE_URL": os.getenv("OLLAMA_BASE_URL", "http://10.28.58.3:11435"), "MODEL_NAME": os.getenv("MODEL_NAME", "gemma3:27b-20k"), "EMBEDDING_MODEL_NAME": os.getenv("EMBEDDING_MODEL_NAME", "sentence-transformers/all-mpnet-base-v2"), } ) self.user_valves = self.UserValves() ### Logs & Screenshots There are no error messages ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-25 07:00:47 -05:00
Author
Owner

@silentoplayz commented on GitHub (Jul 9, 2025):

A very similar issue in nature has been closed due to not being able to reproduce - https://github.com/open-webui/open-webui/issues/15379.

<!-- gh-comment-id:3052707348 --> @silentoplayz commented on GitHub (Jul 9, 2025): A very similar issue in nature has been closed due to not being able to reproduce - https://github.com/open-webui/open-webui/issues/15379.
Author
Owner

@thomassrour commented on GitHub (Jul 9, 2025):

Hi @silentoplayz , I came across that issue when debugging and saw it was with a Pipe not a Pipeline. I couldn't find an issue that mentioned Pipelines

<!-- gh-comment-id:3052894965 --> @thomassrour commented on GitHub (Jul 9, 2025): Hi @silentoplayz , I came across that issue when debugging and saw it was with a Pipe not a Pipeline. I couldn't find an issue that mentioned Pipelines
Author
Owner

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

Pipelines does not support UserValves, Pipe Function is required here.

https://github.com/open-webui/pipelines/issues/236

<!-- gh-comment-id:3053779633 --> @tjbck commented on GitHub (Jul 9, 2025): Pipelines does not support UserValves, Pipe Function is required here. https://github.com/open-webui/pipelines/issues/236
Author
Owner

@Maleya commented on GitHub (Aug 15, 2025):

@tjbck If that is the case the documentation here is misleading:

Hence, Valves and UserValves class can be defined in either a Pipe, Pipeline, Filter or Tools class.

https://docs.openwebui.com/features/plugin/valves/

<!-- gh-comment-id:3191481468 --> @Maleya commented on GitHub (Aug 15, 2025): @tjbck If that is the case the documentation here is misleading: > Hence, Valves and UserValves class can be defined in either a Pipe, Pipeline, Filter or Tools class. https://docs.openwebui.com/features/plugin/valves/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#137341