mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #2211] [MERGED] chore: add HTTP-Referer and X-Title headers for Open WebUI #43976
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/2211
Author: @arsaboo
Created: 5/12/2024
Status: ✅ Merged
Merged: 5/13/2024
Merged by: @tjbck
Base:
dev← Head:header📝 Commits (9)
b8d7fdfMerge pull request #1965 from open-webui/dev9f2b846Merge pull request #2101 from open-webui/dev61ffbf5Merge pull request #2114 from open-webui/dev78c2f16Merge pull request #2115 from open-webui/dev943c49aMerge pull request #2116 from open-webui/dev734e62bMerge pull request #2117 from open-webui/dev90503beMerge pull request #2118 from open-webui/dev6671e5fchore: add HTTP-Referer and X-Title headers for Open WebUIbd82334chore: add additional headers only for Openrouter📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
backend/apps/openai/main.py(+3 -1)📄 Description
Pull Request Checklist
devbranch.Description
Added
X-TitleandHTTP-Refererin the header to capture the information in the providers' dashboards such as Openrouter. Right now, this is how it appears:Changelog Entry
Added
Fixed
Changed
X-TitleandHTTP-Refererin the OpenAI request headerRemoved
Security
Breaking Changes
Additional Information
[Insert any additional context, notes, or explanations for the changes]
[Reference any related issues, commits, or other relevant information]
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.