@ai-sdk/xai 2.0.0-alpha.9 → 2.0.0-beta.2

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,99 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.0-beta.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d1a034f: feature: using Zod 4 for internal stuff
8
+ - Updated dependencies [0571b98]
9
+ - Updated dependencies [39a4fab]
10
+ - Updated dependencies [d1a034f]
11
+ - @ai-sdk/provider-utils@3.0.0-beta.2
12
+ - @ai-sdk/openai-compatible@1.0.0-beta.2
13
+
14
+ ## 2.0.0-beta.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [742b7be]
19
+ - Updated dependencies [7cddb72]
20
+ - Updated dependencies [ccce59b]
21
+ - Updated dependencies [e2b9e4b]
22
+ - Updated dependencies [45c1ea2]
23
+ - Updated dependencies [e025824]
24
+ - Updated dependencies [0d06df6]
25
+ - Updated dependencies [472524a]
26
+ - Updated dependencies [dd3ff01]
27
+ - Updated dependencies [7435eb5]
28
+ - Updated dependencies [cb68df0]
29
+ - Updated dependencies [bfdca8d]
30
+ - Updated dependencies [44f4aba]
31
+ - Updated dependencies [023ba40]
32
+ - Updated dependencies [5e57fae]
33
+ - Updated dependencies [71f938d]
34
+ - Updated dependencies [28a5ed5]
35
+ - @ai-sdk/provider@2.0.0-beta.1
36
+ - @ai-sdk/provider-utils@3.0.0-beta.1
37
+ - @ai-sdk/openai-compatible@1.0.0-beta.1
38
+
39
+ ## 2.0.0-alpha.15
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [48d257a]
44
+ - Updated dependencies [8ba77a7]
45
+ - @ai-sdk/provider@2.0.0-alpha.15
46
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
47
+ - @ai-sdk/openai-compatible@1.0.0-alpha.15
48
+
49
+ ## 2.0.0-alpha.14
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [b5da06a]
54
+ - Updated dependencies [63f9e9b]
55
+ - Updated dependencies [2e13791]
56
+ - @ai-sdk/provider@2.0.0-alpha.14
57
+ - @ai-sdk/openai-compatible@1.0.0-alpha.14
58
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
59
+
60
+ ## 2.0.0-alpha.13
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [68ecf2f]
65
+ - @ai-sdk/provider@2.0.0-alpha.13
66
+ - @ai-sdk/openai-compatible@1.0.0-alpha.13
67
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
68
+
69
+ ## 2.0.0-alpha.12
70
+
71
+ ### Patch Changes
72
+
73
+ - e2aceaf: feat: add raw chunk support
74
+ - Updated dependencies [e2aceaf]
75
+ - @ai-sdk/openai-compatible@1.0.0-alpha.12
76
+ - @ai-sdk/provider@2.0.0-alpha.12
77
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
78
+
79
+ ## 2.0.0-alpha.11
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies [c1e6647]
84
+ - @ai-sdk/provider@2.0.0-alpha.11
85
+ - @ai-sdk/openai-compatible@1.0.0-alpha.11
86
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
87
+
88
+ ## 2.0.0-alpha.10
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [c4df419]
93
+ - @ai-sdk/provider@2.0.0-alpha.10
94
+ - @ai-sdk/openai-compatible@1.0.0-alpha.10
95
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
96
+
3
97
  ## 2.0.0-alpha.9
4
98
 
5
99
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProviderV2, LanguageModelV2, ImageModelV2 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
- import { z } from 'zod';
3
+ import { z } from 'zod/v4';
4
4
 
5
5
  type XaiChatModelId = 'grok-3' | 'grok-3-latest' | 'grok-3-fast' | 'grok-3-fast-latest' | 'grok-3-mini' | 'grok-3-mini-latest' | 'grok-3-mini-fast' | 'grok-3-mini-fast-latest' | 'grok-2-vision-1212' | 'grok-2-vision' | 'grok-2-vision-latest' | 'grok-2-image-1212' | 'grok-2-image' | 'grok-2-image-latest' | 'grok-2-1212' | 'grok-2' | 'grok-2-latest' | 'grok-vision-beta' | 'grok-beta' | (string & {});
6
6
 
@@ -56,33 +56,9 @@ declare const xaiErrorDataSchema: z.ZodObject<{
56
56
  message: z.ZodString;
57
57
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
58
  param: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
59
- code: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
60
- }, "strip", z.ZodTypeAny, {
61
- message: string;
62
- type?: string | null | undefined;
63
- code?: string | number | null | undefined;
64
- param?: any;
65
- }, {
66
- message: string;
67
- type?: string | null | undefined;
68
- code?: string | number | null | undefined;
69
- param?: any;
70
- }>;
71
- }, "strip", z.ZodTypeAny, {
72
- error: {
73
- message: string;
74
- type?: string | null | undefined;
75
- code?: string | number | null | undefined;
76
- param?: any;
77
- };
78
- }, {
79
- error: {
80
- message: string;
81
- type?: string | null | undefined;
82
- code?: string | number | null | undefined;
83
- param?: any;
84
- };
85
- }>;
59
+ code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
60
+ }, z.core.$strip>;
61
+ }, z.core.$strip>;
86
62
  type XaiErrorData = z.infer<typeof xaiErrorDataSchema>;
87
63
 
88
64
  export { type XaiErrorData, type XaiProvider, type XaiProviderSettings, createXai, xai };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProviderV2, LanguageModelV2, ImageModelV2 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
- import { z } from 'zod';
3
+ import { z } from 'zod/v4';
4
4
 
5
5
  type XaiChatModelId = 'grok-3' | 'grok-3-latest' | 'grok-3-fast' | 'grok-3-fast-latest' | 'grok-3-mini' | 'grok-3-mini-latest' | 'grok-3-mini-fast' | 'grok-3-mini-fast-latest' | 'grok-2-vision-1212' | 'grok-2-vision' | 'grok-2-vision-latest' | 'grok-2-image-1212' | 'grok-2-image' | 'grok-2-image-latest' | 'grok-2-1212' | 'grok-2' | 'grok-2-latest' | 'grok-vision-beta' | 'grok-beta' | (string & {});
6
6
 
@@ -56,33 +56,9 @@ declare const xaiErrorDataSchema: z.ZodObject<{
56
56
  message: z.ZodString;
57
57
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
58
  param: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
59
- code: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>>;
60
- }, "strip", z.ZodTypeAny, {
61
- message: string;
62
- type?: string | null | undefined;
63
- code?: string | number | null | undefined;
64
- param?: any;
65
- }, {
66
- message: string;
67
- type?: string | null | undefined;
68
- code?: string | number | null | undefined;
69
- param?: any;
70
- }>;
71
- }, "strip", z.ZodTypeAny, {
72
- error: {
73
- message: string;
74
- type?: string | null | undefined;
75
- code?: string | number | null | undefined;
76
- param?: any;
77
- };
78
- }, {
79
- error: {
80
- message: string;
81
- type?: string | null | undefined;
82
- code?: string | number | null | undefined;
83
- param?: any;
84
- };
85
- }>;
59
+ code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
60
+ }, z.core.$strip>;
61
+ }, z.core.$strip>;
86
62
  type XaiErrorData = z.infer<typeof xaiErrorDataSchema>;
87
63
 
88
64
  export { type XaiErrorData, type XaiProvider, type XaiProviderSettings, createXai, xai };