@ai-sdk/gateway
4.0.150 · 18 Nov 2026Apache-2.047.3M / weekRepositoryHomepagenpmAtom feed
4.0.152 is the newest release of 4.x.
In short
1 breaking2 deprecated1 new1 fixed4 internal
- Breaking
Fix the result type and schema to match the response the gateway returns:
search_id, results withurl, nullabletitleandpublish_date, andexcerpts: string, plus optionalwarnings,usage, andsession_id. ThesearchId,excerpt,publishDate, andrelevanceScorefields were never populated and are removed; update code that reads them.validateUIMessagesnow accepts Parallel Search results. - Deprecated
Accept the
turbo,fast,basic, andadvancedmodes. Tool calls that use one of these modes no longer fail client-side input validation.one-shotandagenticare deprecated but still accepted. - Deprecated
Add the
locationand top-levelmaxCharsTotaloptions, plusfetchPolicy.timeoutSecondsandfetchPolicy.disableCacheFallback.excerpts.maxCharsTotalis deprecated in favor ofmaxCharsTotal.
Release note
Patch Changes
Add Voxtral 3 offline transcription and speech model IDs. Support transcription context phrases and detected language, update timestamp validation for Voxtral 3, and expose speech expressiveness and pronunciation hints.
provider/gateway: Update
parallelSearchfor Parallel's GA Search APIAccept the
turbo,fast,basic, andadvancedmodes. Tool calls that use one of these modes no longer fail client-side input validation.one-shotandagenticare deprecated but still accepted.Add the
locationand top-levelmaxCharsTotaloptions, plusfetchPolicy.timeoutSecondsandfetchPolicy.disableCacheFallback.excerpts.maxCharsTotalis deprecated in favor ofmaxCharsTotal.Fix the result type and schema to match the response the gateway returns:
search_id, results withurl, nullabletitleandpublish_date, andexcerpts: string, plus optionalwarnings,usage, andsession_id. ThesearchId,excerpt,publishDate, andrelevanceScorefields were never populated and are removed; update code that reads them.validateUIMessagesnow accepts Parallel 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.