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.
https://github.com/open-webui/open-webui/blob/b72150c881955721a63ae7f4ea1b9ea293816fc1/backend/open_webui/routers/openai.py#L209
``` python
{
"X-OpenWebUI-User-Name": user.name,
"X-OpenWebUI-User-Id": user.id,
"X-OpenWebUI-User-Email": user.email,
"X-OpenWebUI-User-Role": user.role,
}
if ENABLE_FORWARD_USER_INFO_HEADERS
else {}
```
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:
https://github.com/open-webui/open-webui/blob/b72150c881955721a63ae7f4ea1b9ea293816fc1/backend/open_webui/retrieval/utils.py#L425
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.
https://github.com/open-webui/open-webui/blob/b72150c881955721a63ae7f4ea1b9ea293816fc1/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:
https://github.com/open-webui/open-webui/blob/b72150c881955721a63ae7f4ea1b9ea293816fc1/backend/open_webui/retrieval/utils.py#L425
@tjbck commented on GitHub (Jan 27, 2025):
PR Welcome.