@ai-sdk/xai 2.0.85 → 2.0.87
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.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -228,7 +228,11 @@ var searchSourceSchema = z.discriminatedUnion("type", [
|
|
|
228
228
|
rssSourceSchema
|
|
229
229
|
]);
|
|
230
230
|
var xaiProviderOptions = z.object({
|
|
231
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Reasoning effort for reasoning models.
|
|
233
|
+
* `xhigh` is supported by `grok-4.6`.
|
|
234
|
+
*/
|
|
235
|
+
reasoningEffort: z.enum(["low", "medium", "high", "xhigh"]).optional(),
|
|
232
236
|
/**
|
|
233
237
|
* Whether to enable parallel function calling during tool use.
|
|
234
238
|
* When true, the model can call multiple functions in parallel.
|
|
@@ -1270,9 +1274,11 @@ import { z as z5 } from "zod/v4";
|
|
|
1270
1274
|
var xaiResponsesProviderOptions = z5.object({
|
|
1271
1275
|
/**
|
|
1272
1276
|
* Constrains how hard a reasoning model thinks before responding.
|
|
1273
|
-
* Possible values are `low` (uses fewer reasoning tokens), `medium
|
|
1277
|
+
* Possible values are `low` (uses fewer reasoning tokens), `medium`, `high`
|
|
1278
|
+
* (uses more reasoning tokens), and `xhigh` (supported by `grok-4.6`).
|
|
1279
|
+
* Defaults to `high` for models that support reasoning effort.
|
|
1274
1280
|
*/
|
|
1275
|
-
reasoningEffort: z5.enum(["low", "medium", "high"]).optional(),
|
|
1281
|
+
reasoningEffort: z5.enum(["low", "medium", "high", "xhigh"]).optional(),
|
|
1276
1282
|
/**
|
|
1277
1283
|
* Whether to store the input message(s) and model response for later retrieval.
|
|
1278
1284
|
* @default true
|
|
@@ -2408,7 +2414,7 @@ var xaiTools = {
|
|
|
2408
2414
|
};
|
|
2409
2415
|
|
|
2410
2416
|
// src/version.ts
|
|
2411
|
-
var VERSION = true ? "2.0.
|
|
2417
|
+
var VERSION = true ? "2.0.87" : "0.0.0-test";
|
|
2412
2418
|
|
|
2413
2419
|
// src/xai-provider.ts
|
|
2414
2420
|
var xaiErrorStructure = {
|