@zenning/openai 3.0.18 → 3.0.19

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
@@ -2638,6 +2638,9 @@ async function convertToOpenAIResponsesInput({
2638
2638
  input.push({ type: "item_reference", id });
2639
2639
  break;
2640
2640
  }
2641
+ if (store && id != null && previousResponseId) {
2642
+ break;
2643
+ }
2641
2644
  input.push({
2642
2645
  role: "assistant",
2643
2646
  content: [{ type: "output_text", text: part.text }],
@@ -2657,6 +2660,9 @@ async function convertToOpenAIResponsesInput({
2657
2660
  input.push({ type: "item_reference", id });
2658
2661
  break;
2659
2662
  }
2663
+ if (store && id != null && previousResponseId) {
2664
+ break;
2665
+ }
2660
2666
  const resolvedToolName = toolNameMapping.toProviderToolName(
2661
2667
  part.toolName
2662
2668
  );
@@ -5864,7 +5870,7 @@ var OpenAITranscriptionModel = class {
5864
5870
  };
5865
5871
 
5866
5872
  // src/version.ts
5867
- var VERSION = true ? "3.0.17" : "0.0.0-test";
5873
+ var VERSION = true ? "3.0.19" : "0.0.0-test";
5868
5874
 
5869
5875
  // src/openai-provider.ts
5870
5876
  function createOpenAI(options = {}) {