@zenning/openai 3.0.15 → 3.0.16

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.
@@ -2490,13 +2490,14 @@ async function convertToOpenAIResponsesInput({
2490
2490
  hasLocalShellTool = false,
2491
2491
  hasShellTool = false,
2492
2492
  hasApplyPatchTool = false,
2493
- compactionInput
2493
+ compactionInput,
2494
+ providerOptions
2494
2495
  }) {
2495
2496
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
2496
2497
  const input = [];
2497
2498
  const warnings = [];
2498
2499
  const processedApprovalIds = /* @__PURE__ */ new Set();
2499
- const skipItemReferences = (providerOptionsName && (store == null ? void 0 : store.skipItemReferencesForApproval)) === true;
2500
+ const skipItemReferences = (providerOptions == null ? void 0 : providerOptions.skipItemReferencesForApproval) === true;
2500
2501
  console.log("[OpenAI Provider] Skip item references flag:", skipItemReferences);
2501
2502
  if (compactionInput && compactionInput.length > 0) {
2502
2503
  input.push(...compactionInput);
@@ -2684,12 +2685,12 @@ async function convertToOpenAIResponsesInput({
2684
2685
  break;
2685
2686
  }
2686
2687
  case "reasoning": {
2687
- const providerOptions = await parseProviderOptions6({
2688
+ const providerOptions2 = await parseProviderOptions6({
2688
2689
  provider: providerOptionsName,
2689
2690
  providerOptions: part.providerOptions,
2690
2691
  schema: openaiResponsesReasoningProviderOptionsSchema
2691
2692
  });
2692
- const reasoningId = providerOptions == null ? void 0 : providerOptions.itemId;
2693
+ const reasoningId = providerOptions2 == null ? void 0 : providerOptions2.itemId;
2693
2694
  if (reasoningId != null) {
2694
2695
  const reasoningMessage = reasoningMessages[reasoningId];
2695
2696
  if (store) {
@@ -2718,14 +2719,14 @@ async function convertToOpenAIResponsesInput({
2718
2719
  reasoningMessages[reasoningId] = {
2719
2720
  type: "reasoning",
2720
2721
  id: reasoningId,
2721
- encrypted_content: providerOptions == null ? void 0 : providerOptions.reasoningEncryptedContent,
2722
+ encrypted_content: providerOptions2 == null ? void 0 : providerOptions2.reasoningEncryptedContent,
2722
2723
  summary: summaryParts
2723
2724
  };
2724
2725
  input.push(reasoningMessages[reasoningId]);
2725
2726
  } else {
2726
2727
  reasoningMessage.summary.push(...summaryParts);
2727
- if ((providerOptions == null ? void 0 : providerOptions.reasoningEncryptedContent) != null) {
2728
- reasoningMessage.encrypted_content = providerOptions.reasoningEncryptedContent;
2728
+ if ((providerOptions2 == null ? void 0 : providerOptions2.reasoningEncryptedContent) != null) {
2729
+ reasoningMessage.encrypted_content = providerOptions2.reasoningEncryptedContent;
2729
2730
  }
2730
2731
  }
2731
2732
  }
@@ -4432,7 +4433,8 @@ var OpenAIResponsesLanguageModel = class {
4432
4433
  hasLocalShellTool: hasOpenAITool("openai.local_shell"),
4433
4434
  hasShellTool: hasOpenAITool("openai.shell"),
4434
4435
  hasApplyPatchTool: hasOpenAITool("openai.apply_patch"),
4435
- compactionInput: openaiOptions == null ? void 0 : openaiOptions.compactionInput
4436
+ compactionInput: openaiOptions == null ? void 0 : openaiOptions.compactionInput,
4437
+ providerOptions: openaiOptions
4436
4438
  });
4437
4439
  warnings.push(...inputWarnings);
4438
4440
  const strictJsonSchema = (_d = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _d : true;