@ai-sdk/google-vertex 5.0.93 → 5.0.96

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.
@@ -26,6 +26,12 @@ interface GoogleVertexImageModelConfig {
26
26
  };
27
27
  }
28
28
 
29
+ const googleVertexImageModelsWithFileInputSupport = new Set<string>([
30
+ 'gemini-2.5-flash-image',
31
+ 'gemini-3-pro-image-preview',
32
+ 'gemini-3.1-flash-image-preview',
33
+ ]);
34
+
29
35
  export class GoogleVertexImageModel implements ImageModelV4 {
30
36
  readonly specificationVersion = 'v4';
31
37
 
@@ -45,6 +51,16 @@ export class GoogleVertexImageModel implements ImageModelV4 {
45
51
 
46
52
  readonly maxImagesPerCall = 1;
47
53
 
54
+ get supportsFileInputs(): boolean | undefined {
55
+ return googleVertexImageModelsWithFileInputSupport.has(this.modelId)
56
+ ? true
57
+ : undefined;
58
+ }
59
+
60
+ get supportsMaskInputs(): boolean | undefined {
61
+ return this.supportsFileInputs === true ? false : undefined;
62
+ }
63
+
48
64
  get provider(): string {
49
65
  return this.config.provider;
50
66
  }
@@ -307,6 +307,7 @@ export function createGoogleVertex(
307
307
  }),
308
308
  downloadToolResultFiles: {
309
309
  maxBytes: options.toolResultDownloads?.maxBytes ?? 7 * 1024 * 1024,
310
+ supportsGoogleCloudStorageUrls: true,
310
311
  },
311
312
  });
312
313
  };