ai 6.0.246 → 6.0.248

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,31 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.248
4
+
5
+ ### Patch Changes
6
+
7
+ - 2171d15: feat(video): allow `aspectRatio: 'adaptive'` on `generateVideo`
8
+
9
+ Some video models derive the output ratio from the input and reject explicit
10
+ `{width}:{height}` values — BytePlus Seedance 2.5 does this for first-frame,
11
+ first-and-last-frame, editing, and extension tasks. `aspectRatio` on
12
+ `VideoModelV3CallOptions`, and
13
+ `experimental_generateVideo` is now `` `${number}:${number}` | 'adaptive' ``, so
14
+ those calls no longer need a type assertion. Support is provider-specific.
15
+
16
+ - Updated dependencies [2171d15]
17
+ - @ai-sdk/provider@3.0.15
18
+ - @ai-sdk/gateway@3.0.168
19
+ - @ai-sdk/provider-utils@4.0.44
20
+
21
+ ## 6.0.247
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [dab0a08]
26
+ - @ai-sdk/provider-utils@4.0.43
27
+ - @ai-sdk/gateway@3.0.167
28
+
3
29
  ## 6.0.246
4
30
 
5
31
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -5779,9 +5779,10 @@ declare function experimental_generateVideo({ model: modelArg, prompt: promptArg
5779
5779
  */
5780
5780
  maxVideosPerCall?: number;
5781
5781
  /**
5782
- * Aspect ratio of the videos to generate. Must have the format `{width}:{height}`.
5782
+ * Aspect ratio of the videos to generate. Must have the format
5783
+ * `{width}:{height}`, or `'adaptive'` to inherit the ratio from the input media.
5783
5784
  */
5784
- aspectRatio?: `${number}:${number}`;
5785
+ aspectRatio?: `${number}:${number}` | 'adaptive';
5785
5786
  /**
5786
5787
  * Resolution of the videos to generate. Must have the format `{width}x{height}`.
5787
5788
  */
package/dist/index.d.ts CHANGED
@@ -5779,9 +5779,10 @@ declare function experimental_generateVideo({ model: modelArg, prompt: promptArg
5779
5779
  */
5780
5780
  maxVideosPerCall?: number;
5781
5781
  /**
5782
- * Aspect ratio of the videos to generate. Must have the format `{width}:{height}`.
5782
+ * Aspect ratio of the videos to generate. Must have the format
5783
+ * `{width}:{height}`, or `'adaptive'` to inherit the ratio from the input media.
5783
5784
  */
5784
- aspectRatio?: `${number}:${number}`;
5785
+ aspectRatio?: `${number}:${number}` | 'adaptive';
5785
5786
  /**
5786
5787
  * Resolution of the videos to generate. Must have the format `{width}x{height}`.
5787
5788
  */
package/dist/index.js CHANGED
@@ -1304,7 +1304,7 @@ function detectMediaType({
1304
1304
  var import_provider_utils3 = require("@ai-sdk/provider-utils");
1305
1305
 
1306
1306
  // src/version.ts
1307
- var VERSION = true ? "6.0.246" : "0.0.0-test";
1307
+ var VERSION = true ? "6.0.248" : "0.0.0-test";
1308
1308
 
1309
1309
  // src/util/download/download.ts
1310
1310
  var download = async ({