@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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @ai-sdk/google-vertex
2
2
 
3
+ ## 5.0.96
4
+
5
+ ### Patch Changes
6
+
7
+ - 525efc5: feat(provider): advertise image model file and mask input support
8
+
9
+ Use confirmed model IDs for capability declarations so unrecognized model names
10
+ remain unknown. Include Together AI FLUX.2 Pro and Flex single-image editing, and
11
+ allow asynchronous capability lookups and middleware overrides to resolve to
12
+ unknown.
13
+
14
+ Advertise QuiverAI Arrow 2 and Arrow 2 Telos file-input support, and mark Together
15
+ AI Gemini image inputs unsupported by the current single-image request mapping.
16
+
17
+ - Updated dependencies [e3605f6]
18
+ - Updated dependencies [32cf2f6]
19
+ - Updated dependencies [525efc5]
20
+ - @ai-sdk/provider-utils@5.0.50
21
+ - @ai-sdk/openai-compatible@3.0.58
22
+ - @ai-sdk/google@4.0.83
23
+ - @ai-sdk/provider@4.0.19
24
+ - @ai-sdk/anthropic@4.0.66
25
+
3
26
  ## 5.0.95
4
27
 
5
28
  ### 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.95" : "0.0.0-test";
13
+ var VERSION = true ? "5.0.96" : "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.95" : "0.0.0-test";
21
+ var VERSION = true ? "5.0.96" : "0.0.0-test";
22
22
 
23
23
  // src/google-vertex-embedding-model.ts
24
24
  import {
@@ -264,6 +264,11 @@ import {
264
264
  WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE2,
265
265
  WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE2
266
266
  } from "@ai-sdk/provider-utils";
267
+ var googleVertexImageModelsWithFileInputSupport = /* @__PURE__ */ new Set([
268
+ "gemini-2.5-flash-image",
269
+ "gemini-3-pro-image-preview",
270
+ "gemini-3.1-flash-image-preview"
271
+ ]);
267
272
  var GoogleVertexImageModel = class _GoogleVertexImageModel {
268
273
  constructor(modelId, config) {
269
274
  this.modelId = modelId;
@@ -280,6 +285,12 @@ var GoogleVertexImageModel = class _GoogleVertexImageModel {
280
285
  static [WORKFLOW_DESERIALIZE2](options) {
281
286
  return new _GoogleVertexImageModel(options.modelId, options.config);
282
287
  }
288
+ get supportsFileInputs() {
289
+ return googleVertexImageModelsWithFileInputSupport.has(this.modelId) ? true : void 0;
290
+ }
291
+ get supportsMaskInputs() {
292
+ return this.supportsFileInputs === true ? false : void 0;
293
+ }
283
294
  get provider() {
284
295
  return this.config.provider;
285
296
  }