@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.41
4
+
5
+ ### Patch Changes
6
+
7
+ - 59d6def: Reconstruct provider-executed shell calls when continuing OpenAI Responses with storage disabled.
8
+
3
9
  ## 4.0.40
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -4689,7 +4689,9 @@ async function convertToOpenAIResponsesInput({
4689
4689
  if (store && id != null) {
4690
4690
  input.push({ type: "item_reference", id });
4691
4691
  }
4692
- break;
4692
+ if (store || !hasShellTool || resolvedToolName !== "shell") {
4693
+ break;
4694
+ }
4693
4695
  }
4694
4696
  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);
4695
4697
  if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
@@ -10021,7 +10023,7 @@ var OpenAISkills = class {
10021
10023
  };
10022
10024
 
10023
10025
  // src/version.ts
10024
- var VERSION = true ? "4.0.40" : "0.0.0-test";
10026
+ var VERSION = true ? "4.0.41" : "0.0.0-test";
10025
10027
 
10026
10028
  // src/openai-provider.ts
10027
10029
  function createOpenAI(options = {}) {