[PR #24267] [CLOSED] Add Perplexity as web search engine #98606

Closed
opened 2026-05-16 01:24:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24267
Author: @jliounis
Created: 4/30/2026
Status: Closed

Base: mainHead: add-perplexity-search-engine


📝 Commits (1)

  • 9fc6cc1 Add 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-Integration attribution header to outgoing requests from the existing Perplexity web search integrations (perplexity.py chat-completions citation search and perplexity_search.py direct Search API). The header follows the standard slug/version pattern (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.VERSION constant so it stays in sync with the package automatically.

Changes

  • backend/open_webui/retrieval/web/perplexity.py: import VERSION, set X-Pplx-Integration: open-webui/<VERSION> on the chat-completions request.
  • backend/open_webui/retrieval/web/perplexity_search.py: import VERSION, set the same header on the Search API request (added before the optional user-info merge so it survives any downstream header munging).

Testing

  • Verified both modules parse cleanly (ast.parse).
  • No new dependencies; no config or schema changes; no UI surface touched.
  • git diff --stat shows 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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/24267 **Author:** [@jliounis](https://github.com/jliounis) **Created:** 4/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-perplexity-search-engine` --- ### 📝 Commits (1) - [`9fc6cc1`](https://github.com/open-webui/open-webui/commit/9fc6cc101e38d6ca1efacfb6d3aec552e987d9be) Add X-Pplx-Integration attribution header to Perplexity web search ### 📊 Changes **2 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/retrieval/web/perplexity.py` (+2 -0) 📝 `backend/open_webui/retrieval/web/perplexity_search.py` (+2 -0) </details> ### 📄 Description ## Summary Adds the `X-Pplx-Integration` attribution header to outgoing requests from the existing Perplexity web search integrations (`perplexity.py` chat-completions citation search and `perplexity_search.py` direct Search API). The header follows the standard `slug/version` pattern (`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.VERSION` constant so it stays in sync with the package automatically. ## Changes - `backend/open_webui/retrieval/web/perplexity.py`: import `VERSION`, set `X-Pplx-Integration: open-webui/<VERSION>` on the chat-completions request. - `backend/open_webui/retrieval/web/perplexity_search.py`: import `VERSION`, set the same header on the Search API request (added before the optional user-info merge so it survives any downstream header munging). ## Testing - Verified both modules parse cleanly (`ast.parse`). - No new dependencies; no config or schema changes; no UI surface touched. - `git diff --stat` shows 2 files changed, 4 insertions(+). Signed-off-by: James Liounis <james.liounis@perplexity.ai> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-16 01:24:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#98606