@ai-sdk/openai 3.0.82 → 3.0.83
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 +9 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -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 +6 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +6 -2
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +4 -0
- package/package.json +3 -3
- package/src/chat/openai-chat-options.ts +4 -0
- package/src/openai-language-model-capabilities.ts +2 -1
- package/src/responses/openai-responses-options.ts +8 -0
package/dist/internal/index.mjs
CHANGED
|
@@ -35,7 +35,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
|
|
|
35
35
|
const supportsFlexProcessing = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
36
36
|
const supportsPriorityProcessing = modelId.startsWith("gpt-4") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-nano") && !modelId.startsWith("gpt-5-chat") && !modelId.startsWith("gpt-5.4-nano") || modelId.startsWith("o3") || modelId.startsWith("o4-mini");
|
|
37
37
|
const isReasoningModel = modelId.startsWith("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
38
|
-
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4") || modelId.startsWith("gpt-5.5");
|
|
38
|
+
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4") || modelId.startsWith("gpt-5.5") || modelId.startsWith("gpt-5.6");
|
|
39
39
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
40
40
|
return {
|
|
41
41
|
supportsFlexProcessing,
|
|
@@ -4431,7 +4431,11 @@ var openaiResponsesReasoningModelIds = [
|
|
|
4431
4431
|
"gpt-5.4-pro",
|
|
4432
4432
|
"gpt-5.4-pro-2026-03-05",
|
|
4433
4433
|
"gpt-5.5",
|
|
4434
|
-
"gpt-5.5-2026-04-23"
|
|
4434
|
+
"gpt-5.5-2026-04-23",
|
|
4435
|
+
"gpt-5.6",
|
|
4436
|
+
"gpt-5.6-luna",
|
|
4437
|
+
"gpt-5.6-sol",
|
|
4438
|
+
"gpt-5.6-terra"
|
|
4435
4439
|
];
|
|
4436
4440
|
var openaiResponsesModelIds = [
|
|
4437
4441
|
"gpt-4.1",
|