@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.41",
3
+ "version": "3.0.42",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -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.2 support temperature, topP, logProbs when reasoningEffort is none
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') || modelId.startsWith('gpt-5.2');
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'