@ai-sdk/openai 3.0.0-beta.100 → 3.0.0-beta.101
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 +7 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +4 -4
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -4
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -84,7 +84,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
|
|
|
84
84
|
const supportsFlexProcessing = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
85
85
|
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");
|
|
86
86
|
const isReasoningModel = !(modelId.startsWith("gpt-3") || modelId.startsWith("gpt-4") || modelId.startsWith("chatgpt-4o") || modelId.startsWith("gpt-5-chat"));
|
|
87
|
-
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1");
|
|
87
|
+
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2");
|
|
88
88
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
89
89
|
return {
|
|
90
90
|
supportsFlexProcessing,
|
|
@@ -2586,7 +2586,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
2586
2586
|
call_id: part.toolCallId,
|
|
2587
2587
|
output: parsedOutput.output
|
|
2588
2588
|
});
|
|
2589
|
-
|
|
2589
|
+
continue;
|
|
2590
2590
|
}
|
|
2591
2591
|
if (hasShellTool && resolvedToolName === "shell" && output.type === "json") {
|
|
2592
2592
|
const parsedOutput = await (0, import_provider_utils22.validateTypes)({
|
|
@@ -2605,7 +2605,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
2605
2605
|
}
|
|
2606
2606
|
}))
|
|
2607
2607
|
});
|
|
2608
|
-
|
|
2608
|
+
continue;
|
|
2609
2609
|
}
|
|
2610
2610
|
if (hasApplyPatchTool && part.toolName === "apply_patch" && output.type === "json") {
|
|
2611
2611
|
const parsedOutput = await (0, import_provider_utils22.validateTypes)({
|
|
@@ -2618,7 +2618,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
2618
2618
|
status: parsedOutput.status,
|
|
2619
2619
|
output: parsedOutput.output
|
|
2620
2620
|
});
|
|
2621
|
-
|
|
2621
|
+
continue;
|
|
2622
2622
|
}
|
|
2623
2623
|
let contentValue;
|
|
2624
2624
|
switch (output.type) {
|