@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1652,6 +1652,12 @@ var xaiResponsesChunkSchema = import_v46.z.union([
|
|
|
1652
1652
|
usage: xaiResponsesUsageSchema.nullish()
|
|
1653
1653
|
})
|
|
1654
1654
|
}),
|
|
1655
|
+
import_v46.z.object({
|
|
1656
|
+
type: import_v46.z.literal("error"),
|
|
1657
|
+
code: import_v46.z.string().nullish(),
|
|
1658
|
+
message: import_v46.z.string(),
|
|
1659
|
+
param: import_v46.z.string().nullish()
|
|
1660
|
+
}),
|
|
1655
1661
|
import_v46.z.object({
|
|
1656
1662
|
type: import_v46.z.literal("response.done"),
|
|
1657
1663
|
response: xaiResponsesResponseSchema
|
|
@@ -2466,6 +2472,10 @@ var XaiResponsesLanguageModel = class {
|
|
|
2466
2472
|
}
|
|
2467
2473
|
return;
|
|
2468
2474
|
}
|
|
2475
|
+
if (event.type === "error") {
|
|
2476
|
+
controller.enqueue({ type: "error", error: event });
|
|
2477
|
+
return;
|
|
2478
|
+
}
|
|
2469
2479
|
if (event.type === "response.custom_tool_call_input.delta" || event.type === "response.custom_tool_call_input.done") {
|
|
2470
2480
|
return;
|
|
2471
2481
|
}
|
|
@@ -2755,7 +2765,7 @@ var xaiTools = {
|
|
|
2755
2765
|
};
|
|
2756
2766
|
|
|
2757
2767
|
// src/version.ts
|
|
2758
|
-
var VERSION = true ? "3.0.
|
|
2768
|
+
var VERSION = true ? "3.0.82" : "0.0.0-test";
|
|
2759
2769
|
|
|
2760
2770
|
// src/xai-video-model.ts
|
|
2761
2771
|
var import_provider6 = require("@ai-sdk/provider");
|