mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
Forward user information when using openai for embedding #3453
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 @df-cgdm on GitHub (Jan 27, 2025).
Feature Request
It is already possible to enable user information forwarding when doing a chat completion with ENABLE_FORWARD_USER_INFO_HEADERS.
b72150c881/backend/open_webui/routers/openai.py (L209)But when an external openai compatible engine is used for RAG the information headers are not added to the embeddings method.
Note:
I think this should be done in generate_openai_batch_embeddings function:
b72150c881/backend/open_webui/retrieval/utils.py (L425)@tjbck commented on GitHub (Jan 27, 2025):
PR Welcome.