mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #9918] [MERGED] feat: Add X-OpenWebUI when forwarding to ollama servers #61294
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/9918
Author: @df-cgdm
Created: 2/13/2025
Status: ✅ Merged
Merged: 2/24/2025
Merged by: @tjbck
Base:
dev← Head:main📝 Commits (4)
4d667e4Merge pull request #9480 from open-webui/deve4d7d41Merge pull request #9889 from open-webui/dev6d62e71Add x-Open-Webui headers for ollama + more for openai0606256black formatting📊 Changes
5 files changed (+175 additions, -33 deletions)
View changed files
📝
backend/open_webui/main.py(+2 -2)📝
backend/open_webui/routers/ollama.py(+130 -16)📝
backend/open_webui/routers/openai.py(+35 -8)📝
backend/open_webui/utils/chat.py(+2 -2)📝
backend/open_webui/utils/models.py(+6 -5)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
When ENABLE_FORWARD_USER_INFO_HEADERS is True normally X-OpenWebUI-xxx headers are add to the forwarded request but this was only for POST openai request. But the headers weren't send for both GET on openai and all ollama requests
Added
Documentation Update
See https://github.com/open-webui/docs/pull/401
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.