[PR #5210] [MERGED] feat(agents): Add Perplexity Search API as web search provider #5351

Closed
opened 2026-06-05 15:21:04 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5210
Author: @kesku
Created: 3/15/2026
Status: Merged
Merged: 3/17/2026
Merged by: @timothycarambat

Base: masterHead: feat/perplexity-search-provider


📝 Commits (4)

  • 13533e0 feat(agents): Add Perplexity Search API as web search provider
  • b9dee10 chore: replace docs.perplexity.ai with console.perplexity.ai
  • a1789ae chore: replace docs.perplexity.ai with console.perplexity.ai
  • 4362025 Merge branch 'master' into feat/perplexity-search-provider

📊 Changes

8 files changed (+137 additions, -0 deletions)

View changed files

📝 docker/.env.example (+3 -0)
📝 frontend/src/pages/Admin/Agents/WebSearchSelection/SearchProviderOptions/index.jsx (+35 -0)
frontend/src/pages/Admin/Agents/WebSearchSelection/icons/perplexity.png (+0 -0)
📝 frontend/src/pages/Admin/Agents/WebSearchSelection/index.jsx (+9 -0)
📝 server/.env.example (+3 -0)
📝 server/models/systemSettings.js (+2 -0)
📝 server/utils/agents/aibitat/plugins/web-browsing.js (+81 -0)
📝 server/utils/helpers/updateENV.js (+4 -0)

📄 Description

Adds Perplexity as a search provider for the agent web-browsing plugin.

Uses the Perplexity Search API (POST /search) which returns raw ranked web results — distinct from the existing Perplexity LLM integration which uses chat completions.

Configuration

Set AGENT_PERPLEXITY_API_KEY in your .env file and select "Perplexity Search" as the agent search provider in settings.

Changes

  • web-browsing.js: Add perplexity-search provider with _perplexitySearch() implementation
  • systemSettings.js: Add to provider allowlist and expose API key status
  • updateENV.js: Add AgentPerplexityApiKeyAGENT_PERPLEXITY_API_KEY mapping
  • server/.env.example: Add AGENT_PERPLEXITY_API_KEY
  • docker/.env.example: Add AGENT_PERPLEXITY_API_KEY
  • Frontend: Add provider option with icon and API key input to search provider settings UI

🔄 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/Mintplex-Labs/anything-llm/pull/5210 **Author:** [@kesku](https://github.com/kesku) **Created:** 3/15/2026 **Status:** ✅ Merged **Merged:** 3/17/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `feat/perplexity-search-provider` --- ### 📝 Commits (4) - [`13533e0`](https://github.com/Mintplex-Labs/anything-llm/commit/13533e012f1101e34a22b433c7fbc4e94a64b563) feat(agents): Add Perplexity Search API as web search provider - [`b9dee10`](https://github.com/Mintplex-Labs/anything-llm/commit/b9dee1026e136815cd22ec3183e1b31ca127d912) chore: replace docs.perplexity.ai with console.perplexity.ai - [`a1789ae`](https://github.com/Mintplex-Labs/anything-llm/commit/a1789ae8e4485bb56eb4929fed7b97b2016a160a) chore: replace docs.perplexity.ai with console.perplexity.ai - [`4362025`](https://github.com/Mintplex-Labs/anything-llm/commit/43620255654c457327dac82ff457038a501f59af) Merge branch 'master' into feat/perplexity-search-provider ### 📊 Changes **8 files changed** (+137 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docker/.env.example` (+3 -0) 📝 `frontend/src/pages/Admin/Agents/WebSearchSelection/SearchProviderOptions/index.jsx` (+35 -0) ➕ `frontend/src/pages/Admin/Agents/WebSearchSelection/icons/perplexity.png` (+0 -0) 📝 `frontend/src/pages/Admin/Agents/WebSearchSelection/index.jsx` (+9 -0) 📝 `server/.env.example` (+3 -0) 📝 `server/models/systemSettings.js` (+2 -0) 📝 `server/utils/agents/aibitat/plugins/web-browsing.js` (+81 -0) 📝 `server/utils/helpers/updateENV.js` (+4 -0) </details> ### 📄 Description Adds Perplexity as a search provider for the agent web-browsing plugin. Uses the [Perplexity Search API](https://docs.perplexity.ai/api-reference/search-post) (`POST /search`) which returns raw ranked web results — distinct from the existing Perplexity LLM integration which uses chat completions. ### Configuration Set `AGENT_PERPLEXITY_API_KEY` in your `.env` file and select "Perplexity Search" as the agent search provider in settings. ### Changes - `web-browsing.js`: Add `perplexity-search` provider with `_perplexitySearch()` implementation - `systemSettings.js`: Add to provider allowlist and expose API key status - `updateENV.js`: Add `AgentPerplexityApiKey` → `AGENT_PERPLEXITY_API_KEY` mapping - `server/.env.example`: Add `AGENT_PERPLEXITY_API_KEY` - `docker/.env.example`: Add `AGENT_PERPLEXITY_API_KEY` - Frontend: Add provider option with icon and API key input to search provider settings UI --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:04 -04:00
yindo closed this issue 2026-06-05 15:21:04 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5351