ai 3.3.21 → 3.3.22
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 +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -3490,13 +3490,6 @@ var DefaultStreamTextResult = class {
|
|
3490
3490
|
roundtripFinishReason = chunk.finishReason;
|
3491
3491
|
roundtripProviderMetadata = chunk.experimental_providerMetadata;
|
3492
3492
|
roundtripLogProbs = chunk.logprobs;
|
3493
|
-
controller.enqueue({
|
3494
|
-
type: "roundtrip-finish",
|
3495
|
-
finishReason: chunk.finishReason,
|
3496
|
-
usage: chunk.usage,
|
3497
|
-
experimental_providerMetadata: chunk.experimental_providerMetadata,
|
3498
|
-
logprobs: chunk.logprobs
|
3499
|
-
});
|
3500
3493
|
break;
|
3501
3494
|
case "tool-call-streaming-start":
|
3502
3495
|
case "tool-call-delta": {
|
@@ -3516,6 +3509,13 @@ var DefaultStreamTextResult = class {
|
|
3516
3509
|
},
|
3517
3510
|
// invoke onFinish callback and resolve toolResults promise when the stream is about to close:
|
3518
3511
|
async flush(controller) {
|
3512
|
+
controller.enqueue({
|
3513
|
+
type: "roundtrip-finish",
|
3514
|
+
finishReason: roundtripFinishReason,
|
3515
|
+
usage: roundtripUsage,
|
3516
|
+
experimental_providerMetadata: roundtripProviderMetadata,
|
3517
|
+
logprobs: roundtripLogProbs
|
3518
|
+
});
|
3519
3519
|
const telemetryToolCalls = roundtripToolCalls.length > 0 ? JSON.stringify(roundtripToolCalls) : void 0;
|
3520
3520
|
try {
|
3521
3521
|
doStreamSpan2.setAttributes(
|