@ai-sdk/xai 3.0.81 → 3.0.82

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
@@ -1655,6 +1655,12 @@ var xaiResponsesChunkSchema = z6.union([
1655
1655
  usage: xaiResponsesUsageSchema.nullish()
1656
1656
  })
1657
1657
  }),
1658
+ z6.object({
1659
+ type: z6.literal("error"),
1660
+ code: z6.string().nullish(),
1661
+ message: z6.string(),
1662
+ param: z6.string().nullish()
1663
+ }),
1658
1664
  z6.object({
1659
1665
  type: z6.literal("response.done"),
1660
1666
  response: xaiResponsesResponseSchema
@@ -2487,6 +2493,10 @@ var XaiResponsesLanguageModel = class {
2487
2493
  }
2488
2494
  return;
2489
2495
  }
2496
+ if (event.type === "error") {
2497
+ controller.enqueue({ type: "error", error: event });
2498
+ return;
2499
+ }
2490
2500
  if (event.type === "response.custom_tool_call_input.delta" || event.type === "response.custom_tool_call_input.done") {
2491
2501
  return;
2492
2502
  }
@@ -2776,7 +2786,7 @@ var xaiTools = {
2776
2786
  };
2777
2787
 
2778
2788
  // src/version.ts
2779
- var VERSION = true ? "3.0.81" : "0.0.0-test";
2789
+ var VERSION = true ? "3.0.82" : "0.0.0-test";
2780
2790
 
2781
2791
  // src/xai-video-model.ts
2782
2792
  import {