@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.
package/dist/index.mjs CHANGED
@@ -2546,13 +2546,14 @@ async function convertToOpenAIResponsesInput({
2546
2546
  hasLocalShellTool = false,
2547
2547
  hasShellTool = false,
2548
2548
  hasApplyPatchTool = false,
2549
- compactionInput
2549
+ compactionInput,
2550
+ providerOptions
2550
2551
  }) {
2551
2552
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
2552
2553
  const input = [];
2553
2554
  const warnings = [];
2554
2555
  const processedApprovalIds = /* @__PURE__ */ new Set();
2555
- const skipItemReferences = (providerOptionsName && (store == null ? void 0 : store.skipItemReferencesForApproval)) === true;
2556
+ const skipItemReferences = (providerOptions == null ? void 0 : providerOptions.skipItemReferencesForApproval) === true;
2556
2557
  console.log("[OpenAI Provider] Skip item references flag:", skipItemReferences);
2557
2558
  if (compactionInput && compactionInput.length > 0) {
2558
2559
  input.push(...compactionInput);
@@ -2740,12 +2741,12 @@ async function convertToOpenAIResponsesInput({
2740
2741
  break;
2741
2742
  }
2742
2743
  case "reasoning": {
2743
- const providerOptions = await parseProviderOptions4({
2744
+ const providerOptions2 = await parseProviderOptions4({
2744
2745
  provider: providerOptionsName,
2745
2746
  providerOptions: part.providerOptions,
2746
2747
  schema: openaiResponsesReasoningProviderOptionsSchema
2747
2748
  });
2748
- const reasoningId = providerOptions == null ? void 0 : providerOptions.itemId;
2749
+ const reasoningId = providerOptions2 == null ? void 0 : providerOptions2.itemId;
2749
2750
  if (reasoningId != null) {
2750
2751
  const reasoningMessage = reasoningMessages[reasoningId];
2751
2752
  if (store) {
@@ -2774,14 +2775,14 @@ async function convertToOpenAIResponsesInput({
2774
2775
  reasoningMessages[reasoningId] = {
2775
2776
  type: "reasoning",
2776
2777
  id: reasoningId,
2777
- encrypted_content: providerOptions == null ? void 0 : providerOptions.reasoningEncryptedContent,
2778
+ encrypted_content: providerOptions2 == null ? void 0 : providerOptions2.reasoningEncryptedContent,
2778
2779
  summary: summaryParts
2779
2780
  };
2780
2781
  input.push(reasoningMessages[reasoningId]);
2781
2782
  } else {
2782
2783
  reasoningMessage.summary.push(...summaryParts);
2783
- if ((providerOptions == null ? void 0 : providerOptions.reasoningEncryptedContent) != null) {
2784
- reasoningMessage.encrypted_content = providerOptions.reasoningEncryptedContent;
2784
+ if ((providerOptions2 == null ? void 0 : providerOptions2.reasoningEncryptedContent) != null) {
2785
+ reasoningMessage.encrypted_content = providerOptions2.reasoningEncryptedContent;
2785
2786
  }
2786
2787
  }
2787
2788
  }
@@ -4172,7 +4173,8 @@ var OpenAIResponsesLanguageModel = class {
4172
4173
  hasLocalShellTool: hasOpenAITool("openai.local_shell"),
4173
4174
  hasShellTool: hasOpenAITool("openai.shell"),
4174
4175
  hasApplyPatchTool: hasOpenAITool("openai.apply_patch"),
4175
- compactionInput: openaiOptions == null ? void 0 : openaiOptions.compactionInput
4176
+ compactionInput: openaiOptions == null ? void 0 : openaiOptions.compactionInput,
4177
+ providerOptions: openaiOptions
4176
4178
  });
4177
4179
  warnings.push(...inputWarnings);
4178
4180
  const strictJsonSchema = (_d = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _d : true;
@@ -5870,7 +5872,7 @@ var OpenAITranscriptionModel = class {
5870
5872
  };
5871
5873
 
5872
5874
  // src/version.ts
5873
- var VERSION = true ? "3.0.14" : "0.0.0-test";
5875
+ var VERSION = true ? "3.0.15" : "0.0.0-test";
5874
5876
 
5875
5877
  // src/openai-provider.ts
5876
5878
  function createOpenAI(options = {}) {