mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
regression: filter function: body messages modification in inlet are overruled #4079
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 @thiswillbeyourgithub on GitHub (Feb 23, 2025).
Bug Report
Installation Method
docker compose
Environment
Confirmation:
Expected Behavior:
Modification to the body of the message inside an inlet filter function should not be discarded
Actual Behavior:
The filters that modify the body seem to have their modification overruled after the inlet is applied.
Description
Bug Summary:
The filters that modify the body seem to have their modification overruled after the inlet is applied.
Reproduction Details
You tell me the number of messages you see in the chat, to help me debug stuff. I want to know how many system prompt, user messages and asssitant messages there are.This was also confirmed by using my debug filter to inspect the body in an inlet applied after the turn limiter.
Additional Information
I think this is a regression.
Note
Initially mentioned here
edit: i'm not able to reproduice it anymore. I have a hunch this is something deepeer that makes it non deterministic.
@arneschreuder commented on GitHub (Feb 25, 2025):
Thank you for this. I also had this issue. I will check if it works a little bit later today.