@ai-sdk/openai 2.0.97 → 2.0.99
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +2 -2
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.js +7 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +7 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -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") || modelId.startsWith("gpt-5.2");
|
|
39
|
+
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4");
|
|
40
40
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
41
41
|
return {
|
|
42
42
|
supportsFlexProcessing,
|
|
@@ -3040,7 +3040,12 @@ var openaiResponsesReasoningModelIds = [
|
|
|
3040
3040
|
"gpt-5.2-chat-latest",
|
|
3041
3041
|
"gpt-5.2-pro",
|
|
3042
3042
|
"gpt-5.2-codex",
|
|
3043
|
-
"gpt-5.3-
|
|
3043
|
+
"gpt-5.3-chat-latest",
|
|
3044
|
+
"gpt-5.3-codex",
|
|
3045
|
+
"gpt-5.4",
|
|
3046
|
+
"gpt-5.4-2026-03-05",
|
|
3047
|
+
"gpt-5.4-pro",
|
|
3048
|
+
"gpt-5.4-pro-2026-03-05"
|
|
3044
3049
|
];
|
|
3045
3050
|
var openaiResponsesModelIds = [
|
|
3046
3051
|
"gpt-4.1",
|