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/dist/index.mjs
CHANGED
@@ -4638,12 +4638,7 @@ var DefaultStreamTextResult = class {
|
|
4638
4638
|
recordedResponse.modelId = part.response.modelId;
|
4639
4639
|
recordedResponse.headers = part.response.headers;
|
4640
4640
|
recordedResponse.msToFirstChunk = part.response.msToFirstChunk;
|
4641
|
-
|
4642
|
-
recordedUsage = {
|
4643
|
-
...part.usage,
|
4644
|
-
msToFirstChunk: part.response.msToFirstChunk,
|
4645
|
-
msToFinish: part.response.msToFinish
|
4646
|
-
};
|
4641
|
+
recordedUsage = part.usage;
|
4647
4642
|
recordedFinishReason = part.finishReason;
|
4648
4643
|
}
|
4649
4644
|
},
|
@@ -4876,7 +4871,6 @@ var DefaultStreamTextResult = class {
|
|
4876
4871
|
let stepProviderMetadata;
|
4877
4872
|
let stepFirstChunk = true;
|
4878
4873
|
let msToFirstChunk_ = void 0;
|
4879
|
-
let msToFinish_ = void 0;
|
4880
4874
|
let stepText = "";
|
4881
4875
|
let fullStepText = stepType2 === "continue" ? previousStepText : "";
|
4882
4876
|
let stepLogProbs;
|
@@ -4976,7 +4970,6 @@ var DefaultStreamTextResult = class {
|
|
4976
4970
|
"ai.response.msToFinish": msToFinish,
|
4977
4971
|
"ai.response.avgCompletionTokensPerSecond": 1e3 * stepUsage.completionTokens / msToFinish
|
4978
4972
|
});
|
4979
|
-
msToFinish_ = msToFinish;
|
4980
4973
|
console.log({
|
4981
4974
|
"ai.response.msToFinish": msToFinish,
|
4982
4975
|
"ai.response.avgCompletionTokensPerSecond": 1e3 * stepUsage.completionTokens / msToFinish
|
@@ -5079,8 +5072,7 @@ var DefaultStreamTextResult = class {
|
|
5079
5072
|
response: {
|
5080
5073
|
...stepResponse,
|
5081
5074
|
headers: rawResponse == null ? void 0 : rawResponse.headers,
|
5082
|
-
msToFirstChunk: msToFirstChunk_
|
5083
|
-
msToFinish: msToFinish_
|
5075
|
+
msToFirstChunk: msToFirstChunk_
|
5084
5076
|
}
|
5085
5077
|
});
|
5086
5078
|
self.closeStream();
|