@ai-sdk/openai 3.0.95 → 3.0.97

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.
@@ -3135,7 +3135,9 @@ async function convertToOpenAIResponsesInput({
3135
3135
  if (store && id != null) {
3136
3136
  input.push({ type: "item_reference", id });
3137
3137
  }
3138
- break;
3138
+ if (store || !hasShellTool || resolvedToolName !== "shell") {
3139
+ break;
3140
+ }
3139
3141
  }
3140
3142
  const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || ((_m = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _m : false);
3141
3143
  if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {