@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/dist/index.mjs CHANGED
@@ -3266,6 +3266,11 @@ var openaiResponsesChunkSchema = lazySchema17(
3266
3266
  action: z19.object({
3267
3267
  commands: z19.array(z19.string())
3268
3268
  })
3269
+ }),
3270
+ z19.object({
3271
+ type: z19.literal("compaction"),
3272
+ id: z19.string(),
3273
+ encrypted_content: z19.string()
3269
3274
  })
3270
3275
  ])
3271
3276
  }),
@@ -5230,6 +5235,15 @@ var OpenAIResponsesLanguageModel = class {
5230
5235
  });
5231
5236
  }
5232
5237
  delete activeReasoning[value.item.id];
5238
+ } else if (value.item.type === "compaction") {
5239
+ controller.enqueue({
5240
+ type: "compaction",
5241
+ id: value.item.id,
5242
+ encrypted_content: value.item.encrypted_content,
5243
+ providerMetadata: {
5244
+ [providerOptionsName]: { itemId: value.item.id }
5245
+ }
5246
+ });
5233
5247
  }
5234
5248
  } else if (isResponseFunctionCallArgumentsDeltaChunk(value)) {
5235
5249
  const toolCall = ongoingToolCalls[value.output_index];
@@ -5937,7 +5951,7 @@ var OpenAITranscriptionModel = class {
5937
5951
  };
5938
5952
 
5939
5953
  // src/version.ts
5940
- var VERSION = true ? "3.0.28" : "0.0.0-test";
5954
+ var VERSION = true ? "3.0.29" : "0.0.0-test";
5941
5955
 
5942
5956
  // src/openai-provider.ts
5943
5957
  function createOpenAI(options = {}) {