@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.
@@ -3189,6 +3189,11 @@ var openaiResponsesChunkSchema = (0, import_provider_utils23.lazySchema)(
3189
3189
  action: import_v416.z.object({
3190
3190
  commands: import_v416.z.array(import_v416.z.string())
3191
3191
  })
3192
+ }),
3193
+ import_v416.z.object({
3194
+ type: import_v416.z.literal("compaction"),
3195
+ id: import_v416.z.string(),
3196
+ encrypted_content: import_v416.z.string()
3192
3197
  })
3193
3198
  ])
3194
3199
  }),
@@ -5443,6 +5448,15 @@ var OpenAIResponsesLanguageModel = class {
5443
5448
  });
5444
5449
  }
5445
5450
  delete activeReasoning[value.item.id];
5451
+ } else if (value.item.type === "compaction") {
5452
+ controller.enqueue({
5453
+ type: "compaction",
5454
+ id: value.item.id,
5455
+ encrypted_content: value.item.encrypted_content,
5456
+ providerMetadata: {
5457
+ [providerOptionsName]: { itemId: value.item.id }
5458
+ }
5459
+ });
5446
5460
  }
5447
5461
  } else if (isResponseFunctionCallArgumentsDeltaChunk(value)) {
5448
5462
  const toolCall = ongoingToolCalls[value.output_index];