Skip to content

perplexityai/perplexity-platform

v0.3.0

Skills for building on the Perplexity API Platform (Agent API, Search API, Embeddings).

migrate-sonar-to-agent-api

Migrate code from Perplexity's Sonar API (chat completions) to the Agent API (/v1/agent, responses.create). Maps endpoints, request params, model slugs (sonar, sonar-pro, sonar-reasoning, sonar-deep-research), response parsing, streaming, and citations. Use when migrating from Sonar, moving chat completions to the Agent API, replacing deprecated sonar-pro or sonar-reasoning models, or fixing 400 unknown-field errors and missing citations after a migration attempt.

Read SKILL.md at the source

Pinned to revision 1f1594c4250b, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.