Packages

@ai-sdk/perplexity

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

Upgrading @ai-sdk/perplexity From 4.0.52 to 5.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.0.52Latest5.0.37
  1. 4.0.52yours
  2. 5.0.0target
1
change to make
0
advisories fixed
0
new
4
fixes

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0

Release by release

  1. 5.0.0

    Migration needed26 Sep 20264 fixes
    • Breaking

      Migrate language generation from the Sonar Chat Completions API 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.

    • Fixed

      Recover missing text from Agent API terminal events and output items, including incomplete responses, without repeating text already received as deltas. Track each message content part separately.

    • Fixed

      Accept native Agent API tool traces such as finance results without validating them as web search results. Preserve these traces in raw responses and stream chunks.

    • Fixed

      Preserve URL citation annotations as sources in Agent API streams, including completed and incomplete terminal responses.

    • Fixed

      Emit each Agent API source URL once while preserving search result IDs for citation correlation when a URL is fetched or annotated before it appears in search results.

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.