@ai-sdk/openai 4.0.39 → 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,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 4.0.40
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e19a4a6: Avoid duplicate MCP approval request references when continuing stored OpenAI Responses.
|
|
14
|
+
|
|
3
15
|
## 4.0.39
|
|
4
16
|
|
|
5
17
|
### 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
|
-
|
|
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) {
|
|
@@ -5009,7 +5011,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
5009
5011
|
continue;
|
|
5010
5012
|
}
|
|
5011
5013
|
processedApprovalIds.add(approvalResponse.approvalId);
|
|
5012
|
-
if (store) {
|
|
5014
|
+
if (store && !hasConversation && !hasPreviousResponseId) {
|
|
5013
5015
|
input.push({
|
|
5014
5016
|
type: "item_reference",
|
|
5015
5017
|
id: approvalResponse.approvalId
|
|
@@ -10021,7 +10023,7 @@ var OpenAISkills = class {
|
|
|
10021
10023
|
};
|
|
10022
10024
|
|
|
10023
10025
|
// src/version.ts
|
|
10024
|
-
var VERSION = true ? "4.0.
|
|
10026
|
+
var VERSION = true ? "4.0.41" : "0.0.0-test";
|
|
10025
10027
|
|
|
10026
10028
|
// src/openai-provider.ts
|
|
10027
10029
|
function createOpenAI(options = {}) {
|