@ai-sdk/xai 3.0.133 → 3.0.135

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,23 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 3.0.135
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [da2e17b]
8
+ - @ai-sdk/provider@3.0.17
9
+ - @ai-sdk/openai-compatible@2.0.77
10
+ - @ai-sdk/provider-utils@4.0.53
11
+
12
+ ## 3.0.134
13
+
14
+ ### Patch Changes
15
+
16
+ - 1096a27: feat(xai): add grok 4.7 model ID
17
+ - Updated dependencies [82e18b0]
18
+ - @ai-sdk/provider-utils@4.0.52
19
+ - @ai-sdk/openai-compatible@2.0.76
20
+
3
21
  ## 3.0.133
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -36,7 +36,7 @@ import { xai } from '@ai-sdk/xai';
36
36
  import { generateText } from 'ai';
37
37
 
38
38
  const { text } = await generateText({
39
- model: xai('grok-4.6'),
39
+ model: xai('grok-4.7'),
40
40
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
41
41
  });
42
42
  ```
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { ProviderV3, LanguageModelV3, ImageModelV3, Experimental_VideoModelV3 }
3
3
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
4
4
  import { FetchFunction } from '@ai-sdk/provider-utils';
5
5
 
6
- type XaiChatModelId = 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
6
+ type XaiChatModelId = 'grok-4.7' | 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
7
7
  declare const xaiLanguageModelChatOptions: z.ZodObject<{
8
8
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
9
9
  none: "none";
@@ -77,7 +77,7 @@ declare const xaiFilePartProviderOptions: z.ZodObject<{
77
77
  }, z.core.$strip>;
78
78
  type XaiFilePartProviderOptions = z.infer<typeof xaiFilePartProviderOptions>;
79
79
 
80
- type XaiResponsesModelId = 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
80
+ type XaiResponsesModelId = 'grok-4.7' | 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
81
81
  /**
82
82
  * @see https://docs.x.ai/docs/api-reference#create-new-response
83
83
  */
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { ProviderV3, LanguageModelV3, ImageModelV3, Experimental_VideoModelV3 }
3
3
  import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
4
4
  import { FetchFunction } from '@ai-sdk/provider-utils';
5
5
 
6
- type XaiChatModelId = 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
6
+ type XaiChatModelId = 'grok-4.7' | 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
7
7
  declare const xaiLanguageModelChatOptions: z.ZodObject<{
8
8
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
9
9
  none: "none";
@@ -77,7 +77,7 @@ declare const xaiFilePartProviderOptions: z.ZodObject<{
77
77
  }, z.core.$strip>;
78
78
  type XaiFilePartProviderOptions = z.infer<typeof xaiFilePartProviderOptions>;
79
79
 
80
- type XaiResponsesModelId = 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
80
+ type XaiResponsesModelId = 'grok-4.7' | 'grok-4.6' | 'grok-4.5' | 'grok-4.3' | 'grok-4.20-0309-reasoning' | 'grok-4.20-0309-non-reasoning' | 'grok-4.20-multi-agent-0309' | 'grok-build-0.1' | (string & {});
81
81
  /**
82
82
  * @see https://docs.x.ai/docs/api-reference#create-new-response
83
83
  */
package/dist/index.js CHANGED
@@ -3023,7 +3023,7 @@ var xaiTools = {
3023
3023
  };
3024
3024
 
3025
3025
  // src/version.ts
3026
- var VERSION = true ? "3.0.133" : "0.0.0-test";
3026
+ var VERSION = true ? "3.0.135" : "0.0.0-test";
3027
3027
 
3028
3028
  // src/xai-video-model.ts
3029
3029
  var import_provider6 = require("@ai-sdk/provider");