diff --git a/.changeset/ai-sdk-seven.md b/.changeset/ai-sdk-seven.md deleted file mode 100644 index 4c211b76c3..0000000000 --- a/.changeset/ai-sdk-seven.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"workers-ai-provider": major -"ai-gateway-provider": major ---- - -Add support for AI SDK 7 - -Bumps peer dependencies to require `ai@^7` and `@ai-sdk/provider@^4`. This is a breaking change for users on AI SDK 6, who should stay on the previous major version of these packages. diff --git a/.changeset/fresh-llamas-search.md b/.changeset/fresh-llamas-search.md deleted file mode 100644 index 2747c0c4a4..0000000000 --- a/.changeset/fresh-llamas-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"ai-search-provider": minor ---- - -Add a dedicated AI Search provider for Cloudflare's new AI Search `ai_search_namespaces` Workers binding. Bind a namespace, get an instance by name, then upload files to AI Search for indexing and search that indexed content with natural language or generate chat responses grounded in the retrieved context. `createAISearchNamespace({ binding }).get(instanceName)` returns an instance client exposing an AI SDK model (`chat()`), `search()`, and item helpers (`upload`/`uploadAndPoll`/`list`/`delete`/`get().info()`/`get().download()`); the namespace client also exposes `list()`. diff --git a/.changeset/quiet-pandas-point.md b/.changeset/quiet-pandas-point.md deleted file mode 100644 index 0cd0bc73d4..0000000000 --- a/.changeset/quiet-pandas-point.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"workers-ai-provider": patch ---- - -Docs: point AI Search users to the new dedicated `ai-search-provider` package for Cloudflare's new `ai_search` and `ai_search_namespaces` Workers bindings. `createAISearch` and `createAutoRAG` in this package continue to wrap the legacy `AutoRAG` binding, unchanged. diff --git a/packages/ai-gateway-provider/CHANGELOG.md b/packages/ai-gateway-provider/CHANGELOG.md index 32c397b6fb..063665fb54 100644 --- a/packages/ai-gateway-provider/CHANGELOG.md +++ b/packages/ai-gateway-provider/CHANGELOG.md @@ -1,5 +1,13 @@ # ai-gateway-provider +## 4.0.0 + +### Major Changes + +- [#601](https://github.com/cloudflare/ai/pull/601) [`7a6f8dd`](https://github.com/cloudflare/ai/commit/7a6f8ddac6c38483da023201303b53d10c266860) Thanks [@OskarLebuda](https://github.com/OskarLebuda)! - Add support for AI SDK 7 + + Bumps peer dependencies to require `ai@^7` and `@ai-sdk/provider@^4`. This is a breaking change for users on AI SDK 6, who should stay on the previous major version of these packages. + ## 3.2.0 ### Minor Changes @@ -8,24 +16,24 @@ building are now shared with the `workers-ai-provider` AI Gateway delegate (bundled inline — no new dependency), so the two stay in lockstep. - - `AiGatewayOptions` gains two 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). - - Cache controls now emit the current `cf-aig-cache-ttl` / `cf-aig-skip-cache` - header names instead of the upstream-deprecated `cf-cache-ttl` / `cf-skip-cache`. - - New opt-in **resumable streaming** on the binding/run path (**coming soon** — - not generally available yet while the AI Gateway resume backend rolls out; - treat as experimental): pass `resume` - (`{ binding: env.AI, gateway, onResumeExpired?, maxReconnects? }`) and a - streaming run that surfaces a `cf-aig-run-id` will transparently reconnect on a - transient mid-stream drop, reusing the same resumable-stream engine as the - `workers-ai-provider` delegate. No-op on the REST/API-key path and on - non-streaming calls. - - The misspelled `retries` option type is renamed `AiGatewayReties` → - `AiGatewayRetries`; the old name stays exported as a deprecated alias, so this - is non-breaking. - - Existing behavior is otherwise unchanged. + - `AiGatewayOptions` gains two 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). + - Cache controls now emit the current `cf-aig-cache-ttl` / `cf-aig-skip-cache` + header names instead of the upstream-deprecated `cf-cache-ttl` / `cf-skip-cache`. + - New opt-in **resumable streaming** on the binding/run path (**coming soon** — + not generally available yet while the AI Gateway resume backend rolls out; + treat as experimental): pass `resume` + (`{ binding: env.AI, gateway, onResumeExpired?, maxReconnects? }`) and a + streaming run that surfaces a `cf-aig-run-id` will transparently reconnect on a + transient mid-stream drop, reusing the same resumable-stream engine as the + `workers-ai-provider` delegate. No-op on the REST/API-key path and on + non-streaming calls. + - The misspelled `retries` option type is renamed `AiGatewayReties` → + `AiGatewayRetries`; the old name stays exported as a deprecated alias, so this + is non-breaking. + + Existing behavior is otherwise unchanged. ## 3.1.3 @@ -41,11 +49,11 @@ - [#457](https://github.com/cloudflare/ai/pull/457) [`cc94a06`](https://github.com/cloudflare/ai/commit/cc94a06ca85603e473f41cc12ed83f53cbe9e136) Thanks [@threepointone](https://github.com/threepointone)! - Fix request cancellation by propagating `abortSignal` to outbound network calls. - **ai-gateway-provider**: Pass `abortSignal` to the `fetch` call (API path) and to `binding.run()` (binding path) so that cancelled requests are properly aborted. + **ai-gateway-provider**: Pass `abortSignal` to the `fetch` call (API path) and to `binding.run()` (binding path) so that cancelled requests are properly aborted. - **workers-ai-provider**: Pass `abortSignal` to `binding.run()` for chat, embedding, and image models, matching the existing behavior in transcription, speech, and reranking models. + **workers-ai-provider**: Pass `abortSignal` to `binding.run()` for chat, embedding, and image models, matching the existing behavior in transcription, speech, and reranking models. - **@cloudflare/tanstack-ai**: Pass `signal` through to `binding.run()` in both `createGatewayFetch` (AI Gateway binding path) and `createWorkersAiBindingFetch` (Workers AI binding path). + **@cloudflare/tanstack-ai**: Pass `signal` through to `binding.run()` in both `createGatewayFetch` (AI Gateway binding path) and `createWorkersAiBindingFetch` (Workers AI binding path). ## 3.1.1 @@ -143,7 +151,7 @@ - [#256](https://github.com/cloudflare/ai/pull/256) [`a538901`](https://github.com/cloudflare/ai/commit/a5389013b9a512707fb1de1501a1547fce20c014) Thanks [@jahands](https://github.com/jahands)! - feat: Migrate to AI SDK v5 - This updates workers-ai-provider and ai-gateway-provider to use the AI SDK v5. Please refer to the official migration guide to migrate your code https://ai-sdk.dev/docs/migration-guides/migration-guide-5-0 + This updates workers-ai-provider and ai-gateway-provider to use the AI SDK v5. Please refer to the official migration guide to migrate your code https://ai-sdk.dev/docs/migration-guides/migration-guide-5-0 ### Patch Changes diff --git a/packages/ai-gateway-provider/package.json b/packages/ai-gateway-provider/package.json index 134b42b51a..f4f03cd665 100644 --- a/packages/ai-gateway-provider/package.json +++ b/packages/ai-gateway-provider/package.json @@ -1,6 +1,6 @@ { "name": "ai-gateway-provider", - "version": "3.2.0", + "version": "4.0.0", "description": "AI Gateway Provider for AI-SDK", "keywords": [ "agents", diff --git a/packages/ai-search-provider/CHANGELOG.md b/packages/ai-search-provider/CHANGELOG.md new file mode 100644 index 0000000000..521c058585 --- /dev/null +++ b/packages/ai-search-provider/CHANGELOG.md @@ -0,0 +1,7 @@ +# ai-search-provider + +## 0.1.0 + +### Minor Changes + +- [#602](https://github.com/cloudflare/ai/pull/602) [`2e64811`](https://github.com/cloudflare/ai/commit/2e648116daa6a2e979508157f31274956ffbac26) Thanks [@aninibread](https://github.com/aninibread)! - Add a dedicated AI Search provider for Cloudflare's new AI Search `ai_search_namespaces` Workers binding. Bind a namespace, get an instance by name, then upload files to AI Search for indexing and search that indexed content with natural language or generate chat responses grounded in the retrieved context. `createAISearchNamespace({ binding }).get(instanceName)` returns an instance client exposing an AI SDK model (`chat()`), `search()`, and item helpers (`upload`/`uploadAndPoll`/`list`/`delete`/`get().info()`/`get().download()`); the namespace client also exposes `list()`. diff --git a/packages/ai-search-provider/package.json b/packages/ai-search-provider/package.json index 75defa0fb6..75e8a8a26b 100644 --- a/packages/ai-search-provider/package.json +++ b/packages/ai-search-provider/package.json @@ -1,6 +1,6 @@ { "name": "ai-search-provider", - "version": "0.0.0", + "version": "0.1.0", "description": "AI Search Provider for the AI SDK", "keywords": [ "ai", diff --git a/packages/workers-ai-provider/CHANGELOG.md b/packages/workers-ai-provider/CHANGELOG.md index 49216a4f77..5cc0726847 100644 --- a/packages/workers-ai-provider/CHANGELOG.md +++ b/packages/workers-ai-provider/CHANGELOG.md @@ -1,5 +1,17 @@ # workers-ai-provider +## 4.0.0 + +### Major Changes + +- [#601](https://github.com/cloudflare/ai/pull/601) [`7a6f8dd`](https://github.com/cloudflare/ai/commit/7a6f8ddac6c38483da023201303b53d10c266860) Thanks [@OskarLebuda](https://github.com/OskarLebuda)! - Add support for AI SDK 7 + + Bumps peer dependencies to require `ai@^7` and `@ai-sdk/provider@^4`. This is a breaking change for users on AI SDK 6, who should stay on the previous major version of these packages. + +### Patch Changes + +- [#602](https://github.com/cloudflare/ai/pull/602) [`2e64811`](https://github.com/cloudflare/ai/commit/2e648116daa6a2e979508157f31274956ffbac26) Thanks [@aninibread](https://github.com/aninibread)! - Docs: point AI Search users to the new dedicated `ai-search-provider` package for Cloudflare's new `ai_search` and `ai_search_namespaces` Workers bindings. `createAISearch` and `createAutoRAG` in this package continue to wrap the legacy `AutoRAG` binding, unchanged. + ## 3.3.1 ### Patch Changes diff --git a/packages/workers-ai-provider/package.json b/packages/workers-ai-provider/package.json index 0f412b5887..d698948cc3 100644 --- a/packages/workers-ai-provider/package.json +++ b/packages/workers-ai-provider/package.json @@ -1,6 +1,6 @@ { "name": "workers-ai-provider", - "version": "3.3.1", + "version": "4.0.0", "description": "Workers AI Provider for the vercel AI SDK", "keywords": [ "ai",