mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #6034] Add Option to Forward User Information to External OpenAI-Compatible APIs #14213
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 @DucNgn on GitHub (Oct 8, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6034
Feature Request: Forward User Information to OpenAI-Compatible API
Current Behavior
The Open-AI Adapter in OpenWebUI currently only passes user information (name, email, role) to
pipelinesmodels.Proposed Feature
Add an option to forward user information to the external OpenAI-compatible API URL, either as part of the payload or in the headers. This feature would be beneficial when integrating with OpenAI-compatible APIs that can make use of user-specific data.
Implementation Details
I am willing to work on this feature if the community approves.
Questions
Related Code
https://github.com/open-webui/open-webui/blob/main/backend/open_webui/apps/openai/main.py#L399-L405