@ai-sdk/xai 2.0.41 → 2.0.42
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 +6 -0
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -234,8 +234,11 @@ var xaiProviderOptions = z.object({
|
|
|
234
234
|
*/
|
|
235
235
|
maxSearchResults: z.number().min(1).max(50).optional(),
|
|
236
236
|
/**
|
|
237
|
-
* data sources to search from
|
|
238
|
-
* defaults to [
|
|
237
|
+
* data sources to search from.
|
|
238
|
+
* defaults to [{ type: 'web' }, { type: 'x' }] if not specified.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* sources: [{ type: 'web', country: 'US' }, { type: 'x' }]
|
|
239
242
|
*/
|
|
240
243
|
sources: z.array(searchSourceSchema).optional()
|
|
241
244
|
}).optional()
|
|
@@ -1993,7 +1996,7 @@ var xaiTools = {
|
|
|
1993
1996
|
};
|
|
1994
1997
|
|
|
1995
1998
|
// src/version.ts
|
|
1996
|
-
var VERSION = true ? "2.0.
|
|
1999
|
+
var VERSION = true ? "2.0.42" : "0.0.0-test";
|
|
1997
2000
|
|
|
1998
2001
|
// src/xai-provider.ts
|
|
1999
2002
|
var xaiErrorStructure = {
|