@ai-sdk/google-vertex 5.0.95 → 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.
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ import {
32
32
  } from "@ai-sdk/provider-utils";
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "5.0.95" : "0.0.0-test";
35
+ var VERSION = true ? "5.0.96" : "0.0.0-test";
36
36
 
37
37
  // src/google-vertex-embedding-model.ts
38
38
  import {
@@ -278,6 +278,11 @@ import {
278
278
  WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE2,
279
279
  WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE2
280
280
  } from "@ai-sdk/provider-utils";
281
+ var googleVertexImageModelsWithFileInputSupport = /* @__PURE__ */ new Set([
282
+ "gemini-2.5-flash-image",
283
+ "gemini-3-pro-image-preview",
284
+ "gemini-3.1-flash-image-preview"
285
+ ]);
281
286
  var GoogleVertexImageModel = class _GoogleVertexImageModel {
282
287
  constructor(modelId, config) {
283
288
  this.modelId = modelId;
@@ -294,6 +299,12 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
294
299
  static [WORKFLOW_DESERIALIZE2](options) {
295
300
  return new _GoogleVertexImageModel(options.modelId, options.config);
296
301
  }
302
+ get supportsFileInputs() {
303
+ return googleVertexImageModelsWithFileInputSupport.has(this.modelId) ? true : void 0;
304
+ }
305
+ get supportsMaskInputs() {
306
+ return this.supportsFileInputs === true ? false : void 0;
307
+ }
297
308
  get provider() {
298
309
  return this.config.provider;
299
310
  }