mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #13861] issue: Functions (eg: filter) is not applied when sending on API (when try on browser, it works, details below) #32585
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @devanenWl on GitHub (May 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13861
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.9
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Request through API should go through filter
Actual Behavior
It doesn't
Steps to Reproduce
When I try this, I have a Function Filter to log input/output token. But when checked in Docker logs, It never shows anything about this requests
But when I try on the frontend, it works normally, and when I try to POST by using that body, it appear in log
Logs & Screenshots
This is the log when I try by using on FE
2025-05-13 19:52:03.528 | INFO | function_context_manager:log_chat_turn:116 - {"log_type": "chat_turn", "model_base": "gpt-4o-2024-11-20", "model_name": "gpt-4o-2024-11-20", "original_input_tokens": 1, "output_tokens": 10, "elapsed_seconds": 1.0, "original_message_count": 1} - {}
Additional Information
No response
@Classic298 commented on GitHub (May 14, 2025):
Please check existing issues and discussions. This is a duplicate