@ai-sdk/perplexity
5.0.37 · 20 Nov 2026Apache-2.01.9M / weekRepositoryHomepagenpmAtom feed
3.1.13 is the newest release of 3.x.
In short
1 breaking1 internal
- Breaking
Migrate language generation from the Sonar Chat Completions API (supported by Perplexity only until September 27, 2026) to the Agent API. Replace Sonar model IDs and provider options with Agent API presets, models, and tools. The new API changes request and response metadata, raw stream events, usage and cost data, and does not support Sonar PDF input or image and video results. Reasoning effort is configured through
providerOptions.perplexity.reasoning. Embeddings are unchanged. Agent API stream events withnullfields are accepted.
Release note
Minor Changes
- Breaking
Migrate language generation from the Sonar Chat Completions API (supported by Perplexity only until September 27, 2026) to the Agent API. Replace Sonar model IDs and provider options with Agent API presets, models, and tools. The new API changes request and response metadata, raw stream events, usage and cost data, and does not support Sonar PDF input or image and video results. Reasoning effort is configured through
providerOptions.perplexity.reasoning. Embeddings are unchanged. Agent API stream events withnullfields are accepted.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.