@ai-sdk/openai 3.0.59 → 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.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- 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 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +4 -2
- package/dist/internal/index.mjs.map +1 -1
- package/docs/03-openai.mdx +1 -0
- package/package.json +1 -1
- package/src/chat/openai-chat-options.ts +2 -0
- package/src/openai-language-model-capabilities.ts +3 -2
- package/src/responses/openai-responses-options.ts +4 -0
package/docs/03-openai.mdx
CHANGED
|
@@ -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
|
@@ -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
|
|
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'
|