@ai-sdk/xai 2.0.41 → 2.0.43

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,21 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.43
4
+
5
+ ### Patch Changes
6
+
7
+ - 4953414: fix: trigger new release for `@ai-v5` dist-tag
8
+ - Updated dependencies [4953414]
9
+ - @ai-sdk/openai-compatible@1.0.30
10
+ - @ai-sdk/provider@2.0.1
11
+ - @ai-sdk/provider-utils@3.0.20
12
+
13
+ ## 2.0.42
14
+
15
+ ### Patch Changes
16
+
17
+ - 3c6f4e1: fix(provider/xai): correct sources format in searchParameters
18
+
3
19
  ## 2.0.41
4
20
 
5
21
  ### Patch Changes
package/dist/index.js CHANGED
@@ -251,8 +251,11 @@ var xaiProviderOptions = import_v4.z.object({
251
251
  */
252
252
  maxSearchResults: import_v4.z.number().min(1).max(50).optional(),
253
253
  /**
254
- * data sources to search from
255
- * defaults to ["web", "x"] if not specified
254
+ * data sources to search from.
255
+ * defaults to [{ type: 'web' }, { type: 'x' }] if not specified.
256
+ *
257
+ * @example
258
+ * sources: [{ type: 'web', country: 'US' }, { type: 'x' }]
256
259
  */
257
260
  sources: import_v4.z.array(searchSourceSchema).optional()
258
261
  }).optional()
@@ -1992,7 +1995,7 @@ var xaiTools = {
1992
1995
  };
1993
1996
 
1994
1997
  // src/version.ts
1995
- var VERSION = true ? "2.0.41" : "0.0.0-test";
1998
+ var VERSION = true ? "2.0.43" : "0.0.0-test";
1996
1999
 
1997
2000
  // src/xai-provider.ts
1998
2001
  var xaiErrorStructure = {