@ai-sdk/openai 3.0.37 → 3.0.38

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.
@@ -1507,7 +1507,7 @@ The following optional provider options are available for OpenAI chat models:
1507
1507
 
1508
1508
  OpenAI has introduced the `o1`,`o3`, and `o4` series of [reasoning models](https://platform.openai.com/docs/guides/reasoning).
1509
1509
  Currently, `o4-mini`, `o3`, `o3-mini`, and `o1` are available via both the chat and responses APIs. The
1510
- models `codex-mini-latest` and `computer-use-preview` are available only via the [responses API](#responses-models).
1510
+ model `gpt-5.1-codex-mini` is available only via the [responses API](#responses-models).
1511
1511
 
1512
1512
  Reasoning models currently only generate text, have several limitations, and are only supported using `generateText` and `streamText`.
1513
1513
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai",
3
- "version": "3.0.37",
3
+ "version": "3.0.38",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -32,15 +32,10 @@ export type OpenAIChatModelId =
32
32
  | 'gpt-4o-search-preview-2025-03-11'
33
33
  | 'gpt-4o-mini-search-preview'
34
34
  | 'gpt-4o-mini-search-preview-2025-03-11'
35
- | 'gpt-4-turbo'
36
- | 'gpt-4-turbo-2024-04-09'
37
- | 'gpt-4'
38
- | 'gpt-4-0613'
39
35
  | 'gpt-3.5-turbo-0125'
40
36
  | 'gpt-3.5-turbo'
41
37
  | 'gpt-3.5-turbo-1106'
42
38
  | 'gpt-3.5-turbo-16k'
43
- | 'chatgpt-4o-latest'
44
39
  | 'gpt-5'
45
40
  | 'gpt-5-2025-08-07'
46
41
  | 'gpt-5-mini'
@@ -33,8 +33,6 @@ export function getOpenAILanguageModelCapabilities(
33
33
  modelId.startsWith('o1') ||
34
34
  modelId.startsWith('o3') ||
35
35
  modelId.startsWith('o4-mini') ||
36
- modelId.startsWith('codex-mini') ||
37
- modelId.startsWith('computer-use-preview') ||
38
36
  (modelId.startsWith('gpt-5') && !modelId.startsWith('gpt-5-chat'));
39
37
 
40
38
  // https://platform.openai.com/docs/guides/latest-model#gpt-5-1-parameter-compatibility
@@ -73,7 +73,7 @@ export const openaiTools = {
73
73
  * Local shell is a tool that allows agents to run shell commands locally
74
74
  * on a machine you or the user provides.
75
75
  *
76
- * Supported models: `gpt-5-codex` and `codex-mini-latest`
76
+ * Supported models: `gpt-5-codex`
77
77
  */
78
78
  localShell,
79
79
 
@@ -15,16 +15,10 @@ export const openaiResponsesReasoningModelIds = [
15
15
  'o1-2024-12-17',
16
16
  'o3',
17
17
  'o3-2025-04-16',
18
- 'o3-deep-research',
19
- 'o3-deep-research-2025-06-26',
20
18
  'o3-mini',
21
19
  'o3-mini-2025-01-31',
22
20
  'o4-mini',
23
21
  'o4-mini-2025-04-16',
24
- 'o4-mini-deep-research',
25
- 'o4-mini-deep-research-2025-06-26',
26
- 'codex-mini-latest',
27
- 'computer-use-preview',
28
22
  'gpt-5',
29
23
  'gpt-5-2025-08-07',
30
24
  'gpt-5-codex',
@@ -58,7 +52,6 @@ export const openaiResponsesModelIds = [
58
52
  'gpt-4o-2024-08-06',
59
53
  'gpt-4o-2024-11-20',
60
54
  'gpt-4o-audio-preview',
61
- 'gpt-4o-audio-preview-2024-10-01',
62
55
  'gpt-4o-audio-preview-2024-12-17',
63
56
  'gpt-4o-search-preview',
64
57
  'gpt-4o-search-preview-2025-03-11',
@@ -66,38 +59,23 @@ export const openaiResponsesModelIds = [
66
59
  'gpt-4o-mini-search-preview-2025-03-11',
67
60
  'gpt-4o-mini',
68
61
  'gpt-4o-mini-2024-07-18',
69
- 'gpt-4-turbo',
70
- 'gpt-4-turbo-2024-04-09',
71
- 'gpt-4-turbo-preview',
72
- 'gpt-4-0125-preview',
73
- 'gpt-4-1106-preview',
74
- 'gpt-4',
75
- 'gpt-4-0613',
76
- 'gpt-4.5-preview',
77
- 'gpt-4.5-preview-2025-02-27',
78
62
  'gpt-3.5-turbo-0125',
79
63
  'gpt-3.5-turbo',
80
64
  'gpt-3.5-turbo-1106',
81
- 'chatgpt-4o-latest',
82
65
  'gpt-5-chat-latest',
83
66
  ...openaiResponsesReasoningModelIds,
84
67
  ] as const;
85
68
 
86
69
  export type OpenAIResponsesModelId =
87
- | 'chatgpt-4o-latest'
88
70
  | 'gpt-3.5-turbo-0125'
89
71
  | 'gpt-3.5-turbo-1106'
90
72
  | 'gpt-3.5-turbo'
91
- | 'gpt-4-0613'
92
- | 'gpt-4-turbo-2024-04-09'
93
- | 'gpt-4-turbo'
94
73
  | 'gpt-4.1-2025-04-14'
95
74
  | 'gpt-4.1-mini-2025-04-14'
96
75
  | 'gpt-4.1-mini'
97
76
  | 'gpt-4.1-nano-2025-04-14'
98
77
  | 'gpt-4.1-nano'
99
78
  | 'gpt-4.1'
100
- | 'gpt-4'
101
79
  | 'gpt-4o-2024-05-13'
102
80
  | 'gpt-4o-2024-08-06'
103
81
  | 'gpt-4o-2024-11-20'