@ai-sdk/xai 2.0.0-alpha.8 → 2.0.0-beta.1

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,102 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.0-beta.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [742b7be]
8
+ - Updated dependencies [7cddb72]
9
+ - Updated dependencies [ccce59b]
10
+ - Updated dependencies [e2b9e4b]
11
+ - Updated dependencies [45c1ea2]
12
+ - Updated dependencies [e025824]
13
+ - Updated dependencies [0d06df6]
14
+ - Updated dependencies [472524a]
15
+ - Updated dependencies [dd3ff01]
16
+ - Updated dependencies [7435eb5]
17
+ - Updated dependencies [cb68df0]
18
+ - Updated dependencies [bfdca8d]
19
+ - Updated dependencies [44f4aba]
20
+ - Updated dependencies [023ba40]
21
+ - Updated dependencies [5e57fae]
22
+ - Updated dependencies [71f938d]
23
+ - Updated dependencies [28a5ed5]
24
+ - @ai-sdk/provider@2.0.0-beta.1
25
+ - @ai-sdk/provider-utils@3.0.0-beta.1
26
+ - @ai-sdk/openai-compatible@1.0.0-beta.1
27
+
28
+ ## 2.0.0-alpha.15
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [48d257a]
33
+ - Updated dependencies [8ba77a7]
34
+ - @ai-sdk/provider@2.0.0-alpha.15
35
+ - @ai-sdk/provider-utils@3.0.0-alpha.15
36
+ - @ai-sdk/openai-compatible@1.0.0-alpha.15
37
+
38
+ ## 2.0.0-alpha.14
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [b5da06a]
43
+ - Updated dependencies [63f9e9b]
44
+ - Updated dependencies [2e13791]
45
+ - @ai-sdk/provider@2.0.0-alpha.14
46
+ - @ai-sdk/openai-compatible@1.0.0-alpha.14
47
+ - @ai-sdk/provider-utils@3.0.0-alpha.14
48
+
49
+ ## 2.0.0-alpha.13
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [68ecf2f]
54
+ - @ai-sdk/provider@2.0.0-alpha.13
55
+ - @ai-sdk/openai-compatible@1.0.0-alpha.13
56
+ - @ai-sdk/provider-utils@3.0.0-alpha.13
57
+
58
+ ## 2.0.0-alpha.12
59
+
60
+ ### Patch Changes
61
+
62
+ - e2aceaf: feat: add raw chunk support
63
+ - Updated dependencies [e2aceaf]
64
+ - @ai-sdk/openai-compatible@1.0.0-alpha.12
65
+ - @ai-sdk/provider@2.0.0-alpha.12
66
+ - @ai-sdk/provider-utils@3.0.0-alpha.12
67
+
68
+ ## 2.0.0-alpha.11
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [c1e6647]
73
+ - @ai-sdk/provider@2.0.0-alpha.11
74
+ - @ai-sdk/openai-compatible@1.0.0-alpha.11
75
+ - @ai-sdk/provider-utils@3.0.0-alpha.11
76
+
77
+ ## 2.0.0-alpha.10
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [c4df419]
82
+ - @ai-sdk/provider@2.0.0-alpha.10
83
+ - @ai-sdk/openai-compatible@1.0.0-alpha.10
84
+ - @ai-sdk/provider-utils@3.0.0-alpha.10
85
+
86
+ ## 2.0.0-alpha.9
87
+
88
+ ### Minor Changes
89
+
90
+ - b94b4ed: add live search
91
+
92
+ ### Patch Changes
93
+
94
+ - 107cd62: Add native XAI chat language model implementation
95
+ - Updated dependencies [811dff3]
96
+ - @ai-sdk/provider@2.0.0-alpha.9
97
+ - @ai-sdk/openai-compatible@1.0.0-alpha.9
98
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
99
+
3
100
  ## 2.0.0-alpha.8
4
101
 
5
102
  ### 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 };