@ai-sdk/openai 3.0.0-beta.100 → 3.0.0-beta.102

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.
@@ -36,7 +36,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
36
36
  const supportsFlexProcessing = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
37
37
  const supportsPriorityProcessing = modelId.startsWith("gpt-4") || modelId.startsWith("gpt-5-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-nano") && !modelId.startsWith("gpt-5-chat") || modelId.startsWith("o3") || modelId.startsWith("o4-mini");
38
38
  const isReasoningModel = !(modelId.startsWith("gpt-3") || modelId.startsWith("gpt-4") || modelId.startsWith("chatgpt-4o") || modelId.startsWith("gpt-5-chat"));
39
- const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1");
39
+ const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2");
40
40
  const systemMessageMode = isReasoningModel ? "developer" : "system";
41
41
  return {
42
42
  supportsFlexProcessing,
@@ -2603,7 +2603,7 @@ async function convertToOpenAIResponsesInput({
2603
2603
  call_id: part.toolCallId,
2604
2604
  output: parsedOutput.output
2605
2605
  });
2606
- break;
2606
+ continue;
2607
2607
  }
2608
2608
  if (hasShellTool && resolvedToolName === "shell" && output.type === "json") {
2609
2609
  const parsedOutput = await validateTypes({
@@ -2622,7 +2622,7 @@ async function convertToOpenAIResponsesInput({
2622
2622
  }
2623
2623
  }))
2624
2624
  });
2625
- break;
2625
+ continue;
2626
2626
  }
2627
2627
  if (hasApplyPatchTool && part.toolName === "apply_patch" && output.type === "json") {
2628
2628
  const parsedOutput = await validateTypes({
@@ -2635,7 +2635,7 @@ async function convertToOpenAIResponsesInput({
2635
2635
  status: parsedOutput.status,
2636
2636
  output: parsedOutput.output
2637
2637
  });
2638
- break;
2638
+ continue;
2639
2639
  }
2640
2640
  let contentValue;
2641
2641
  switch (output.type) {