@ai-sdk/xai 5.0.10 → 5.0.11

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,24 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 5.0.11
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 [525efc5]
19
+ - @ai-sdk/provider-utils@5.0.50
20
+ - @ai-sdk/provider@4.0.19
21
+
3
22
  ## 5.0.10
4
23
 
5
24
  ### Patch Changes
package/dist/index.js CHANGED
@@ -77,6 +77,12 @@ var XaiImageModel = class _XaiImageModel {
77
77
  this.specificationVersion = "v4";
78
78
  this.maxImagesPerCall = 3;
79
79
  }
80
+ get supportsFileInputs() {
81
+ return this.modelId === "grok-imagine-image" || this.modelId === "grok-imagine-image-pro" ? true : void 0;
82
+ }
83
+ get supportsMaskInputs() {
84
+ return this.supportsFileInputs === true ? false : void 0;
85
+ }
80
86
  get provider() {
81
87
  return this.config.provider;
82
88
  }
@@ -3693,7 +3699,7 @@ var xaiTools = {
3693
3699
  };
3694
3700
 
3695
3701
  // src/version.ts
3696
- var VERSION = true ? "5.0.10" : "0.0.0-test";
3702
+ var VERSION = true ? "5.0.11" : "0.0.0-test";
3697
3703
 
3698
3704
  // src/files/xai-files.ts
3699
3705
  import {