@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/package.json
CHANGED
|
@@ -440,7 +440,12 @@ export async function convertToOpenAIResponsesInput({
|
|
|
440
440
|
if (store && id != null) {
|
|
441
441
|
input.push({ type: 'item_reference', id });
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
|
|
444
|
+
// Without response storage, shell calls must be reconstructed
|
|
445
|
+
// together with their matching shell_call_output.
|
|
446
|
+
if (store || !hasShellTool || resolvedToolName !== 'shell') {
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
444
449
|
}
|
|
445
450
|
|
|
446
451
|
const isProviderDefinedToolCall =
|
|
@@ -898,7 +903,7 @@ export async function convertToOpenAIResponsesInput({
|
|
|
898
903
|
}
|
|
899
904
|
processedApprovalIds.add(approvalResponse.approvalId);
|
|
900
905
|
|
|
901
|
-
if (store) {
|
|
906
|
+
if (store && !hasConversation && !hasPreviousResponseId) {
|
|
902
907
|
input.push({
|
|
903
908
|
type: 'item_reference',
|
|
904
909
|
id: approvalResponse.approvalId,
|