Packages

@ai-sdk/gateway

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

Your version

4.0.44

7 Aug 2026Where it was published

4.0.152 is the newest release of 4.x.

In short

2 fixed

Release note

The section about @ai-sdk/gateway of a note shared by several packages.

Patch Changes

  • Feat (provider/gateway): support the async video operation flow (doStart/doStatus) on the v4 video model

  • Fix (ai/gateway): make retried doStart calls idempotent

    generateVideo retries doStart, which creates a billable generation, so a
    retry after a lost response could start a second one. It now mints one
    idempotency token per logical start — outside the retry closure — and forwards it
    as an idempotency-key header, so a provider that deduplicates (the Vercel AI
    Gateway does) sees the same key on every attempt. GatewayVideoModel simply
    forwards the caller's headers rather than inferring retry identity from an
    options object, which would collide across unrelated calls.

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.