@ai-sdk/openai 3.0.94 → 3.0.96
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 +12 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +4 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/responses/convert-to-openai-responses-input.ts +7 -2
package/dist/internal/index.js
CHANGED
|
@@ -3135,7 +3135,9 @@ async function convertToOpenAIResponsesInput({
|
|
|
3135
3135
|
if (store && id != null) {
|
|
3136
3136
|
input.push({ type: "item_reference", id });
|
|
3137
3137
|
}
|
|
3138
|
-
|
|
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) {
|
|
@@ -3364,7 +3366,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3364
3366
|
continue;
|
|
3365
3367
|
}
|
|
3366
3368
|
processedApprovalIds.add(approvalResponse.approvalId);
|
|
3367
|
-
if (store) {
|
|
3369
|
+
if (store && !hasConversation && !hasPreviousResponseId) {
|
|
3368
3370
|
input.push({
|
|
3369
3371
|
type: "item_reference",
|
|
3370
3372
|
id: approvalResponse.approvalId
|