@ai-sdk/openai 3.0.41 → 3.0.42
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 +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- 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 +5 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +5 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/chat/openai-chat-options.ts +4 -0
- package/src/openai-language-model-capabilities.ts +4 -2
- package/src/responses/openai-responses-options.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ function getOpenAILanguageModelCapabilities(modelId) {
|
|
|
44
44
|
const supportsFlexProcessing = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
45
45
|
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");
|
|
46
46
|
const isReasoningModel = modelId.startsWith("o1") || modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
|
|
47
|
-
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2");
|
|
47
|
+
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.4");
|
|
48
48
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
49
49
|
return {
|
|
50
50
|
supportsFlexProcessing,
|
|
@@ -4014,6 +4014,10 @@ var openaiResponsesReasoningModelIds = [
|
|
|
4014
4014
|
"gpt-5.2-chat-latest",
|
|
4015
4015
|
"gpt-5.2-pro",
|
|
4016
4016
|
"gpt-5.2-codex",
|
|
4017
|
+
"gpt-5.4",
|
|
4018
|
+
"gpt-5.4-2026-03-05",
|
|
4019
|
+
"gpt-5.4-pro",
|
|
4020
|
+
"gpt-5.4-pro-2026-03-05",
|
|
4017
4021
|
"gpt-5.3-codex"
|
|
4018
4022
|
];
|
|
4019
4023
|
var openaiResponsesModelIds = [
|
|
@@ -6385,7 +6389,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6385
6389
|
};
|
|
6386
6390
|
|
|
6387
6391
|
// src/version.ts
|
|
6388
|
-
var VERSION = true ? "3.0.
|
|
6392
|
+
var VERSION = true ? "3.0.42" : "0.0.0-test";
|
|
6389
6393
|
|
|
6390
6394
|
// src/openai-provider.ts
|
|
6391
6395
|
function createOpenAI(options = {}) {
|