mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
feat: Filter can modify the chat records ultimately stored in the database #5683
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 @0721-Day on GitHub (Jul 2, 2025).
Check Existing Issues
Problem Description
I created a Filter to generate random numbers within the chat.
It works normally, but before each request, I need to go through all the chat records to replace this random value.
It cannot be stored in the database, and I haven't found a better solution
Perhaps "Pipe" can achieve this function, but if we insist on using its proxy for every model, I believe it would be counterproductive.
It could also be that I am not very familiar with the project, and I am unable to find a reasonable solution
Desired Solution you'd like
There are optional parameters or other methods to directly modify the original content
Alternatives Considered
No response
Additional Context
No response
@tjbck commented on GitHub (Jul 2, 2025):
Not entirely sure what you meant here, could you elaborate a bit more?