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.
🔄 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>
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/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.