@ai-sdk/provider 3.0.14 → 3.0.16
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
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ai-sdk/provider
|
|
2
2
|
|
|
3
|
+
## 3.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1a4dbb1: Retry unclassified empty image results, preserve retry-attempt accounting, add provider-independent result retryability classification, preserve it through the AI Gateway, and mark Google and Google Vertex content-filtered results as terminal.
|
|
8
|
+
|
|
9
|
+
## 3.0.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2171d15: feat(video): allow `aspectRatio: 'adaptive'` on `generateVideo`
|
|
14
|
+
|
|
15
|
+
Some video models derive the output ratio from the input and reject explicit
|
|
16
|
+
`{width}:{height}` values — BytePlus Seedance 2.5 does this for first-frame,
|
|
17
|
+
first-and-last-frame, editing, and extension tasks. `aspectRatio` on
|
|
18
|
+
`VideoModelV3CallOptions`, and
|
|
19
|
+
`experimental_generateVideo` is now `` `${number}:${number}` | 'adaptive' ``, so
|
|
20
|
+
those calls no longer need a type assertion. Support is provider-specific.
|
|
21
|
+
|
|
3
22
|
## 3.0.14
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -765,6 +765,11 @@ type ImageModelV3 = {
|
|
|
765
765
|
* be returned as binary data.
|
|
766
766
|
*/
|
|
767
767
|
images: Array<string> | Array<Uint8Array>;
|
|
768
|
+
/**
|
|
769
|
+
* Whether an unsuccessful result, such as an empty image result, can be
|
|
770
|
+
* retried. When omitted, the result is unclassified.
|
|
771
|
+
*/
|
|
772
|
+
isRetryable?: boolean;
|
|
768
773
|
/**
|
|
769
774
|
* Warnings for the call, e.g. unsupported features.
|
|
770
775
|
*/
|
|
@@ -3882,11 +3887,12 @@ type VideoModelV3CallOptions = {
|
|
|
3882
3887
|
n: number;
|
|
3883
3888
|
/**
|
|
3884
3889
|
* Aspect ratio of the videos to generate.
|
|
3885
|
-
* Must have the format `{width}:{height}
|
|
3890
|
+
* Must have the format `{width}:{height}`, or `'adaptive'` to inherit the
|
|
3891
|
+
* ratio from the input media.
|
|
3886
3892
|
* `undefined` will use the provider's default aspect ratio.
|
|
3887
3893
|
* Common values: '16:9', '9:16', '1:1', '21:9', '4:3'
|
|
3888
3894
|
*/
|
|
3889
|
-
aspectRatio: `${number}:${number}` | undefined;
|
|
3895
|
+
aspectRatio: `${number}:${number}` | 'adaptive' | undefined;
|
|
3890
3896
|
/**
|
|
3891
3897
|
* Resolution of the video to generate.
|
|
3892
3898
|
* Format: `{width}x{height}` (e.g., '1280x720', '1920x1080')
|
package/dist/index.d.ts
CHANGED
|
@@ -765,6 +765,11 @@ type ImageModelV3 = {
|
|
|
765
765
|
* be returned as binary data.
|
|
766
766
|
*/
|
|
767
767
|
images: Array<string> | Array<Uint8Array>;
|
|
768
|
+
/**
|
|
769
|
+
* Whether an unsuccessful result, such as an empty image result, can be
|
|
770
|
+
* retried. When omitted, the result is unclassified.
|
|
771
|
+
*/
|
|
772
|
+
isRetryable?: boolean;
|
|
768
773
|
/**
|
|
769
774
|
* Warnings for the call, e.g. unsupported features.
|
|
770
775
|
*/
|
|
@@ -3882,11 +3887,12 @@ type VideoModelV3CallOptions = {
|
|
|
3882
3887
|
n: number;
|
|
3883
3888
|
/**
|
|
3884
3889
|
* Aspect ratio of the videos to generate.
|
|
3885
|
-
* Must have the format `{width}:{height}
|
|
3890
|
+
* Must have the format `{width}:{height}`, or `'adaptive'` to inherit the
|
|
3891
|
+
* ratio from the input media.
|
|
3886
3892
|
* `undefined` will use the provider's default aspect ratio.
|
|
3887
3893
|
* Common values: '16:9', '9:16', '1:1', '21:9', '4:3'
|
|
3888
3894
|
*/
|
|
3889
|
-
aspectRatio: `${number}:${number}` | undefined;
|
|
3895
|
+
aspectRatio: `${number}:${number}` | 'adaptive' | undefined;
|
|
3890
3896
|
/**
|
|
3891
3897
|
* Resolution of the video to generate.
|
|
3892
3898
|
* Format: `{width}x{height}` (e.g., '1280x720', '1920x1080')
|
package/package.json
CHANGED
|
@@ -58,6 +58,12 @@ export type ImageModelV3 = {
|
|
|
58
58
|
*/
|
|
59
59
|
images: Array<string> | Array<Uint8Array>;
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Whether an unsuccessful result, such as an empty image result, can be
|
|
63
|
+
* retried. When omitted, the result is unclassified.
|
|
64
|
+
*/
|
|
65
|
+
isRetryable?: boolean;
|
|
66
|
+
|
|
61
67
|
/**
|
|
62
68
|
* Warnings for the call, e.g. unsupported features.
|
|
63
69
|
*/
|
|
@@ -16,11 +16,12 @@ export type VideoModelV3CallOptions = {
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Aspect ratio of the videos to generate.
|
|
19
|
-
* Must have the format `{width}:{height}
|
|
19
|
+
* Must have the format `{width}:{height}`, or `'adaptive'` to inherit the
|
|
20
|
+
* ratio from the input media.
|
|
20
21
|
* `undefined` will use the provider's default aspect ratio.
|
|
21
22
|
* Common values: '16:9', '9:16', '1:1', '21:9', '4:3'
|
|
22
23
|
*/
|
|
23
|
-
aspectRatio: `${number}:${number}` | undefined;
|
|
24
|
+
aspectRatio: `${number}:${number}` | 'adaptive' | undefined;
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Resolution of the video to generate.
|