mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #19147] [MERGED] feat: Add custom API endpoint and user info headers for Perplexity Search #48155
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/19147
Author: @Classic298
Created: 11/12/2025
Status: ✅ Merged
Merged: 11/13/2025
Merged by: @tjbck
Base:
dev← Head:perplexity-search-compatible-litellm📝 Commits (1)
6f676abfeat: Add custom API endpoint and user info headers for Perplexity Search (#31)📊 Changes
5 files changed (+49 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/main.py(+2 -0)📝
backend/open_webui/retrieval/web/perplexity_search.py(+13 -1)📝
backend/open_webui/routers/retrieval.py(+8 -0)📝
src/lib/components/admin/Settings/WebSearch.svelte(+20 -0)📄 Description
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
This PR adds support for configurable custom API endpoints and user info header forwarding for the Perplexity Search API integration. Users can now specify any custom API endpoint instead of being locked to the hardcoded default, and user information (name, ID, email, role) is automatically forwarded in request headers when available.
Added
Additional Information
Maintains full backward compatibility - existing deployments continue using https://api.perplexity.ai/search by default
Follows the same pattern as other configurable search engines (searxng, external, etc.)
User header forwarding is conditional and only activates when user context is available
Screenshots or Videos
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.