[GH-ISSUE #14448] issue: self variables not overlapping for inlet and outlet #17258

Closed
opened 2026-04-19 22:57:47 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Joni1717 on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14448

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

v0.6.11

Ollama Version (if applicable)

No response

Operating System

Windows 10

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

Self variables that are stored within inlet should be able to called up in outlet.

Actual Behavior

Self variables that are stored in the inlet cannot be called up in the outlet via self.

Steps to Reproduce

It can be reproduced with the following script. In OI version 0.6.11 the output of the script is as follows in the cmd:
---inlet---
test

---outlet---

With OI version 0.6.10 it still works and the output looks like this:
---inlet---
test

---outlet---
test

"""
title: Example Filter
author: open-webui
author_url: https://github.com/open-webui
funding_url: https://github.com/open-webui
version: 0.1
"""

from pydantic import BaseModel, Field
from typing import Optional


class Filter:
    class Valves(BaseModel):
        pass

    def __init__(self):
        self.test = ""
        pass

    def inlet(self, body: dict, __user__: Optional[dict] = None) -> dict:
        print("---inlet---")
        self.test = "test"
        print(self.test)

        return body

    def outlet(self, body: dict, __user__: Optional[dict] = None) -> dict:
        print("---outlet---")
        print(self.test)

        return body

Logs & Screenshots

v0.6.11
Image
v0.6.10
Image

Additional Information

No response

Originally created by @Joni1717 on GitHub (May 28, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14448 ### 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 v0.6.11 ### Ollama Version (if applicable) _No response_ ### Operating System Windows 10 ### 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 Self variables that are stored within inlet should be able to called up in outlet. ### Actual Behavior Self variables that are stored in the inlet cannot be called up in the outlet via self. ### Steps to Reproduce It can be reproduced with the following script. In OI version 0.6.11 the output of the script is as follows in the cmd: ---inlet--- test ---outlet--- With OI version 0.6.10 it still works and the output looks like this: ---inlet--- test ---outlet--- test ``` """ title: Example Filter author: open-webui author_url: https://github.com/open-webui funding_url: https://github.com/open-webui version: 0.1 """ from pydantic import BaseModel, Field from typing import Optional class Filter: class Valves(BaseModel): pass def __init__(self): self.test = "" pass def inlet(self, body: dict, __user__: Optional[dict] = None) -> dict: print("---inlet---") self.test = "test" print(self.test) return body def outlet(self, body: dict, __user__: Optional[dict] = None) -> dict: print("---outlet---") print(self.test) return body ``` ### Logs & Screenshots v0.6.11 ![Image](https://github.com/user-attachments/assets/0e71539d-c547-4f56-95e0-cadde184817a) v0.6.10 ![Image](https://github.com/user-attachments/assets/4e72d59c-876e-4123-acc7-93d7b18a89d8) ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-19 22:57:47 -05:00
Author
Owner

@tjbck commented on GitHub (May 28, 2025):

Should be addressed in dev.

<!-- gh-comment-id:2916616392 --> @tjbck commented on GitHub (May 28, 2025): Should be addressed in dev.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17258