@ai-sdk/xai 3.0.64 → 3.0.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/xai",
3
- "version": "3.0.64",
3
+ "version": "3.0.65",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -30,16 +30,16 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@ai-sdk/openai-compatible": "2.0.33",
33
- "@ai-sdk/provider": "3.0.8",
34
- "@ai-sdk/provider-utils": "4.0.17"
33
+ "@ai-sdk/provider-utils": "4.0.17",
34
+ "@ai-sdk/provider": "3.0.8"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "20.17.24",
38
38
  "tsup": "^8",
39
39
  "typescript": "5.8.3",
40
40
  "zod": "3.25.76",
41
- "@ai-sdk/test-server": "1.0.3",
42
- "@vercel/ai-tsconfig": "0.0.0"
41
+ "@vercel/ai-tsconfig": "0.0.0",
42
+ "@ai-sdk/test-server": "1.0.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "zod": "^3.25.76 || ^4.1.8"
@@ -110,6 +110,7 @@ export type XaiResponsesTool =
110
110
  name: string;
111
111
  description?: string;
112
112
  parameters: unknown;
113
+ strict?: boolean;
113
114
  };
114
115
 
115
116
  const annotationSchema = z.union([
@@ -143,6 +143,7 @@ export async function prepareResponsesTools({
143
143
  name: tool.name,
144
144
  description: tool.description,
145
145
  parameters: tool.inputSchema,
146
+ ...(tool.strict != null ? { strict: tool.strict } : {}),
146
147
  });
147
148
  }
148
149
  }
@@ -19,6 +19,7 @@ export function prepareTools({
19
19
  name: string;
20
20
  description: string | undefined;
21
21
  parameters: unknown;
22
+ strict?: boolean;
22
23
  };
23
24
  }>
24
25
  | undefined;
@@ -41,6 +42,7 @@ export function prepareTools({
41
42
  name: string;
42
43
  description: string | undefined;
43
44
  parameters: unknown;
45
+ strict?: boolean;
44
46
  };
45
47
  }> = [];
46
48
 
@@ -57,6 +59,7 @@ export function prepareTools({
57
59
  name: tool.name,
58
60
  description: tool.description,
59
61
  parameters: tool.inputSchema,
62
+ ...(tool.strict != null ? { strict: tool.strict } : {}),
60
63
  },
61
64
  });
62
65
  }