@ai-sdk/xai 2.0.0-alpha.1 → 2.0.0-alpha.10

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,83 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.0-alpha.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c4df419]
8
+ - @ai-sdk/provider@2.0.0-alpha.10
9
+ - @ai-sdk/openai-compatible@1.0.0-alpha.10
10
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
11
+
12
+ ## 2.0.0-alpha.9
13
+
14
+ ### Minor Changes
15
+
16
+ - b94b4ed: add live search
17
+
18
+ ### Patch Changes
19
+
20
+ - 107cd62: Add native XAI chat language model implementation
21
+ - Updated dependencies [811dff3]
22
+ - @ai-sdk/provider@2.0.0-alpha.9
23
+ - @ai-sdk/openai-compatible@1.0.0-alpha.9
24
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
25
+
26
+ ## 2.0.0-alpha.8
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [4fef487]
31
+ - Updated dependencies [9222aeb]
32
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
33
+ - @ai-sdk/provider@2.0.0-alpha.8
34
+ - @ai-sdk/openai-compatible@1.0.0-alpha.8
35
+
36
+ ## 2.0.0-alpha.7
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [5c56081]
41
+ - @ai-sdk/provider@2.0.0-alpha.7
42
+ - @ai-sdk/openai-compatible@1.0.0-alpha.7
43
+ - @ai-sdk/provider-utils@3.0.0-alpha.7
44
+
45
+ ## 2.0.0-alpha.6
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [0d2c085]
50
+ - @ai-sdk/provider@2.0.0-alpha.6
51
+ - @ai-sdk/openai-compatible@1.0.0-alpha.6
52
+ - @ai-sdk/provider-utils@3.0.0-alpha.6
53
+
54
+ ## 2.0.0-alpha.4
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [dc714f3]
59
+ - @ai-sdk/provider@2.0.0-alpha.4
60
+ - @ai-sdk/openai-compatible@1.0.0-alpha.4
61
+ - @ai-sdk/provider-utils@3.0.0-alpha.4
62
+
63
+ ## 2.0.0-alpha.3
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [6b98118]
68
+ - @ai-sdk/provider@2.0.0-alpha.3
69
+ - @ai-sdk/openai-compatible@1.0.0-alpha.3
70
+ - @ai-sdk/provider-utils@3.0.0-alpha.3
71
+
72
+ ## 2.0.0-alpha.2
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [26535e0]
77
+ - @ai-sdk/provider@2.0.0-alpha.2
78
+ - @ai-sdk/openai-compatible@1.0.0-alpha.2
79
+ - @ai-sdk/provider-utils@3.0.0-alpha.2
80
+
3
81
  ## 2.0.0-alpha.1
4
82
 
5
83
  ### 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 };