@ai-sdk/perplexity
5.0.37 · 20 Nov 2026Apache-2.01.9M / weekRepositoryHomepagenpmAtom feed
Upgrading @ai-sdk/perplexity From 3.0.20 to 3.1.13
57 releases in betweennotes for 56
Reading releases, release notes and advisories…
- 1+
- change to make
- 0
- advisories fixed
- 3+
- new
- 10+
- fixes
Counted from 56 of 57 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking3.1.0
Release by release
3.1.11 – 3.1.133 releases, nothing new or fixed in the notes
- Fixed
Honor
toolChoice: 'none'by omitting function and native tools and disabling preset tool calls withmax_tool_calls: 0.
- Fixed
3.1.9nothing new or fixed in the note
- Fixed
Defer validation schema construction until first use to reduce provider import time.
- Fixed
3.1.4 – 3.1.74 releases, nothing new or fixed in the notes
- New
Add the
X-Pplx-Integrationattribution header to Perplexity API requests.
- New
3.1.1 – 3.1.22 releases, nothing new or fixed in the notes
- 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.
- Breaking
52 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.