@ai-sdk/xai 2.0.0-alpha.1 → 2.0.0-alpha.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,92 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.0-alpha.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c1e6647]
8
+ - @ai-sdk/provider@2.0.0-alpha.11
9
+ - @ai-sdk/openai-compatible@1.0.0-alpha.11
10
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
11
+
12
+ ## 2.0.0-alpha.10
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [c4df419]
17
+ - @ai-sdk/provider@2.0.0-alpha.10
18
+ - @ai-sdk/openai-compatible@1.0.0-alpha.10
19
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
20
+
21
+ ## 2.0.0-alpha.9
22
+
23
+ ### Minor Changes
24
+
25
+ - b94b4ed: add live search
26
+
27
+ ### Patch Changes
28
+
29
+ - 107cd62: Add native XAI chat language model implementation
30
+ - Updated dependencies [811dff3]
31
+ - @ai-sdk/provider@2.0.0-alpha.9
32
+ - @ai-sdk/openai-compatible@1.0.0-alpha.9
33
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
34
+
35
+ ## 2.0.0-alpha.8
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [4fef487]
40
+ - Updated dependencies [9222aeb]
41
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
42
+ - @ai-sdk/provider@2.0.0-alpha.8
43
+ - @ai-sdk/openai-compatible@1.0.0-alpha.8
44
+
45
+ ## 2.0.0-alpha.7
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [5c56081]
50
+ - @ai-sdk/provider@2.0.0-alpha.7
51
+ - @ai-sdk/openai-compatible@1.0.0-alpha.7
52
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
53
+
54
+ ## 2.0.0-alpha.6
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [0d2c085]
59
+ - @ai-sdk/provider@2.0.0-alpha.6
60
+ - @ai-sdk/openai-compatible@1.0.0-alpha.6
61
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
62
+
63
+ ## 2.0.0-alpha.4
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [dc714f3]
68
+ - @ai-sdk/provider@2.0.0-alpha.4
69
+ - @ai-sdk/openai-compatible@1.0.0-alpha.4
70
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
71
+
72
+ ## 2.0.0-alpha.3
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [6b98118]
77
+ - @ai-sdk/provider@2.0.0-alpha.3
78
+ - @ai-sdk/openai-compatible@1.0.0-alpha.3
79
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
80
+
81
+ ## 2.0.0-alpha.2
82
+
83
+ ### Patch Changes
84
+
85
+ - Updated dependencies [26535e0]
86
+ - @ai-sdk/provider@2.0.0-alpha.2
87
+ - @ai-sdk/openai-compatible@1.0.0-alpha.2
88
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
89
+
3
90
  ## 2.0.0-alpha.1
4
91
 
5
92
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -51,16 +51,38 @@ interface XaiProviderSettings {
51
51
  declare function createXai(options?: XaiProviderSettings): XaiProvider;
52
52
  declare const xai: XaiProvider;
53
53
 
54
- declare const xaiErrorSchema: z.ZodObject<{
55
- code: z.ZodString;
56
- error: z.ZodString;
54
+ declare const xaiErrorDataSchema: z.ZodObject<{
55
+ error: z.ZodObject<{
56
+ message: z.ZodString;
57
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
+ }>;
57
71
  }, "strip", z.ZodTypeAny, {
58
- code: string;
59
- error: string;
72
+ error: {
73
+ message: string;
74
+ type?: string | null | undefined;
75
+ code?: string | number | null | undefined;
76
+ param?: any;
77
+ };
60
78
  }, {
61
- code: string;
62
- error: string;
79
+ error: {
80
+ message: string;
81
+ type?: string | null | undefined;
82
+ code?: string | number | null | undefined;
83
+ param?: any;
84
+ };
63
85
  }>;
64
- type XaiErrorData = z.infer<typeof xaiErrorSchema>;
86
+ type XaiErrorData = z.infer<typeof xaiErrorDataSchema>;
65
87
 
66
88
  export { type XaiErrorData, type XaiProvider, type XaiProviderSettings, createXai, xai };
package/dist/index.d.ts CHANGED
@@ -51,16 +51,38 @@ interface XaiProviderSettings {
51
51
  declare function createXai(options?: XaiProviderSettings): XaiProvider;
52
52
  declare const xai: XaiProvider;
53
53
 
54
- declare const xaiErrorSchema: z.ZodObject<{
55
- code: z.ZodString;
56
- error: z.ZodString;
54
+ declare const xaiErrorDataSchema: z.ZodObject<{
55
+ error: z.ZodObject<{
56
+ message: z.ZodString;
57
+ type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
+ }>;
57
71
  }, "strip", z.ZodTypeAny, {
58
- code: string;
59
- error: string;
72
+ error: {
73
+ message: string;
74
+ type?: string | null | undefined;
75
+ code?: string | number | null | undefined;
76
+ param?: any;
77
+ };
60
78
  }, {
61
- code: string;
62
- error: string;
79
+ error: {
80
+ message: string;
81
+ type?: string | null | undefined;
82
+ code?: string | number | null | undefined;
83
+ param?: any;
84
+ };
63
85
  }>;
64
- type XaiErrorData = z.infer<typeof xaiErrorSchema>;
86
+ type XaiErrorData = z.infer<typeof xaiErrorDataSchema>;
65
87
 
66
88
  export { type XaiErrorData, type XaiProvider, type XaiProviderSettings, createXai, xai };