@ai-sdk/xai 5.0.17 → 5.0.19
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 +14 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/docs/01-xai.mdx +2 -2
- package/package.json +3 -3
- package/src/tool/x-search.ts +2 -2
package/docs/01-xai.mdx
CHANGED
|
@@ -329,11 +329,11 @@ const { text, sources } = await generateText({
|
|
|
329
329
|
|
|
330
330
|
- **allowedXHandles** _string[]_
|
|
331
331
|
|
|
332
|
-
Only search posts from specified X handles (max
|
|
332
|
+
Only search posts from specified X handles (max 20). Cannot be used with `excludedXHandles`.
|
|
333
333
|
|
|
334
334
|
- **excludedXHandles** _string[]_
|
|
335
335
|
|
|
336
|
-
Exclude posts from specified X handles (max
|
|
336
|
+
Exclude posts from specified X handles (max 20). Cannot be used with `allowedXHandles`.
|
|
337
337
|
|
|
338
338
|
- **fromDate** _string_
|
|
339
339
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/xai",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-sdk/provider": "4.0.
|
|
33
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
32
|
+
"@ai-sdk/provider": "4.0.25",
|
|
33
|
+
"@ai-sdk/provider-utils": "5.0.57"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@ai-sdk/test-server": "2.0.4",
|
package/src/tool/x-search.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { z } from 'zod/v4';
|
|
|
8
8
|
export const xSearchArgsSchema = lazySchema(() =>
|
|
9
9
|
zodSchema(
|
|
10
10
|
z.object({
|
|
11
|
-
allowedXHandles: z.array(z.string()).max(
|
|
12
|
-
excludedXHandles: z.array(z.string()).max(
|
|
11
|
+
allowedXHandles: z.array(z.string()).max(20).optional(),
|
|
12
|
+
excludedXHandles: z.array(z.string()).max(20).optional(),
|
|
13
13
|
fromDate: z.string().optional(),
|
|
14
14
|
toDate: z.string().optional(),
|
|
15
15
|
enableImageUnderstanding: z.boolean().optional(),
|