Packages

@ai-sdk/perplexity

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

Upgrading @ai-sdk/perplexity From 2.0.28 to 2.1.8

25 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.0.28Latest5.0.37
  1. 2.0.28yours
  2. 16 releases
  3. 2.1.0breaking
  4. 7 releases
  5. 2.1.8target
1
change to make
0
advisories fixed
1
new
4
fixes

Before you upgrade

Tick each one off as you go
  • Breaking2.1.0

Release by release

  1. 2.1.7 – 2.1.82 releases, nothing new or fixed in the notes

  2. 2.1.6

    3 Nov 20261 fix
    • Fixed

      Honor toolChoice: 'none' by omitting function and native tools and disabling preset tool calls with max_tool_calls: 0.

  3. 2.1.5nothing new or fixed in the note

  4. 2.1.4

    21 Oct 20261 fix
    • Fixed

      Defer validation schema construction until first use to reduce provider import time.

  5. 2.1.3

    7 Oct 20261 new
    • New

      Add the X-Pplx-Integration attribution header to Perplexity API requests.

  6. 2.1.1 – 2.1.22 releases, nothing new or fixed in the notes

  7. 2.1.0

    Migration needed27 Sep 2026
    • 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.

  8. 2.0.35 – 2.0.4510 releases, nothing new or fixed in the notes

24 internal lines (docs, tests, tooling) left out.

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.