@ai-sdk/xai 5.0.17 → 5.0.18

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/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 10). Cannot be used with `excludedXHandles`.
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 10). Cannot be used with `allowedXHandles`.
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.17",
3
+ "version": "5.0.18",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -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(10).optional(),
12
- excludedXHandles: z.array(z.string()).max(10).optional(),
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(),