Packages

@ai-sdk/gateway

4.0.150 · 18 Nov 2026Apache-2.047.3M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.172

23 Oct 2026Where it was published

2.0.183 is the newest release of 2.x.

In short

1 removed2 deprecated1 new1 fixed

  • Removed

    Fix the result type and schema to match the response the gateway returns: search_id, results with url, nullable title and publish_date, and excerpts: string, plus optional warnings, usage, and session_id. The searchId, excerpt, publishDate, and relevanceScore fields were never populated and are removed; update code that reads them. validateUIMessages now accepts Parallel Search results.

  • Deprecated

    Accept the turbo, fast, basic, and advanced modes. Tool calls that use one of these modes no longer fail client-side input validation. one-shot and agentic are deprecated but still accepted.

  • Deprecated

    Add the location and top-level maxCharsTotal options, plus fetchPolicy.timeoutSeconds and fetchPolicy.disableCacheFallback. excerpts.maxCharsTotal is deprecated in favor of maxCharsTotal.

Release note

Patch Changes

  • provider/moonshotai: Add kimi-k3.1-pro and kimi-k3.1-pro-highspeed

  • provider/gateway: Update parallelSearch for Parallel's GA Search API

    • Accept the turbo, fast, basic, and advanced modes. Tool calls that use one of these modes no longer fail client-side input validation. one-shot and agentic are deprecated but still accepted.

    • Add the location and top-level maxCharsTotal options, plus fetchPolicy.timeoutSeconds and fetchPolicy.disableCacheFallback. excerpts.maxCharsTotal is deprecated in favor of maxCharsTotal.

    • Fix the result type and schema to match the response the gateway returns: search_id, results with url, nullable title and publish_date, and excerpts: string, plus optional warnings, usage, and session_id. The searchId, excerpt, publishDate, and relevanceScore fields were never populated and are removed; update code that reads them. validateUIMessages now 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.