@ai-sdk/openai 3.0.44 → 3.0.45
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 +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- 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 +4 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -3
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +3 -0
- package/package.json +1 -1
- package/src/chat/openai-chat-options.ts +1 -0
- package/src/openai-language-model-capabilities.ts +1 -0
- package/src/responses/openai-responses-options.ts +4 -2
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("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
39
|
-
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.4");
|
|
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,
|
|
@@ -3927,11 +3927,12 @@ var openaiResponsesReasoningModelIds = [
|
|
|
3927
3927
|
"gpt-5.2-chat-latest",
|
|
3928
3928
|
"gpt-5.2-pro",
|
|
3929
3929
|
"gpt-5.2-codex",
|
|
3930
|
+
"gpt-5.3-chat-latest",
|
|
3931
|
+
"gpt-5.3-codex",
|
|
3930
3932
|
"gpt-5.4",
|
|
3931
3933
|
"gpt-5.4-2026-03-05",
|
|
3932
3934
|
"gpt-5.4-pro",
|
|
3933
|
-
"gpt-5.4-pro-2026-03-05"
|
|
3934
|
-
"gpt-5.3-codex"
|
|
3935
|
+
"gpt-5.4-pro-2026-03-05"
|
|
3935
3936
|
];
|
|
3936
3937
|
var openaiResponsesModelIds = [
|
|
3937
3938
|
"gpt-4.1",
|