@ai-sdk/xai 5.0.10 → 5.0.12

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,32 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 5.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - c2511c1: fix: use standards-compliant User-Agent header
8
+ - Updated dependencies [c2511c1]
9
+ - @ai-sdk/provider-utils@5.0.51
10
+
11
+ ## 5.0.11
12
+
13
+ ### Patch Changes
14
+
15
+ - 525efc5: feat(provider): advertise image model file and mask input support
16
+
17
+ Use confirmed model IDs for capability declarations so unrecognized model names
18
+ remain unknown. Include Together AI FLUX.2 Pro and Flex single-image editing, and
19
+ allow asynchronous capability lookups and middleware overrides to resolve to
20
+ unknown.
21
+
22
+ Advertise QuiverAI Arrow 2 and Arrow 2 Telos file-input support, and mark Together
23
+ AI Gemini image inputs unsupported by the current single-image request mapping.
24
+
25
+ - Updated dependencies [e3605f6]
26
+ - Updated dependencies [525efc5]
27
+ - @ai-sdk/provider-utils@5.0.50
28
+ - @ai-sdk/provider@4.0.19
29
+
3
30
  ## 5.0.10
4
31
 
5
32
  ### 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.12" : "0.0.0-test";
3697
3703
 
3698
3704
  // src/files/xai-files.ts
3699
3705
  import {
@@ -5308,7 +5314,7 @@ function createXai(options = {}) {
5308
5314
  })}`,
5309
5315
  ...options.headers
5310
5316
  },
5311
- `ai-sdk/xai/${VERSION}`
5317
+ `ai-sdk-xai/${VERSION}`
5312
5318
  );
5313
5319
  const createResponsesLanguageModel = (modelId) => {
5314
5320
  return new XaiResponsesLanguageModel(modelId, {