@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.mjs
CHANGED
|
@@ -3177,7 +3177,9 @@ async function convertToOpenAIResponsesInput({
|
|
|
3177
3177
|
if (store && id != null) {
|
|
3178
3178
|
input.push({ type: "item_reference", id });
|
|
3179
3179
|
}
|
|
3180
|
-
|
|
3180
|
+
if (store || !hasShellTool || resolvedToolName !== "shell") {
|
|
3181
|
+
break;
|
|
3182
|
+
}
|
|
3181
3183
|
}
|
|
3182
3184
|
const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || ((_m = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _m : false);
|
|
3183
3185
|
if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
|
|
@@ -3406,7 +3408,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3406
3408
|
continue;
|
|
3407
3409
|
}
|
|
3408
3410
|
processedApprovalIds.add(approvalResponse.approvalId);
|
|
3409
|
-
if (store) {
|
|
3411
|
+
if (store && !hasConversation && !hasPreviousResponseId) {
|
|
3410
3412
|
input.push({
|
|
3411
3413
|
type: "item_reference",
|
|
3412
3414
|
id: approvalResponse.approvalId
|