Packages

@ai-sdk/gateway

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

Your version

2.0.182

17 Nov 2026Where it was published

2.0.183 is the newest release of 2.x.

In short

1 fixed1 internal

Release note

Patch Changes

  • Map AI Gateway access_policy_denied error responses (HTTP 403) to the new GatewayAccessPolicyDeniedError instead of GatewayInternalServerError. Use GatewayAccessPolicyDeniedError.isInstance(error) to tell an access policy denial from other 403 errors. When the response includes them, the error exposes the denying policy IDs (policyIds) and the models and providers the policies removed (removedModels, removedProviders).

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.