ai 4.1.22 → 4.1.24
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 +12 -0
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -5455,8 +5455,6 @@ var DefaultStreamTextResult = class {
|
|
5455
5455
|
transform({ part }, controller) {
|
5456
5456
|
if (part.type === "text-delta") {
|
5457
5457
|
controller.enqueue(part.textDelta);
|
5458
|
-
} else if (part.type === "error") {
|
5459
|
-
controller.error(part.error);
|
5460
5458
|
}
|
5461
5459
|
}
|
5462
5460
|
})
|
@@ -5474,6 +5472,11 @@ var DefaultStreamTextResult = class {
|
|
5474
5472
|
)
|
5475
5473
|
);
|
5476
5474
|
}
|
5475
|
+
async consumeStream() {
|
5476
|
+
const stream = this.fullStream;
|
5477
|
+
for await (const part of stream) {
|
5478
|
+
}
|
5479
|
+
}
|
5477
5480
|
get experimental_partialOutputStream() {
|
5478
5481
|
if (this.output == null) {
|
5479
5482
|
throw new NoOutputSpecifiedError();
|