@ai-sdk/xai 5.0.4 → 5.0.6

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,19 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 5.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ffb0e76]
8
+ - @ai-sdk/provider@4.0.18
9
+ - @ai-sdk/provider-utils@5.0.46
10
+
11
+ ## 5.0.5
12
+
13
+ ### Patch Changes
14
+
15
+ - 7cf7cee: feat(xai): add grok 4.7 model ID
16
+
3
17
  ## 5.0.4
4
18
 
5
19
  ### 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.ts CHANGED
@@ -27,7 +27,7 @@ declare const xaiFilePartProviderOptions: z.ZodObject<{
27
27
  }, z.core.$strip>;
28
28
  type XaiFilePartProviderOptions = z.infer<typeof xaiFilePartProviderOptions>;
29
29
 
30
- type XaiResponsesModelId = 'grok-4.20-non-reasoning' | 'grok-4.20-reasoning' | 'grok-4.3' | 'grok-4.5' | 'grok-4.6' | 'grok-latest' | (string & {});
30
+ type XaiResponsesModelId = 'grok-4.20-non-reasoning' | 'grok-4.20-reasoning' | 'grok-4.3' | 'grok-4.5' | 'grok-4.6' | 'grok-4.7' | 'grok-latest' | (string & {});
31
31
  /**
32
32
  * @see https://docs.x.ai/docs/api-reference#create-new-response
33
33
  */
package/dist/index.js CHANGED
@@ -3670,7 +3670,7 @@ var xaiTools = {
3670
3670
  };
3671
3671
 
3672
3672
  // src/version.ts
3673
- var VERSION = true ? "5.0.4" : "0.0.0-test";
3673
+ var VERSION = true ? "5.0.6" : "0.0.0-test";
3674
3674
 
3675
3675
  // src/files/xai-files.ts
3676
3676
  import {