@ai-sdk/openai 4.0.40 → 4.0.41

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.
@@ -3708,7 +3708,9 @@ async function convertToOpenAIResponsesInput({
3708
3708
  if (store && id != null) {
3709
3709
  input.push({ type: "item_reference", id });
3710
3710
  }
3711
- break;
3711
+ if (store || !hasShellTool || resolvedToolName !== "shell") {
3712
+ break;
3713
+ }
3712
3714
  }
3713
3715
  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
3716
  if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {