@ai-sdk/openai 3.0.40 → 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 +13 -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 +2 -2
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/openai",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.42",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ai-sdk/provider": "3.0.8",
|
|
40
|
-
"@ai-sdk/provider-utils": "4.0.
|
|
40
|
+
"@ai-sdk/provider-utils": "4.0.19"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "20.17.24",
|
|
@@ -51,6 +51,10 @@ export type OpenAIChatModelId =
|
|
|
51
51
|
| 'gpt-5.2-chat-latest'
|
|
52
52
|
| 'gpt-5.2-pro'
|
|
53
53
|
| 'gpt-5.2-pro-2025-12-11'
|
|
54
|
+
| 'gpt-5.4'
|
|
55
|
+
| 'gpt-5.4-2026-03-05'
|
|
56
|
+
| 'gpt-5.4-pro'
|
|
57
|
+
| 'gpt-5.4-pro-2026-03-05'
|
|
54
58
|
| (string & {});
|
|
55
59
|
|
|
56
60
|
export const openaiLanguageModelChatOptions = lazySchema(() =>
|
|
@@ -36,9 +36,11 @@ export function getOpenAILanguageModelCapabilities(
|
|
|
36
36
|
(modelId.startsWith('gpt-5') && !modelId.startsWith('gpt-5-chat'));
|
|
37
37
|
|
|
38
38
|
// https://platform.openai.com/docs/guides/latest-model#gpt-5-1-parameter-compatibility
|
|
39
|
-
// GPT-5.1 and GPT-5.
|
|
39
|
+
// GPT-5.1, GPT-5.2, and GPT-5.4 support temperature, topP, logProbs when reasoningEffort is none
|
|
40
40
|
const supportsNonReasoningParameters =
|
|
41
|
-
modelId.startsWith('gpt-5.1') ||
|
|
41
|
+
modelId.startsWith('gpt-5.1') ||
|
|
42
|
+
modelId.startsWith('gpt-5.2') ||
|
|
43
|
+
modelId.startsWith('gpt-5.4');
|
|
42
44
|
|
|
43
45
|
const systemMessageMode = isReasoningModel ? 'developer' : 'system';
|
|
44
46
|
|
|
@@ -37,6 +37,10 @@ export const openaiResponsesReasoningModelIds = [
|
|
|
37
37
|
'gpt-5.2-chat-latest',
|
|
38
38
|
'gpt-5.2-pro',
|
|
39
39
|
'gpt-5.2-codex',
|
|
40
|
+
'gpt-5.4',
|
|
41
|
+
'gpt-5.4-2026-03-05',
|
|
42
|
+
'gpt-5.4-pro',
|
|
43
|
+
'gpt-5.4-pro-2026-03-05',
|
|
40
44
|
'gpt-5.3-codex',
|
|
41
45
|
] as const;
|
|
42
46
|
|
|
@@ -94,6 +98,10 @@ export type OpenAIResponsesModelId =
|
|
|
94
98
|
| 'gpt-5.2-pro'
|
|
95
99
|
| 'gpt-5.2-pro-2025-12-11'
|
|
96
100
|
| 'gpt-5.2-codex'
|
|
101
|
+
| 'gpt-5.4'
|
|
102
|
+
| 'gpt-5.4-2026-03-05'
|
|
103
|
+
| 'gpt-5.4-pro'
|
|
104
|
+
| 'gpt-5.4-pro-2026-03-05'
|
|
97
105
|
| 'gpt-5.3-codex'
|
|
98
106
|
| 'gpt-5-2025-08-07'
|
|
99
107
|
| 'gpt-5-chat-latest'
|