@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/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") || modelId.startsWith("gpt-5.4");
|
|
47
|
+
const supportsNonReasoningParameters = modelId.startsWith("gpt-5.1") || modelId.startsWith("gpt-5.2") || modelId.startsWith("gpt-5.3") || modelId.startsWith("gpt-5.4");
|
|
48
48
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
49
49
|
return {
|
|
50
50
|
supportsFlexProcessing,
|
|
@@ -4025,11 +4025,12 @@ var openaiResponsesReasoningModelIds = [
|
|
|
4025
4025
|
"gpt-5.2-chat-latest",
|
|
4026
4026
|
"gpt-5.2-pro",
|
|
4027
4027
|
"gpt-5.2-codex",
|
|
4028
|
+
"gpt-5.3-chat-latest",
|
|
4029
|
+
"gpt-5.3-codex",
|
|
4028
4030
|
"gpt-5.4",
|
|
4029
4031
|
"gpt-5.4-2026-03-05",
|
|
4030
4032
|
"gpt-5.4-pro",
|
|
4031
|
-
"gpt-5.4-pro-2026-03-05"
|
|
4032
|
-
"gpt-5.3-codex"
|
|
4033
|
+
"gpt-5.4-pro-2026-03-05"
|
|
4033
4034
|
];
|
|
4034
4035
|
var openaiResponsesModelIds = [
|
|
4035
4036
|
"gpt-4.1",
|
|
@@ -6400,7 +6401,7 @@ var OpenAITranscriptionModel = class {
|
|
|
6400
6401
|
};
|
|
6401
6402
|
|
|
6402
6403
|
// src/version.ts
|
|
6403
|
-
var VERSION = true ? "3.0.
|
|
6404
|
+
var VERSION = true ? "3.0.45" : "0.0.0-test";
|
|
6404
6405
|
|
|
6405
6406
|
// src/openai-provider.ts
|
|
6406
6407
|
function createOpenAI(options = {}) {
|