@ai-sdk/xai 3.0.96 → 3.0.98

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/dist/index.mjs CHANGED
@@ -230,7 +230,7 @@ var searchSourceSchema = z.discriminatedUnion("type", [
230
230
  rssSourceSchema
231
231
  ]);
232
232
  var xaiLanguageModelChatOptions = z.object({
233
- reasoningEffort: z.enum(["low", "high"]).optional(),
233
+ reasoningEffort: z.enum(["none", "low", "medium", "high"]).optional(),
234
234
  logprobs: z.boolean().optional(),
235
235
  topLogprobs: z.number().int().min(0).max(8).optional(),
236
236
  /**
@@ -1745,9 +1745,11 @@ import { z as z7 } from "zod/v4";
1745
1745
  var xaiLanguageModelResponsesOptions = z7.object({
1746
1746
  /**
1747
1747
  * Constrains how hard a reasoning model thinks before responding.
1748
- * Possible values are `low` (uses fewer reasoning tokens), `medium` and `high` (uses more reasoning tokens).
1748
+ * Possible values are `none` (disables reasoning), `low` (uses fewer reasoning
1749
+ * tokens), `medium` and `high` (uses more reasoning tokens). Not all models
1750
+ * support reasoning effort; see xAI's docs for the values each model accepts.
1749
1751
  */
1750
- reasoningEffort: z7.enum(["low", "medium", "high"]).optional(),
1752
+ reasoningEffort: z7.enum(["none", "low", "medium", "high"]).optional(),
1751
1753
  logprobs: z7.boolean().optional(),
1752
1754
  topLogprobs: z7.number().int().min(0).max(8).optional(),
1753
1755
  /**
@@ -2862,7 +2864,7 @@ var xaiTools = {
2862
2864
  };
2863
2865
 
2864
2866
  // src/version.ts
2865
- var VERSION = true ? "3.0.96" : "0.0.0-test";
2867
+ var VERSION = true ? "3.0.98" : "0.0.0-test";
2866
2868
 
2867
2869
  // src/xai-video-model.ts
2868
2870
  import {