Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/ai-sdk-seven.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-llamas-search.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quiet-pandas-point.md

This file was deleted.

52 changes: 30 additions & 22 deletions packages/ai-gateway-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/ai-gateway-provider/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 7 additions & 0 deletions packages/ai-search-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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()`.
2 changes: 1 addition & 1 deletion packages/ai-search-provider/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
12 changes: 12 additions & 0 deletions packages/workers-ai-provider/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/workers-ai-provider/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading