@ai-sdk/xai 2.0.0-alpha.7 → 2.0.0-alpha.9

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,29 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.0-alpha.9
4
+
5
+ ### Minor Changes
6
+
7
+ - b94b4ed: add live search
8
+
9
+ ### Patch Changes
10
+
11
+ - 107cd62: Add native XAI chat language model implementation
12
+ - Updated dependencies [811dff3]
13
+ - @ai-sdk/provider@2.0.0-alpha.9
14
+ - @ai-sdk/openai-compatible@1.0.0-alpha.9
15
+ - @ai-sdk/provider-utils@3.0.0-alpha.9
16
+
17
+ ## 2.0.0-alpha.8
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [4fef487]
22
+ - Updated dependencies [9222aeb]
23
+ - @ai-sdk/provider-utils@3.0.0-alpha.8
24
+ - @ai-sdk/provider@2.0.0-alpha.8
25
+ - @ai-sdk/openai-compatible@1.0.0-alpha.8
26
+
3
27
  ## 2.0.0-alpha.7
4
28
 
5
29
  ### 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 };