@ai-sdk/openai 4.0.37 → 4.0.38

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.38
4
+
5
+ ### Patch Changes
6
+
7
+ - d302134: Keep client-executed function calls paired with their outputs when chaining OpenAI Responses with a previous response ID.
8
+
3
9
  ## 4.0.37
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -4691,10 +4691,10 @@ async function convertToOpenAIResponsesInput({
4691
4691
  }
4692
4692
  break;
4693
4693
  }
4694
- if (hasPreviousResponseId && store && id != null) {
4694
+ 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
+ if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
4695
4696
  break;
4696
4697
  }
4697
- 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);
4698
4698
  if (store && id != null && isProviderDefinedToolCall) {
4699
4699
  input.push({ type: "item_reference", id });
4700
4700
  break;
@@ -10021,7 +10021,7 @@ var OpenAISkills = class {
10021
10021
  };
10022
10022
 
10023
10023
  // src/version.ts
10024
- var VERSION = true ? "4.0.37" : "0.0.0-test";
10024
+ var VERSION = true ? "4.0.38" : "0.0.0-test";
10025
10025
 
10026
10026
  // src/openai-provider.ts
10027
10027
  function createOpenAI(options = {}) {