[PR #24832] [CLOSED] feat(retrieval): add X-Pplx-Integration attribution header to Perplexity search modules #131545

Closed
opened 2026-05-21 17:10:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/24832
Author: @jliounis
Created: 5/17/2026
Status: Closed

Base: devHead: feat/perplexity-attribution-header


📝 Commits (1)

  • aef5947 feat(retrieval): add Perplexity attribution header

📊 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

Pull Request Checklist

  • Linked Issue/Discussion: This PR re-submits the closed PR #24267 against the required dev base branch.
  • Target branch: The pull request targets the dev branch.
  • Description: This PR adds Perplexity attribution headers to the two Perplexity retrieval modules.
  • Changelog: A changelog entry is included below.
  • Documentation: Not applicable; this is a no-behavior-change outbound request header.
  • Dependencies: No new or updated dependencies.
  • Testing: Syntax and import verification commands are listed below.
  • No Unchecked AI Code: This small change has been reviewed for scope and matches the previous submission.
  • Self-Review: The diff is atomic, limited to two Perplexity retrieval modules, and rebased on dev.
  • Architecture: No architecture or setting changes.
  • Git Hygiene: The PR contains one logical commit with no unrelated changes.
  • Title Prefix: The PR title uses the feat prefix.

Changelog Entry

Description

  • Re-submits the Perplexity attribution header change from closed PR #24267 against the required dev base branch.

Added

  • Add X-Pplx-Integration: open-webui/<VERSION> to outgoing Perplexity requests from backend/open_webui/retrieval/web/perplexity.py.
  • Add X-Pplx-Integration: open-webui/<VERSION> to outgoing Perplexity Search API requests from backend/open_webui/retrieval/web/perplexity_search.py.

Changed

  • None.

Deprecated

  • None.

Removed

  • None.

Fixed

  • None.

Security

  • None.

Breaking Changes

  • None.

Additional Information

The header is set before optional user-info header merging in the Search API path so downstream header handling preserves it. This is a no-behavior-change attribution header only; request payloads, endpoints, and response handling are unchanged.

Verification run:

  • python -c "import ast; paths=['backend/open_webui/retrieval/web/perplexity.py','backend/open_webui/retrieval/web/perplexity_search.py']; [ast.parse(open(path, encoding='utf-8').read()) for path in paths]; print('ast parse ok')"
  • PYTHONPATH=backend /tmp/openwebui-venv/bin/python -c "from open_webui.env import VERSION; print(f'VERSION={VERSION}')"

DCO signoff:

Signed-off-by: James Liounis james.liounis@perplexity.ai

The CLA was already signed for the original submission.

Screenshots or Videos

  • Not applicable.

Contributor License Agreement


🤖 Generated by PSI
🧠 Agent used: codex


🔄 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/24832 **Author:** [@jliounis](https://github.com/jliounis) **Created:** 5/17/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/perplexity-attribution-header` --- ### 📝 Commits (1) - [`aef5947`](https://github.com/open-webui/open-webui/commit/aef59474b5a19a520b035c207e8a590034a5c2ae) feat(retrieval): add Perplexity attribution header ### 📊 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 # Pull Request Checklist - [x] **Linked Issue/Discussion:** This PR re-submits the closed PR #24267 against the required `dev` base branch. - [x] **Target branch:** The pull request targets the `dev` branch. - [x] **Description:** This PR adds Perplexity attribution headers to the two Perplexity retrieval modules. - [x] **Changelog:** A changelog entry is included below. - [x] **Documentation:** Not applicable; this is a no-behavior-change outbound request header. - [x] **Dependencies:** No new or updated dependencies. - [x] **Testing:** Syntax and import verification commands are listed below. - [x] **No Unchecked AI Code:** This small change has been reviewed for scope and matches the previous submission. - [x] **Self-Review:** The diff is atomic, limited to two Perplexity retrieval modules, and rebased on `dev`. - [x] **Architecture:** No architecture or setting changes. - [x] **Git Hygiene:** The PR contains one logical commit with no unrelated changes. - [x] **Title Prefix:** The PR title uses the `feat` prefix. # Changelog Entry ### Description - Re-submits the Perplexity attribution header change from closed PR #24267 against the required `dev` base branch. ### Added - Add `X-Pplx-Integration: open-webui/<VERSION>` to outgoing Perplexity requests from `backend/open_webui/retrieval/web/perplexity.py`. - Add `X-Pplx-Integration: open-webui/<VERSION>` to outgoing Perplexity Search API requests from `backend/open_webui/retrieval/web/perplexity_search.py`. ### Changed - None. ### Deprecated - None. ### Removed - None. ### Fixed - None. ### Security - None. ### Breaking Changes - None. --- ### Additional Information The header is set before optional user-info header merging in the Search API path so downstream header handling preserves it. This is a no-behavior-change attribution header only; request payloads, endpoints, and response handling are unchanged. Verification run: - `python -c "import ast; paths=['backend/open_webui/retrieval/web/perplexity.py','backend/open_webui/retrieval/web/perplexity_search.py']; [ast.parse(open(path, encoding='utf-8').read()) for path in paths]; print('ast parse ok')"` - `PYTHONPATH=backend /tmp/openwebui-venv/bin/python -c "from open_webui.env import VERSION; print(f'VERSION={VERSION}')"` DCO signoff: Signed-off-by: James Liounis <james.liounis@perplexity.ai> The CLA was already signed for the original submission. ### Screenshots or Videos - Not applicable. ### Contributor License Agreement - [x] 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. --- 🤖 _Generated by [PSI](https://www.notion.so/perplexity-ai/HowTo-PSI-Perplexity-Super-Intelligence-29c6172b229b80d3a8ece89a6cfb6ae6)_ 🧠 _Agent used: `codex`_ --- <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-21 17:10:45 -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#131545