@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/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  } from "@ai-sdk/provider-utils";
34
34
 
35
35
  // src/version.ts
36
- var VERSION = true ? "5.0.86" : "0.0.0-test";
36
+ var VERSION = true ? "5.0.87" : "0.0.0-test";
37
37
 
38
38
  // src/google-vertex-embedding-model.ts
39
39
  import {
@@ -285,7 +285,7 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
285
285
  this.modelId = modelId;
286
286
  this.config = config;
287
287
  this.specificationVersion = "v4";
288
- this.maxImagesPerCall = 10;
288
+ this.maxImagesPerCall = 1;
289
289
  }
290
290
  static [WORKFLOW_SERIALIZE2](model) {
291
291
  return serializeModelOptions2({
@@ -308,7 +308,6 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
308
308
  }
309
309
  const {
310
310
  prompt,
311
- n,
312
311
  size,
313
312
  aspectRatio,
314
313
  seed,
@@ -324,11 +323,6 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
324
323
  "Gemini image models do not support mask-based image editing."
325
324
  );
326
325
  }
327
- if (n != null && n > 1) {
328
- throw new Error(
329
- "Gemini image models do not support generating a set number of images per call. Use n=1 or omit the n parameter."
330
- );
331
- }
332
326
  if (size != null) {
333
327
  warnings.push({
334
328
  type: "unsupported",