@ai-sdk/openai 3.0.115 → 3.0.116
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 +10 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +5 -5
- package/dist/internal/index.d.ts +5 -5
- package/dist/internal/index.js +7 -4
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +7 -4
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +5 -3
- package/package.json +3 -3
- package/src/chat/openai-chat-options.ts +2 -0
- package/src/openai-language-model-capabilities.ts +7 -3
- package/src/responses/openai-responses-api.ts +2 -2
- package/src/responses/openai-responses-options.ts +4 -0
package/dist/internal/index.mjs
CHANGED
|
@@ -38,6 +38,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
|
|
|
38
38
|
const isGptChatModel = (gptVersion == null ? void 0 : gptVersion.minor) == null && ((_b = (_a2 = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _a2.startsWith("chat")) != null ? _b : false);
|
|
39
39
|
const isGptNanoModel = (_d = (_c = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _c.startsWith("nano")) != null ? _d : false;
|
|
40
40
|
const isGpt6OrLaterModel = gptVersion != null && gptVersion.major >= 6;
|
|
41
|
+
const isGpt6SolOrLuna = modelId === "gpt-6-sol" || modelId === "gpt-6-luna";
|
|
41
42
|
const supportsFlexProcessing = oSeriesVersion != null && oSeriesVersion >= 3 || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
|
|
42
43
|
const supportsPriorityProcessing = modelId.startsWith("gpt-4") || gptVersion != null && gptVersion.major >= 5 && !isGptNanoModel && !isGptChatModel || oSeriesVersion != null && oSeriesVersion >= 3;
|
|
43
44
|
const isReasoningModel = oSeriesVersion != null || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
|
|
@@ -48,7 +49,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
|
|
|
48
49
|
supportsPriorityProcessing,
|
|
49
50
|
supportsConfigurationUpdate: isGpt6OrLaterModel,
|
|
50
51
|
supportsAsyncToolCalling: isGpt6OrLaterModel,
|
|
51
|
-
supportedReasoningEfforts: isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
|
|
52
|
+
supportedReasoningEfforts: isGpt6SolOrLuna ? ["none", "low", "medium", "high", "xhigh", "max"] : isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
|
|
52
53
|
isReasoningModel,
|
|
53
54
|
systemMessageMode,
|
|
54
55
|
supportsNonReasoningParameters
|
|
@@ -4419,7 +4420,7 @@ var openaiResponsesChunkSchema = lazySchema16(
|
|
|
4419
4420
|
name: z18.string(),
|
|
4420
4421
|
arguments: z18.string(),
|
|
4421
4422
|
async: z18.boolean().nullish(),
|
|
4422
|
-
status: z18.
|
|
4423
|
+
status: z18.enum(["in_progress", "completed", "incomplete"]),
|
|
4423
4424
|
namespace: z18.string().nullish()
|
|
4424
4425
|
}),
|
|
4425
4426
|
z18.object({
|
|
@@ -4429,7 +4430,7 @@ var openaiResponsesChunkSchema = lazySchema16(
|
|
|
4429
4430
|
name: z18.string(),
|
|
4430
4431
|
input: z18.string(),
|
|
4431
4432
|
async: z18.boolean().nullish(),
|
|
4432
|
-
status: z18.
|
|
4433
|
+
status: z18.enum(["in_progress", "completed", "incomplete"])
|
|
4433
4434
|
}),
|
|
4434
4435
|
z18.object({
|
|
4435
4436
|
type: z18.literal("code_interpreter_call"),
|
|
@@ -5064,7 +5065,9 @@ var openaiResponsesReasoningModelIds = [
|
|
|
5064
5065
|
"gpt-5.6-luna",
|
|
5065
5066
|
"gpt-5.6-sol",
|
|
5066
5067
|
"gpt-5.6-terra",
|
|
5067
|
-
"gpt-6-astra"
|
|
5068
|
+
"gpt-6-astra",
|
|
5069
|
+
"gpt-6-luna",
|
|
5070
|
+
"gpt-6-sol"
|
|
5068
5071
|
];
|
|
5069
5072
|
var openaiResponsesModelIds = [
|
|
5070
5073
|
"gpt-4.1",
|