@ai-sdk/openai 3.0.58 → 3.0.60

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.
@@ -2180,6 +2180,7 @@ The following optional provider options are available for OpenAI completion mode
2180
2180
 
2181
2181
  | Model | Image Input | Audio Input | Object Generation | Tool Usage |
2182
2182
  | --------------------- | ------------------- | ------------------- | ------------------- | ------------------- |
2183
+ | `gpt-5.5` | <Check size={18} /> | <Cross size={18} /> | <Check size={18} /> | <Check size={18} /> |
2183
2184
  | `gpt-5.4-pro` | <Check size={18} /> | <Cross size={18} /> | <Check size={18} /> | <Check size={18} /> |
2184
2185
  | `gpt-5.4` | <Check size={18} /> | <Cross size={18} /> | <Check size={18} /> | <Check size={18} /> |
2185
2186
  | `gpt-5.4-mini` | <Check size={18} /> | <Cross size={18} /> | <Check size={18} /> | <Check size={18} /> |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.58",
3
+ "version": "3.0.60",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -179,7 +179,7 @@ export function convertToOpenAIChatMessages({
179
179
 
180
180
  messages.push({
181
181
  role: 'assistant',
182
- content: text || null,
182
+ content: toolCalls.length > 0 ? text || null : text,
183
183
  tool_calls: toolCalls.length > 0 ? toolCalls : undefined,
184
184
  });
185
185
 
@@ -64,6 +64,8 @@ export type OpenAIChatModelId =
64
64
  | 'gpt-5.4-nano-2026-03-17'
65
65
  | 'gpt-5.4-pro'
66
66
  | 'gpt-5.4-pro-2026-03-05'
67
+ | 'gpt-5.5'
68
+ | 'gpt-5.5-2026-04-23'
67
69
  | (string & {});
68
70
 
69
71
  export const openaiLanguageModelChatOptions = lazySchema(() =>
@@ -36,12 +36,13 @@ 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, GPT-5.2, and GPT-5.4 support temperature, topP, logProbs when reasoningEffort is none
39
+ // GPT-5.1 and later model families support temperature, topP, logProbs when reasoningEffort is none.
40
40
  const supportsNonReasoningParameters =
41
41
  modelId.startsWith('gpt-5.1') ||
42
42
  modelId.startsWith('gpt-5.2') ||
43
43
  modelId.startsWith('gpt-5.3') ||
44
- modelId.startsWith('gpt-5.4');
44
+ modelId.startsWith('gpt-5.4') ||
45
+ modelId.startsWith('gpt-5.5');
45
46
 
46
47
  const systemMessageMode = isReasoningModel ? 'developer' : 'system';
47
48
 
@@ -51,6 +51,8 @@ export const openaiResponsesReasoningModelIds = [
51
51
  'gpt-5.4-nano-2026-03-17',
52
52
  'gpt-5.4-pro',
53
53
  'gpt-5.4-pro-2026-03-05',
54
+ 'gpt-5.5',
55
+ 'gpt-5.5-2026-04-23',
54
56
  ] as const;
55
57
 
56
58
  export const openaiResponsesModelIds = [
@@ -117,6 +119,8 @@ export type OpenAIResponsesModelId =
117
119
  | 'gpt-5.4-nano-2026-03-17'
118
120
  | 'gpt-5.4-pro'
119
121
  | 'gpt-5.4-pro-2026-03-05'
122
+ | 'gpt-5.5'
123
+ | 'gpt-5.5-2026-04-23'
120
124
  | 'gpt-5-2025-08-07'
121
125
  | 'gpt-5-chat-latest'
122
126
  | 'gpt-5-codex'