@ai-sdk/provider 4.0.7 → 4.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +3 -3
- package/src/batch/v4/batch-v4.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ai-sdk/provider
|
|
2
2
|
|
|
3
|
+
## 4.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 591d25b: feat: add batch completion webhooks. `experimental_startTextBatch` accepts a `webhookUrl`, and the gateway provider registers it through the batch `callbackUrl` contract and exports typed async-job metadata. Direct Anthropic and OpenAI batch providers return an unsupported warning when the option is provided.
|
|
8
|
+
|
|
3
9
|
## 4.0.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -365,6 +365,12 @@ type BatchV4StartOptions<REQUEST> = {
|
|
|
365
365
|
readonly providerOptions?: SharedV4ProviderOptions;
|
|
366
366
|
readonly abortSignal?: AbortSignal;
|
|
367
367
|
readonly headers?: Record<string, string | undefined>;
|
|
368
|
+
/**
|
|
369
|
+
* URL the provider notifies when the batch reaches a terminal state.
|
|
370
|
+
* Providers that do not support completion webhooks should return an
|
|
371
|
+
* unsupported warning.
|
|
372
|
+
*/
|
|
373
|
+
readonly webhookUrl?: string;
|
|
368
374
|
};
|
|
369
375
|
/**
|
|
370
376
|
* Result of starting a batch.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/provider",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/json-schema": "7.0.15",
|
|
33
33
|
"@types/node": "22.19.19",
|
|
34
|
+
"@vercel/ai-tsconfig": "0.0.0",
|
|
34
35
|
"tsup": "^8.5.1",
|
|
35
|
-
"typescript": "5.8.3"
|
|
36
|
-
"@vercel/ai-tsconfig": "0.0.0"
|
|
36
|
+
"typescript": "5.8.3"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=22"
|
package/src/batch/v4/batch-v4.ts
CHANGED
|
@@ -40,6 +40,13 @@ export type BatchV4StartOptions<REQUEST> = {
|
|
|
40
40
|
readonly providerOptions?: SharedV4ProviderOptions;
|
|
41
41
|
readonly abortSignal?: AbortSignal;
|
|
42
42
|
readonly headers?: Record<string, string | undefined>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* URL the provider notifies when the batch reaches a terminal state.
|
|
46
|
+
* Providers that do not support completion webhooks should return an
|
|
47
|
+
* unsupported warning.
|
|
48
|
+
*/
|
|
49
|
+
readonly webhookUrl?: string;
|
|
43
50
|
};
|
|
44
51
|
|
|
45
52
|
/**
|