Feat/web-search perplexity exa#1350
Merged
Merged
Conversation
Comment on lines
+354
to
+357
| headers: { | ||
| Authorization: `Bearer ${apiKey}`, | ||
| "Content-Type": "application/json", | ||
| }, |
Comment on lines
+443
to
+446
| headers: { | ||
| "x-api-key": apiKey, | ||
| "Content-Type": "application/json", | ||
| }, |
f6a19b7 to
5f14995
Compare
Owner
|
Thanks @dacec354 — clean additive shape, default Two follow-ups I'll handle silently:
Nothing for you to fix on this PR. Looking forward to more. |
3 tasks
esengine
added a commit
that referenced
this pull request
May 20, 2026
…ents (#1366) Two follow-ups to #1350: 1. Perplexity / Exa landed without unit tests, while tavily has 5 covering missing-key / 401 / 429 / parse-error / body shape. Mirror that pattern so a fetch-shape change in either backend can't regress silently. Also add a formatSearchResults case for the new "answer + sources" dual-section branch. 2. Drop the `// ── Perplexity ──` / `// ── Exa ──` / `// ── API-key engines ──` section-banner separators — CLAUDE.md bans them; group by export instead. Co-authored-by: reasonix <reasonix@deepseek.com>
ChasLui
pushed a commit
to ChasLui/DeepSeek-Reasonix
that referenced
this pull request
May 23, 2026
* feat: add Perplexity and Exa as web_search engines * fix: biome lint errors and update public API snapshot
ChasLui
pushed a commit
to ChasLui/DeepSeek-Reasonix
that referenced
this pull request
May 23, 2026
…ents (esengine#1366) Two follow-ups to esengine#1350: 1. Perplexity / Exa landed without unit tests, while tavily has 5 covering missing-key / 401 / 429 / parse-error / body shape. Mirror that pattern so a fetch-shape change in either backend can't regress silently. Also add a formatSearchResults case for the new "answer + sources" dual-section branch. 2. Drop the `// ── Perplexity ──` / `// ── Exa ──` / `// ── API-key engines ──` section-banner separators — CLAUDE.md bans them; group by export instead. Co-authored-by: reasonix <reasonix@deepseek.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add Perplexity and Exa as new
web_searchbackends alongside existing mojeek/searxng/metaso/tavily, with inline API key configuration via/search-engine <name> <key>.Why
Perplexity and Exa are "AI-native" search providers — they return a direct synthesis answer with citations rather than just a link list. This gives the model an
answer:section (prepended before the source list) that it can use directly, skipping the need to synthesize results itself.Perplexity:
api.perplexity.ai/chat/completions— modelsonarExa:
api.exa.ai/answer— free 1000 req/moTavily was already implemented; this PR rounds out the AI-native tier.
What changed
src/config.tsperplexityApiKey/exaApiKeyconfig fields +loadPerplexityApiKey()/loadExaApiKey()src/tools/web.tssearchPerplexity()/searchExa()functions;webSearchOptions.engineunion extended;formatSearchResults()detects AI answer and outputsanswer:+sources:dual-section formatsrc/i18n/EN.tssrc/i18n/zh-CN.tssrc/i18n/types.tssrc/index.tssrc/cli/ui/slash/commands.tsargCompleter,argsHint,summaryinclude all 6 enginessrc/cli/ui/slash/handlers/web-search-engine.ts/search-engine <name> <key>); rejects switch when key missing with guidance; no duplicate messagesUX
How to verify
tsc --noEmitpassesPERPLEXITY_API_KEYorEXA_API_KEY/search-engine perplexity— should switch cleanly/search-engine exa— same/search-engine exashould show the numbered guidance instead of switching/search-enginetab completion shows all 6 enginesChecklist
npm run verifypasses locally (lint + typecheck + tests + comment-policy gate)Co-Authored-By: Claudetrailer in commitsCHANGELOG.md— release notes are maintainer-written at release time