mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #8615] Add x-openwebui-user-name Header to Model Requests
#53862
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 @alonahmias on GitHub (Jan 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8615
Add
x-openwebui-user-nameHeader to Model RequestsIs your feature request related to a problem? Please describe.
llm api currently do not have a way to filter models they can access based on their identity.
Describe the solution you'd like
Add the
x-openwebui-user-nameheader to all requests sent to the LLM API. This header should include the user's name or identifier. This will enable APIs that support user-based filtering to show or restrict access to specific models for each user. this will be enable with the existingENABLE_FORWARD_USER_INFO_HEADERSenvrionment variableAdditional context
This feature could be particularly useful for environments with multiple users who need to see or manage only their specific models. It would rely on the LLM API supporting this functionality.