Skip to content

build(deps): bump workers-ai-provider from 2.0.0 to 3.3.0#727

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/workers-ai-provider-3.3.0
Closed

build(deps): bump workers-ai-provider from 2.0.0 to 3.3.0#727
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/workers-ai-provider-3.3.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 30, 2026

Copy link
Copy Markdown
Contributor

Bumps workers-ai-provider from 2.0.0 to 3.3.0.

Release notes

Sourced from workers-ai-provider's releases.

workers-ai-provider@3.3.0

Minor Changes

  • #590 fe0d182 Thanks @​threepointone! - The AI Gateway delegate gains cross-vendor server-side fallback (fallback: { mode: "server" }) — multiple vendors in one gateway run, with the winner selected via cf-aig-step.

    The gateway delegate now reaches header parity with the run path: the gateway path forwards cacheKey, eventId, requestTimeoutMs, and retries from the gateway options as cf-aig-* headers, and DelegateCallOptions gains two new universal-endpoint controls — byokAlias (cf-aig-byok-alias, select a stored BYOK key by alias) and zdr (cf-aig-zdr, per-request Zero Data Retention override for Unified Billing, applied on both transports).

    Internally, the provider registry, cf-aig-* header building, resumable-stream engine, and Workers AI SSE helpers are now shared across the Cloudflare AI packages (bundled inline — no new dependency for you to install).

  • #593 1c6afd0 Thanks @​threepointone! - Native Workers AI failures are now surfaced as AI SDK APICallErrors so the AI SDK's built-in retry (maxRetries) can engage on transient errors.

    Previously the binding path (env.AI.run) threw plain Errors and the REST path threw a generic Error, so the AI SDK never retried them — most notably the common "out of capacity" failure (internal code 3040, HTTP 429) and other 5xx blips just failed the call outright.

    • Binding path: errors thrown by env.AI.run are normalized into an APICallError across every Workers AI model — chat, embedding, image, speech, transcription, and reranking. The Workers AI internal error code is parsed from the message (or a numeric code property) and mapped to the documented HTTP status (e.g. 3040/3036429, 3007/3008408, 5007400), and APICallError derives isRetryable from that status (retryable on 408/409/429/5xx). Unrecognized errors get no status and stay non-retryable (prior behavior). AbortError/TimeoutError cancellations propagate unchanged.
    • REST path: non-OK responses now throw an APICallError carrying the real statusCode, response headers (so Retry-After is honored), and body, instead of a generic Error. The error message keeps the same Workers AI API error (<status> <statusText>): <body> shape.

    This means transient capacity/5xx errors are now automatically retried with exponential backoff by generateText/streamText (default 2 retries; tune via maxRetries). Set maxRetries: 0 to opt out.

workers-ai-provider@3.2.1

Patch Changes

workers-ai-provider@3.2.0

... (truncated)

Commits
  • 4911155 Merge pull request #591 from cloudflare/changeset-release/main
  • ec1d54b Version Packages
  • 266ea75 Merge pull request #595 from cloudflare/feat/tanstack-ai-retryable-errors
  • d8049db Merge branch 'main' into feat/tanstack-ai-retryable-errors
  • cc9fbf2 ci: retry flaky changeset version up to 5 times in release workflow
  • 6f9b742 Merge pull request #594 from cloudflare/feat/tanstack-ai-retryable-errors
  • 12fb307 feat(tanstack-ai): retry transient Workers AI failures and normalize errors
  • e6efd05 Merge pull request #593 from cloudflare/fix/workers-ai-retryable-errors
  • 1c6afd0 fix(workers-ai-provider): surface failures as retryable APICallErrors
  • 15e3855 udpate deps
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for workers-ai-provider since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 30, 2026
@mergify

mergify Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/workers-ai-provider-3.3.0 branch 2 times, most recently from 09ef8d2 to 7c3f99d Compare July 1, 2026 01:15
Bumps [workers-ai-provider](https://github.com/cloudflare/ai) from 2.0.0 to 3.3.0.
- [Release notes](https://github.com/cloudflare/ai/releases)
- [Commits](https://github.com/cloudflare/ai/compare/workers-ai-provider@2.0.0...workers-ai-provider@3.3.0)

---
updated-dependencies:
- dependency-name: workers-ai-provider
  dependency-version: 3.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/workers-ai-provider-3.3.0 branch from 7c3f99d to 2dbdf5b Compare July 2, 2026 01:07
@dependabot @github

dependabot Bot commented on behalf of github Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #739.

@dependabot dependabot Bot closed this Jul 3, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/workers-ai-provider-3.3.0 branch July 3, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants