mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[PR #24267] [CLOSED] Add Perplexity as web search engine #98606
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/24267
Author: @jliounis
Created: 4/30/2026
Status: ❌ Closed
Base:
main← Head:add-perplexity-search-engine📝 Commits (1)
9fc6cc1Add X-Pplx-Integration attribution header to Perplexity web search📊 Changes
2 files changed (+4 additions, -0 deletions)
View changed files
📝
backend/open_webui/retrieval/web/perplexity.py(+2 -0)📝
backend/open_webui/retrieval/web/perplexity_search.py(+2 -0)📄 Description
Summary
Adds the
X-Pplx-Integrationattribution header to outgoing requests from the existing Perplexity web search integrations (perplexity.pychat-completions citation search andperplexity_search.pydirect Search API). The header follows the standardslug/versionpattern (open-webui/<VERSION>) so Perplexity can attribute traffic to the Open WebUI integration for support, telemetry, and reliability work.This is a small, no-behavior-change patch: the HTTP call sites are untouched apart from one extra header field, and the version is sourced from the existing
open_webui.env.VERSIONconstant so it stays in sync with the package automatically.Changes
backend/open_webui/retrieval/web/perplexity.py: importVERSION, setX-Pplx-Integration: open-webui/<VERSION>on the chat-completions request.backend/open_webui/retrieval/web/perplexity_search.py: importVERSION, set the same header on the Search API request (added before the optional user-info merge so it survives any downstream header munging).Testing
ast.parse).git diff --statshows 2 files changed, 4 insertions(+).Signed-off-by: James Liounis james.liounis@perplexity.ai
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.