Packages

@ai-sdk/perplexity

5.0.37 · 20 Nov 2026Apache-2.01.9M / weekRepositoryHomepagenpmAtom feed

Your version

2.1.0

27 Sep 2026Where it was published

2.1.8 is the newest release of 2.x.

In short

1 breaking

  • 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. Agent API stream events with null fields 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. Agent API stream events with null fields 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.