@ai-sdk/openai 3.0.64 → 3.0.65

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
@@ -2840,6 +2840,7 @@ async function convertToOpenAIResponsesInput({
2840
2840
  passThroughUnsupportedFiles = false,
2841
2841
  store,
2842
2842
  hasConversation = false,
2843
+ hasPreviousResponseId = false,
2843
2844
  hasLocalShellTool = false,
2844
2845
  hasShellTool = false,
2845
2846
  hasApplyPatchTool = false,
@@ -2982,6 +2983,9 @@ async function convertToOpenAIResponsesInput({
2982
2983
  break;
2983
2984
  }
2984
2985
  if (store && id != null) {
2986
+ if (hasPreviousResponseId) {
2987
+ break;
2988
+ }
2985
2989
  input.push({ type: "item_reference", id });
2986
2990
  break;
2987
2991
  }
@@ -3126,7 +3130,7 @@ async function convertToOpenAIResponsesInput({
3126
3130
  schema: openaiResponsesReasoningProviderOptionsSchema
3127
3131
  });
3128
3132
  const reasoningId = providerOptions == null ? void 0 : providerOptions.itemId;
3129
- if (hasConversation && reasoningId != null) {
3133
+ if ((hasConversation || hasPreviousResponseId) && reasoningId != null) {
3130
3134
  break;
3131
3135
  }
3132
3136
  if (reasoningId != null) {
@@ -4967,6 +4971,7 @@ var OpenAIResponsesLanguageModel = class {
4967
4971
  passThroughUnsupportedFiles: (_d = openaiOptions == null ? void 0 : openaiOptions.passThroughUnsupportedFiles) != null ? _d : false,
4968
4972
  store: (_e = openaiOptions == null ? void 0 : openaiOptions.store) != null ? _e : true,
4969
4973
  hasConversation: (openaiOptions == null ? void 0 : openaiOptions.conversation) != null,
4974
+ hasPreviousResponseId: (openaiOptions == null ? void 0 : openaiOptions.previousResponseId) != null,
4970
4975
  hasLocalShellTool: hasOpenAITool("openai.local_shell"),
4971
4976
  hasShellTool: hasOpenAITool("openai.shell"),
4972
4977
  hasApplyPatchTool: hasOpenAITool("openai.apply_patch"),
@@ -6922,7 +6927,7 @@ var OpenAITranscriptionModel = class {
6922
6927
  };
6923
6928
 
6924
6929
  // src/version.ts
6925
- var VERSION = true ? "3.0.64" : "0.0.0-test";
6930
+ var VERSION = true ? "3.0.65" : "0.0.0-test";
6926
6931
 
6927
6932
  // src/openai-provider.ts
6928
6933
  function createOpenAI(options = {}) {