ai 6.0.0-beta.32 → 6.0.0-beta.33
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 +6 -0
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -716,7 +716,7 @@ import {
|
|
|
716
716
|
} from "@ai-sdk/provider-utils";
|
|
717
717
|
|
|
718
718
|
// src/version.ts
|
|
719
|
-
var VERSION = true ? "6.0.0-beta.
|
|
719
|
+
var VERSION = true ? "6.0.0-beta.33" : "0.0.0-test";
|
|
720
720
|
|
|
721
721
|
// src/util/download/download.ts
|
|
722
722
|
var download = async ({ url }) => {
|
|
@@ -2782,17 +2782,21 @@ async function generateText({
|
|
|
2782
2782
|
steps,
|
|
2783
2783
|
totalUsage
|
|
2784
2784
|
}));
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
resolvedOutput: await (output == null ? void 0 : output.parseOutput(
|
|
2785
|
+
let resolvedOutput;
|
|
2786
|
+
if (lastStep.finishReason === "stop") {
|
|
2787
|
+
resolvedOutput = await (output == null ? void 0 : output.parseOutput(
|
|
2789
2788
|
{ text: lastStep.text },
|
|
2790
2789
|
{
|
|
2791
2790
|
response: lastStep.response,
|
|
2792
2791
|
usage: lastStep.usage,
|
|
2793
2792
|
finishReason: lastStep.finishReason
|
|
2794
2793
|
}
|
|
2795
|
-
))
|
|
2794
|
+
));
|
|
2795
|
+
}
|
|
2796
|
+
return new DefaultGenerateTextResult({
|
|
2797
|
+
steps,
|
|
2798
|
+
totalUsage,
|
|
2799
|
+
resolvedOutput
|
|
2796
2800
|
});
|
|
2797
2801
|
}
|
|
2798
2802
|
});
|