Target branch: Verify that the pull request targets the dev branch. Not targeting the dev branch may lead to immediate closure of the PR.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: If necessary, update relevant documentation Open WebUI Docs like environment variables, the tutorials, or other documentation sources.
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
Agentic AI Code:: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review and manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Title Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
feat: Introduces a new feature or enhancement to the codebase
Changelog Entry
Description
Adds LiteLLM WEB SEARCH to Open WebUI
Conditionally forwards user headers like email and so forth if globally enabled using the env var - this is the only provider that has this now - because LiteLLM SUPPORTS COST TRACKING for Web Search requests - to be able to track the costs, you need to give LiteLLM the Open WebUI user information of course.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/18608
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 10/24/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `add-litellm-web-loader`
---
### 📝 Commits (4)
- [`e343c1f`](https://github.com/open-webui/open-webui/commit/e343c1f617358fcd7a59ccc5711d26c64fb1a3da) Add LITELLM web search configuration options
- [`8486366`](https://github.com/open-webui/open-webui/commit/8486366251ef1944c0fd80867aabc31580e6221c) Add search_litellm function for querying LiteLLM
- [`310aab1`](https://github.com/open-webui/open-webui/commit/310aab11b997fa17df96662bc18244f9e141ca71) Add user and chat_id parameters to search_web function
- [`c091cae`](https://github.com/open-webui/open-webui/commit/c091cae305d92f4003bf7a521019e53c9fd15d0e) Update main.py
### 📊 Changes
**4 files changed** (+101 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/config.py` (+12 -0)
📝 `backend/open_webui/main.py` (+4 -0)
➕ `backend/open_webui/retrieval/web/litellm.py` (+64 -0)
📝 `backend/open_webui/routers/retrieval.py` (+21 -1)
</details>
### 📄 Description
# Pull Request Checklist
- [X] **Target branch:** Verify that the pull request targets the `dev` branch. Not targeting the `dev` branch may lead to immediate closure of the PR.
- [X] **Description:** Provide a concise description of the changes made in this pull request.
- [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [X] **Documentation:** If necessary, update relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs) like environment variables, the tutorials, or other documentation sources.
- [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [X] **Testing:** Perform manual tests to verify the implemented fix/feature works as intended AND does not break any other functionality. Take this as an opportunity to make screenshots of the feature/fix and include it in the PR description.
- [X] **Agentic AI Code:**: Confirm this Pull Request is **not written by any AI Agent** or has at least gone through additional human review **and** manual testing. If any AI Agent is the co-author of this PR, it may lead to immediate closure of the PR.
- [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [X] **Title Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following:
- **feat**: Introduces a new feature or enhancement to the codebase
# Changelog Entry
### Description
- Adds LiteLLM WEB SEARCH to Open WebUI
- **Conditionally forwards user headers like email and so forth if globally enabled using the env var** - this is the only provider that has this now - **because LiteLLM SUPPORTS COST TRACKING for Web Search requests** - to be able to track the costs, you need to give LiteLLM the Open WebUI user information of course.
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18608
Author: @Classic298
Created: 10/24/2025
Status: ❌ Closed
Base:
dev← Head:add-litellm-web-loader📝 Commits (4)
e343c1fAdd LITELLM web search configuration options8486366Add search_litellm function for querying LiteLLM310aab1Add user and chat_id parameters to search_web functionc091caeUpdate main.py📊 Changes
4 files changed (+101 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+12 -0)📝
backend/open_webui/main.py(+4 -0)➕
backend/open_webui/retrieval/web/litellm.py(+64 -0)📝
backend/open_webui/routers/retrieval.py(+21 -1)📄 Description
Pull Request Checklist
devbranch. Not targeting thedevbranch may lead to immediate closure of the PR.Changelog Entry
Description
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.