[GH-ISSUE #8498] Filters not working as expected when using the API endpoints #53814

Closed
opened 2026-05-05 15:23:21 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @mbeltagy on GitHub (Jan 12, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8498

  • I have read and followed all the instructions provided in the README.md.
  • I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Filters should have allowed to work with /api/chat/completions currently they only seem partially supported.

Actual Behavior:

Only the inlet method gets called, but not the outlet. This was in the context of monitoring tool that I am using to track and control usage: https://github.com/VariantConst/OpenWebUI-Monitor/issues/23

Description

The filter code in question is https://github.com/VariantConst/OpenWebUI-Monitor/blob/main/resources/functions/openwebui_monitor_invisible.py

Adding logs and confirmed that that outlet only gets called when using the chat interface on the web, but not via api.

Originally created by @mbeltagy on GitHub (Jan 12, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/8498 - [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. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [ ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Filters should have allowed to work with `/api/chat/completions` currently they only seem partially supported. ## Actual Behavior: Only the `inlet` method gets called, but not the `outlet`. This was in the context of monitoring tool that I am using to track and control usage: https://github.com/VariantConst/OpenWebUI-Monitor/issues/23 ## Description The filter code in question is https://github.com/VariantConst/OpenWebUI-Monitor/blob/main/resources/functions/openwebui_monitor_invisible.py Adding logs and confirmed that that `outlet` only gets called when using the chat interface on the web, but not via api.
Author
Owner

@tjbck commented on GitHub (Jan 12, 2025):

#3237

<!-- gh-comment-id:2585928598 --> @tjbck commented on GitHub (Jan 12, 2025): #3237
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#53814