feat(ai): integrate Perplexity adapter#77
Merged
ralyodio merged 1 commit intoMay 13, 2026
Conversation
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.
Summary
llama-3.1-sonar-*default to the current Sonar model familyopts.extraThis implements another AI provider adapter for #6.
Notes
Perplexity's current docs describe Sonar as OpenAI Chat Completions compatible, with
https://api.perplexity.aias the base URL and canonicalPOST /v1/sonarfor direct API calls. The oldllama-3.1-sonar-*API model names were deprecated, so this adapter now defaults tosonar-proand includessonar,sonar-pro,sonar-reasoning-pro, andsonar-deep-research.Validation
git diff --checkcorepack pnpm exec vitest run packages/ai/perplexity/src/index.test.tscorepack pnpm exec tsc -p packages/ai/perplexity/tsconfig.json --noEmitAs with #76, the repo's full workspace install is currently blocked by the unrelated
packages/dns/azuredependency on missing workspace package@sh1pt/core; I validated this package with root dev tooling and a local link topackages/core.