issue: functions doesn't work asynchronously #4281

Closed
opened 2025-11-11 15:50:31 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @adan89lion on GitHub (Mar 6, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.

Installation Method

Docker

Open WebUI Version

v0.5.20

Ollama Version (if applicable)

No response

Operating System

Windows 11 24H2

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 checked the browser console logs.
  • I have checked the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

Functions (filters) should work asynchronously.

Actual Behavior

Functions (filters) won't execute after closing the tab.

Steps to Reproduce

  1. Create a function (filter) to accentuate Russian characters via an API server.
  2. Keep the tab open throughout the entire generation.
  3. The output was successfully passed to the API server; characters accurately accentuated.
  4. Generate another batch, but close the tab before the generation complete.
  5. The second generation wasn't passed to the API server.

Logs & Screenshots

N/A

Additional Information

Asynchronous Chat was introduced in v0.5.0. However, functions (filters) don't work asynchronously.

Originally created by @adan89lion on GitHub (Mar 6, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Installation Method Docker ### Open WebUI Version v0.5.20 ### Ollama Version (if applicable) _No response_ ### Operating System Windows 11 24H2 ### 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 checked the browser console logs. - [x] I have checked the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Functions (filters) should work asynchronously. ### Actual Behavior Functions (filters) won't execute after closing the tab. ### Steps to Reproduce 1. Create a function (filter) to accentuate Russian characters via an API server. 2. Keep the tab open throughout the entire generation. 3. The output was successfully passed to the API server; characters accurately accentuated. 4. Generate another batch, but close the tab before the generation complete. 5. The second generation wasn't passed to the API server. ### Logs & Screenshots N/A ### Additional Information Asynchronous Chat was introduced in v0.5.0. However, functions (filters) don't work asynchronously.
GiteaMirror added the bug label 2025-11-11 15:50:31 -06:00
Author
Owner

@rgaricano commented on GitHub (Mar 6, 2025):

a masterclass of lattwood: https://github.com/open-webui/open-webui/issues/11233

@rgaricano commented on GitHub (Mar 6, 2025): a masterclass of [lattwood](https://github.com/lattwood): https://github.com/open-webui/open-webui/issues/11233
Author
Owner

@tjbck commented on GitHub (Mar 7, 2025):

Outlet hook requires the tab to be active.

@tjbck commented on GitHub (Mar 7, 2025): Outlet hook requires the tab to be active.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4281