ReleaseCloudflare (Workers AI)Cloudflare (Workers AI)published Mar 19, 2026seen Jun 26

cloudflare/ai workers-ai-provider@3.1.3

cloudflare/ai

Open original ↗

Captured source

source ↗
published Mar 19, 2026seen Jun 26captured 3whttp 200method plain

workers-ai-provider@3.1.3

Repository: cloudflare/ai

Tag: workers-ai-provider@3.1.3

Published: 2026-03-19T07:17:58Z

Prerelease: no

Release notes:

Patch Changes

  • #429 `ae24f06` Thanks @michaeldwan! - Pass tool_choice through to binding.run() so tool selection mode (auto, required, none) is respected when using Workers AI with the binding API
  • #410 `bc2eba3` Thanks @vaibhavshn! - fix: route REST API requests through AI Gateway when the gateway option is provided in createRun()
  • #446 `3c35051` Thanks @threepointone! - Remove tool_call_id sanitization that truncated IDs to 9 alphanumeric chars, which caused all tool call IDs to collide after round-trip
  • #444 `b1c742b` Thanks @mchenco! - Add sessionAffinity setting to send x-session-affinity header for prefix-cache optimization. Also forward extraHeaders in the REST API path instead of discarding them.