"Stream" Hook for Real-Time Filtering only works well with Global = true #4204

Closed
opened 2025-11-11 15:48:47 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @kaptainkangaroo on GitHub (Feb 28, 2025).


Installation Method

Docker compose on VPS

Environment

  • Open WebUI Version: 05.17

  • Ollama (if applicable): NA

  • Operating System: Debian 12

  • Browser (if applicable): Chrome

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.

Expected Behavior:

when the llm has text in brackets "" it is never seen in the UI

Actual Behavior:

"<>" text visible in the UI , sometimes the text is not visible but the function is not reliable.

Description

Bug Summary:

[Provide a brief but clear summary of the bug]

Reproduction Details

Steps to Reproduce:

  1. Create a filter in Function using Stream hook to remove any response text with"<>" so its not visible in the UI
  2. Add function to Model in Model settings
  3. Test to see the unreliable behaviour
  4. Change Global = true in Function toggle
  5. Test to see the filter is now reliable

Logs and Screenshots

Browser Console Logs:
NA

Docker Container Logs:
NA

Screenshots/Screen Recordings (if applicable):
NA

Originally created by @kaptainkangaroo on GitHub (Feb 28, 2025). --- ## Installation Method Docker compose on VPS ## Environment - **Open WebUI Version:** 05.17 - **Ollama (if applicable):** NA - **Operating System:** Debian 12 - **Browser (if applicable):** Chrome **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. ## Expected Behavior: when the llm has text in brackets "<some text>" it is never seen in the UI ## Actual Behavior: "<>" text visible in the UI , sometimes the text is not visible but the function is not reliable. ## Description **Bug Summary:** [Provide a brief but clear summary of the bug] ## Reproduction Details **Steps to Reproduce:** 1. Create a filter in Function using Stream hook to remove any response text with"<>" so its not visible in the UI 2. Add function to Model in Model settings 3. Test to see the unreliable behaviour 4. Change Global = true in Function toggle 5. Test to see the filter is now reliable ## Logs and Screenshots **Browser Console Logs:** NA **Docker Container Logs:** NA **Screenshots/Screen Recordings (if applicable):** NA
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4204