@ai-sdk/openai 4.0.37 → 4.0.39

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.
@@ -3710,10 +3710,10 @@ async function convertToOpenAIResponsesInput({
3710
3710
  }
3711
3711
  break;
3712
3712
  }
3713
- if (hasPreviousResponseId && store && id != null) {
3713
+ const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || hasComputerTool && resolvedToolName === "computer" || ((_o = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _o : false);
3714
+ if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
3714
3715
  break;
3715
3716
  }
3716
- const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || hasComputerTool && resolvedToolName === "computer" || ((_o = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _o : false);
3717
3717
  if (store && id != null && isProviderDefinedToolCall) {
3718
3718
  input.push({ type: "item_reference", id });
3719
3719
  break;