@ai-sdk/google-vertex 5.0.86 → 5.0.87

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,19 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.87
4
+
5
+ ### Patch Changes
6
+
7
+ - e369c4d: fix(google): advertise the supported Gemini image per-call limit
8
+ - Updated dependencies [e369c4d]
9
+ - Updated dependencies [2b391f8]
10
+ - Updated dependencies [1284569]
11
+ - Updated dependencies [0455398]
12
+ - @ai-sdk/google@4.0.75
13
+ - @ai-sdk/provider-utils@5.0.44
14
+ - @ai-sdk/anthropic@4.0.57
15
+ - @ai-sdk/openai-compatible@3.0.52
16
+
3
17
  ## 5.0.86
4
18
 
5
19
  ### Patch Changes
@@ -10,7 +10,7 @@ import {
10
10
  } from "@ai-sdk/provider-utils";
11
11
 
12
12
  // src/version.ts
13
- var VERSION = true ? "5.0.86" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.87" : "0.0.0-test";
14
14
 
15
15
  // src/edge/google-vertex-auth-edge.ts
16
16
  var loadCredentials = async () => {
@@ -18,7 +18,7 @@ import {
18
18
  } from "@ai-sdk/provider-utils";
19
19
 
20
20
  // src/version.ts
21
- var VERSION = true ? "5.0.86" : "0.0.0-test";
21
+ var VERSION = true ? "5.0.87" : "0.0.0-test";
22
22
 
23
23
  // src/google-vertex-embedding-model.ts
24
24
  import {
@@ -270,7 +270,7 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
270
270
  this.modelId = modelId;
271
271
  this.config = config;
272
272
  this.specificationVersion = "v4";
273
- this.maxImagesPerCall = 10;
273
+ this.maxImagesPerCall = 1;
274
274
  }
275
275
  static [WORKFLOW_SERIALIZE2](model) {
276
276
  return serializeModelOptions2({
@@ -293,7 +293,6 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
293
293
  }
294
294
  const {
295
295
  prompt,
296
- n,
297
296
  size,
298
297
  aspectRatio,
299
298
  seed,
@@ -309,11 +308,6 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
309
308
  "Gemini image models do not support mask-based image editing."
310
309
  );
311
310
  }
312
- if (n != null && n > 1) {
313
- throw new Error(
314
- "Gemini image models do not support generating a set number of images per call. Use n=1 or omit the n parameter."
315
- );
316
- }
317
311
  if (size != null) {
318
312
  warnings.push({
319
313
  type: "unsupported",