@zenning/openai 3.0.28 → 3.0.29
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 +9 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +14 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +14 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -3210,6 +3210,11 @@ var openaiResponsesChunkSchema = lazySchema14(
|
|
|
3210
3210
|
action: z16.object({
|
|
3211
3211
|
commands: z16.array(z16.string())
|
|
3212
3212
|
})
|
|
3213
|
+
}),
|
|
3214
|
+
z16.object({
|
|
3215
|
+
type: z16.literal("compaction"),
|
|
3216
|
+
id: z16.string(),
|
|
3217
|
+
encrypted_content: z16.string()
|
|
3213
3218
|
})
|
|
3214
3219
|
])
|
|
3215
3220
|
}),
|
|
@@ -5490,6 +5495,15 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
5490
5495
|
});
|
|
5491
5496
|
}
|
|
5492
5497
|
delete activeReasoning[value.item.id];
|
|
5498
|
+
} else if (value.item.type === "compaction") {
|
|
5499
|
+
controller.enqueue({
|
|
5500
|
+
type: "compaction",
|
|
5501
|
+
id: value.item.id,
|
|
5502
|
+
encrypted_content: value.item.encrypted_content,
|
|
5503
|
+
providerMetadata: {
|
|
5504
|
+
[providerOptionsName]: { itemId: value.item.id }
|
|
5505
|
+
}
|
|
5506
|
+
});
|
|
5493
5507
|
}
|
|
5494
5508
|
} else if (isResponseFunctionCallArgumentsDeltaChunk(value)) {
|
|
5495
5509
|
const toolCall = ongoingToolCalls[value.output_index];
|