ai 4.0.16 → 4.0.17
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.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -4228,7 +4228,7 @@ function streamText({
|
|
4228
4228
|
tools,
|
4229
4229
|
toolChoice,
|
4230
4230
|
toolCallStreaming,
|
4231
|
-
transform,
|
4231
|
+
transform: transform == null ? void 0 : transform({ tools }),
|
4232
4232
|
activeTools,
|
4233
4233
|
repairToolCall,
|
4234
4234
|
maxSteps,
|
@@ -5010,7 +5010,7 @@ function smoothStream({
|
|
5010
5010
|
_internal: { delay: delay2 = delay } = {}
|
5011
5011
|
} = {}) {
|
5012
5012
|
let buffer = "";
|
5013
|
-
return new TransformStream({
|
5013
|
+
return () => new TransformStream({
|
5014
5014
|
async transform(chunk, controller) {
|
5015
5015
|
if (chunk.type === "step-finish") {
|
5016
5016
|
if (buffer.length > 0) {
|