ai 0.0.0-156c9f7b-20250115085202 → 0.0.0-764dcadb-20250115082903
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 +1 -1
- package/dist/index.js +2 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
@@ -4674,12 +4674,7 @@ var DefaultStreamTextResult = class {
|
|
4674
4674
|
recordedResponse.modelId = part.response.modelId;
|
4675
4675
|
recordedResponse.headers = part.response.headers;
|
4676
4676
|
recordedResponse.msToFirstChunk = part.response.msToFirstChunk;
|
4677
|
-
|
4678
|
-
recordedUsage = {
|
4679
|
-
...part.usage,
|
4680
|
-
msToFirstChunk: part.response.msToFirstChunk,
|
4681
|
-
msToFinish: part.response.msToFinish
|
4682
|
-
};
|
4677
|
+
recordedUsage = part.usage;
|
4683
4678
|
recordedFinishReason = part.finishReason;
|
4684
4679
|
}
|
4685
4680
|
},
|
@@ -4912,7 +4907,6 @@ var DefaultStreamTextResult = class {
|
|
4912
4907
|
let stepProviderMetadata;
|
4913
4908
|
let stepFirstChunk = true;
|
4914
4909
|
let msToFirstChunk_ = void 0;
|
4915
|
-
let msToFinish_ = void 0;
|
4916
4910
|
let stepText = "";
|
4917
4911
|
let fullStepText = stepType2 === "continue" ? previousStepText : "";
|
4918
4912
|
let stepLogProbs;
|
@@ -5012,7 +5006,6 @@ var DefaultStreamTextResult = class {
|
|
5012
5006
|
"ai.response.msToFinish": msToFinish,
|
5013
5007
|
"ai.response.avgCompletionTokensPerSecond": 1e3 * stepUsage.completionTokens / msToFinish
|
5014
5008
|
});
|
5015
|
-
msToFinish_ = msToFinish;
|
5016
5009
|
console.log({
|
5017
5010
|
"ai.response.msToFinish": msToFinish,
|
5018
5011
|
"ai.response.avgCompletionTokensPerSecond": 1e3 * stepUsage.completionTokens / msToFinish
|
@@ -5115,8 +5108,7 @@ var DefaultStreamTextResult = class {
|
|
5115
5108
|
response: {
|
5116
5109
|
...stepResponse,
|
5117
5110
|
headers: rawResponse == null ? void 0 : rawResponse.headers,
|
5118
|
-
msToFirstChunk: msToFirstChunk_
|
5119
|
-
msToFinish: msToFinish_
|
5111
|
+
msToFirstChunk: msToFirstChunk_
|
5120
5112
|
}
|
5121
5113
|
});
|
5122
5114
|
self.closeStream();
|