mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #17908] [CLOSED] enh: add filters to embedding models #24597
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17908
Author: @Simon-Stone
Created: 9/30/2025
Status: ❌ Closed
Base:
dev← Head:add-filters-to-embedding-models📝 Commits (4)
37d1c85Merge pull request #17827 from open-webui/dev4d7fddaMerge pull request #17892 from open-webui/dev95e2267feat: enhance embedding generation with filter functions390a1catest: add integration test for embedding filter application📊 Changes
2 files changed (+99 additions, -3 deletions)
View changed files
➕
backend/open_webui/test/apps/webui/routers/test_embeddings.py(+70 -0)📝
backend/open_webui/utils/embeddings.py(+29 -3)📄 Description
Filter function application for embedding models
Currently, embedding requests do not pass through Filter functions, even though they can be attached to embedding models in the Models settings.
This PR adds the application of filters to embedding models.
An example use case is the injection of additional parameters for upstream usage tracking (e.g. with LiteLLM).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.