@ai-sdk/xai 3.0.117 → 3.0.119
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/docs/01-xai.mdx +19 -15
- package/package.json +3 -3
- package/src/responses/xai-responses-options.ts +7 -3
- package/src/xai-chat-options.ts +4 -1
package/dist/index.mjs
CHANGED
|
@@ -258,7 +258,7 @@ var searchSourceSchema = z2.discriminatedUnion("type", [
|
|
|
258
258
|
rssSourceSchema
|
|
259
259
|
]);
|
|
260
260
|
var xaiLanguageModelChatOptions = z2.object({
|
|
261
|
-
reasoningEffort: z2.enum(["none", "low", "medium", "high"]).optional(),
|
|
261
|
+
reasoningEffort: z2.enum(["none", "low", "medium", "high", "xhigh"]).optional(),
|
|
262
262
|
logprobs: z2.boolean().optional(),
|
|
263
263
|
topLogprobs: z2.number().int().min(0).max(8).optional(),
|
|
264
264
|
/**
|
|
@@ -1816,10 +1816,11 @@ var xaiLanguageModelResponsesOptions = z8.object({
|
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Constrains how hard a reasoning model thinks before responding.
|
|
1818
1818
|
* Possible values are `none` (disables reasoning), `low` (uses fewer reasoning
|
|
1819
|
-
* tokens), `medium` and `
|
|
1820
|
-
* support reasoning effort; see xAI's docs for the values each model
|
|
1819
|
+
* tokens), `medium`, `high`, and `xhigh` (uses more reasoning tokens). Not all
|
|
1820
|
+
* models support reasoning effort; see xAI's docs for the values each model
|
|
1821
|
+
* accepts. `xhigh` is currently only supported by `grok-4.6`.
|
|
1821
1822
|
*/
|
|
1822
|
-
reasoningEffort: z8.enum(["none", "low", "medium", "high"]).optional(),
|
|
1823
|
+
reasoningEffort: z8.enum(["none", "low", "medium", "high", "xhigh"]).optional(),
|
|
1823
1824
|
logprobs: z8.boolean().optional(),
|
|
1824
1825
|
topLogprobs: z8.number().int().min(0).max(8).optional(),
|
|
1825
1826
|
/**
|
|
@@ -2954,7 +2955,7 @@ var xaiTools = {
|
|
|
2954
2955
|
};
|
|
2955
2956
|
|
|
2956
2957
|
// src/version.ts
|
|
2957
|
-
var VERSION = true ? "3.0.
|
|
2958
|
+
var VERSION = true ? "3.0.119" : "0.0.0-test";
|
|
2958
2959
|
|
|
2959
2960
|
// src/xai-video-model.ts
|
|
2960
2961
|
import {
|