@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3198,6 +3198,11 @@ var openaiResponsesChunkSchema = (0, import_provider_utils24.lazySchema)(
|
|
|
3198
3198
|
action: import_v419.z.object({
|
|
3199
3199
|
commands: import_v419.z.array(import_v419.z.string())
|
|
3200
3200
|
})
|
|
3201
|
+
}),
|
|
3202
|
+
import_v419.z.object({
|
|
3203
|
+
type: import_v419.z.literal("compaction"),
|
|
3204
|
+
id: import_v419.z.string(),
|
|
3205
|
+
encrypted_content: import_v419.z.string()
|
|
3201
3206
|
})
|
|
3202
3207
|
])
|
|
3203
3208
|
}),
|
|
@@ -5160,6 +5165,15 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
5160
5165
|
});
|
|
5161
5166
|
}
|
|
5162
5167
|
delete activeReasoning[value.item.id];
|
|
5168
|
+
} else if (value.item.type === "compaction") {
|
|
5169
|
+
controller.enqueue({
|
|
5170
|
+
type: "compaction",
|
|
5171
|
+
id: value.item.id,
|
|
5172
|
+
encrypted_content: value.item.encrypted_content,
|
|
5173
|
+
providerMetadata: {
|
|
5174
|
+
[providerOptionsName]: { itemId: value.item.id }
|
|
5175
|
+
}
|
|
5176
|
+
});
|
|
5163
5177
|
}
|
|
5164
5178
|
} else if (isResponseFunctionCallArgumentsDeltaChunk(value)) {
|
|
5165
5179
|
const toolCall = ongoingToolCalls[value.output_index];
|
|
@@ -5855,7 +5869,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5855
5869
|
};
|
|
5856
5870
|
|
|
5857
5871
|
// src/version.ts
|
|
5858
|
-
var VERSION = true ? "3.0.
|
|
5872
|
+
var VERSION = true ? "3.0.29" : "0.0.0-test";
|
|
5859
5873
|
|
|
5860
5874
|
// src/openai-provider.ts
|
|
5861
5875
|
function createOpenAI(options = {}) {
|