@langchain/openai 1.2.8-dev-1771365493298 → 1.2.8
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 +21 -0
- package/dist/chat_models/profiles.cjs +290 -92
- package/dist/chat_models/profiles.cjs.map +1 -1
- package/dist/chat_models/profiles.js +290 -92
- package/dist/chat_models/profiles.js.map +1 -1
- package/dist/utils/client.cjs +2 -2
- package/dist/utils/client.cjs.map +1 -1
- package/dist/utils/client.js +2 -2
- package/dist/utils/client.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @langchain/openai
|
|
2
2
|
|
|
3
|
+
## 1.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#10077](https://github.com/langchain-ai/langchainjs/pull/10077) [`05396f7`](https://github.com/langchain-ai/langchainjs/commit/05396f7ce0a91c49a3bae4bbcd3dbdd6cbd18089) Thanks [@christian-bromann](https://github.com/christian-bromann)! - feat(core): add ContextOverflowError, raise in anthropic and openai
|
|
8
|
+
|
|
9
|
+
- [#10081](https://github.com/langchain-ai/langchainjs/pull/10081) [`5a6f26b`](https://github.com/langchain-ai/langchainjs/commit/5a6f26bbaed80195dc538c538b96219a8b03f38f) Thanks [@hntrl](https://github.com/hntrl)! - feat(core): add namespace-based symbol branding for error class hierarchies
|
|
10
|
+
|
|
11
|
+
Introduces `createNamespace` utility for hierarchical symbol-based branding of class hierarchies.
|
|
12
|
+
All LangChain error classes now use this pattern, replacing hand-rolled duck-type `isInstance` checks
|
|
13
|
+
with reliable cross-realm `Symbol.for`-based identity.
|
|
14
|
+
- New `LangChainError` base class that all LangChain errors extend
|
|
15
|
+
- New `createNamespace` / `Namespace` API in `@langchain/core/utils/namespace`
|
|
16
|
+
- Refactored `ModelAbortError`, `ContextOverflowError` to use namespace branding
|
|
17
|
+
- Added `ContextOverflowError.fromError()` static factory method
|
|
18
|
+
- Deprecated `addLangChainErrorFields` in favor of `LangChainError` subclasses
|
|
19
|
+
- Migrated Google provider errors (`GoogleError`, `ConfigurationError`, etc.) to namespace branding
|
|
20
|
+
- Updated Anthropic and OpenAI providers to use `ContextOverflowError.fromError()`
|
|
21
|
+
|
|
22
|
+
- [#10078](https://github.com/langchain-ai/langchainjs/pull/10078) [`7be50a7`](https://github.com/langchain-ai/langchainjs/commit/7be50a7014d7622e0ab8d303dfc9c633ebc96333) Thanks [@christian-bromann](https://github.com/christian-bromann)! - chore(\*): update model profiles
|
|
23
|
+
|
|
3
24
|
## 1.2.7
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
//#region src/chat_models/profiles.ts
|
|
3
3
|
const PROFILES = {
|
|
4
|
-
"gpt-
|
|
5
|
-
maxInputTokens:
|
|
4
|
+
"gpt-4o-2024-11-20": {
|
|
5
|
+
maxInputTokens: 128e3,
|
|
6
6
|
imageInputs: true,
|
|
7
7
|
audioInputs: false,
|
|
8
8
|
pdfInputs: true,
|
|
9
9
|
videoInputs: false,
|
|
10
|
-
maxOutputTokens:
|
|
10
|
+
maxOutputTokens: 16384,
|
|
11
11
|
reasoningOutput: false,
|
|
12
12
|
imageOutputs: false,
|
|
13
13
|
audioOutputs: false,
|
|
@@ -19,8 +19,80 @@ const PROFILES = {
|
|
|
19
19
|
imageToolMessage: true,
|
|
20
20
|
toolChoice: true
|
|
21
21
|
},
|
|
22
|
-
"
|
|
23
|
-
maxInputTokens:
|
|
22
|
+
"gpt-5.3-codex": {
|
|
23
|
+
maxInputTokens: 4e5,
|
|
24
|
+
imageInputs: true,
|
|
25
|
+
audioInputs: false,
|
|
26
|
+
pdfInputs: true,
|
|
27
|
+
videoInputs: false,
|
|
28
|
+
maxOutputTokens: 128e3,
|
|
29
|
+
reasoningOutput: true,
|
|
30
|
+
imageOutputs: false,
|
|
31
|
+
audioOutputs: false,
|
|
32
|
+
videoOutputs: false,
|
|
33
|
+
toolCalling: true,
|
|
34
|
+
structuredOutput: true,
|
|
35
|
+
imageUrlInputs: true,
|
|
36
|
+
pdfToolMessage: true,
|
|
37
|
+
imageToolMessage: true,
|
|
38
|
+
toolChoice: true
|
|
39
|
+
},
|
|
40
|
+
"gpt-5-codex": {
|
|
41
|
+
maxInputTokens: 4e5,
|
|
42
|
+
imageInputs: true,
|
|
43
|
+
audioInputs: false,
|
|
44
|
+
pdfInputs: true,
|
|
45
|
+
videoInputs: false,
|
|
46
|
+
maxOutputTokens: 128e3,
|
|
47
|
+
reasoningOutput: true,
|
|
48
|
+
imageOutputs: false,
|
|
49
|
+
audioOutputs: false,
|
|
50
|
+
videoOutputs: false,
|
|
51
|
+
toolCalling: true,
|
|
52
|
+
structuredOutput: true,
|
|
53
|
+
imageUrlInputs: true,
|
|
54
|
+
pdfToolMessage: true,
|
|
55
|
+
imageToolMessage: true,
|
|
56
|
+
toolChoice: true
|
|
57
|
+
},
|
|
58
|
+
"gpt-5-pro": {
|
|
59
|
+
maxInputTokens: 4e5,
|
|
60
|
+
imageInputs: true,
|
|
61
|
+
audioInputs: false,
|
|
62
|
+
pdfInputs: true,
|
|
63
|
+
videoInputs: false,
|
|
64
|
+
maxOutputTokens: 272e3,
|
|
65
|
+
reasoningOutput: true,
|
|
66
|
+
imageOutputs: false,
|
|
67
|
+
audioOutputs: false,
|
|
68
|
+
videoOutputs: false,
|
|
69
|
+
toolCalling: true,
|
|
70
|
+
structuredOutput: true,
|
|
71
|
+
imageUrlInputs: true,
|
|
72
|
+
pdfToolMessage: true,
|
|
73
|
+
imageToolMessage: true,
|
|
74
|
+
toolChoice: true
|
|
75
|
+
},
|
|
76
|
+
"gpt-4o-mini": {
|
|
77
|
+
maxInputTokens: 128e3,
|
|
78
|
+
imageInputs: true,
|
|
79
|
+
audioInputs: false,
|
|
80
|
+
pdfInputs: true,
|
|
81
|
+
videoInputs: false,
|
|
82
|
+
maxOutputTokens: 16384,
|
|
83
|
+
reasoningOutput: false,
|
|
84
|
+
imageOutputs: false,
|
|
85
|
+
audioOutputs: false,
|
|
86
|
+
videoOutputs: false,
|
|
87
|
+
toolCalling: true,
|
|
88
|
+
structuredOutput: true,
|
|
89
|
+
imageUrlInputs: true,
|
|
90
|
+
pdfToolMessage: true,
|
|
91
|
+
imageToolMessage: true,
|
|
92
|
+
toolChoice: true
|
|
93
|
+
},
|
|
94
|
+
"text-embedding-ada-002": {
|
|
95
|
+
maxInputTokens: 8192,
|
|
24
96
|
imageInputs: false,
|
|
25
97
|
audioInputs: false,
|
|
26
98
|
pdfInputs: true,
|
|
@@ -37,14 +109,32 @@ const PROFILES = {
|
|
|
37
109
|
imageToolMessage: true,
|
|
38
110
|
toolChoice: true
|
|
39
111
|
},
|
|
40
|
-
"gpt-
|
|
41
|
-
maxInputTokens:
|
|
112
|
+
"gpt-5-chat-latest": {
|
|
113
|
+
maxInputTokens: 4e5,
|
|
114
|
+
imageInputs: true,
|
|
115
|
+
audioInputs: false,
|
|
116
|
+
pdfInputs: true,
|
|
117
|
+
videoInputs: false,
|
|
118
|
+
maxOutputTokens: 128e3,
|
|
119
|
+
reasoningOutput: true,
|
|
120
|
+
imageOutputs: false,
|
|
121
|
+
audioOutputs: false,
|
|
122
|
+
videoOutputs: false,
|
|
123
|
+
toolCalling: false,
|
|
124
|
+
structuredOutput: true,
|
|
125
|
+
imageUrlInputs: true,
|
|
126
|
+
pdfToolMessage: true,
|
|
127
|
+
imageToolMessage: true,
|
|
128
|
+
toolChoice: true
|
|
129
|
+
},
|
|
130
|
+
"codex-mini-latest": {
|
|
131
|
+
maxInputTokens: 2e5,
|
|
42
132
|
imageInputs: false,
|
|
43
133
|
audioInputs: false,
|
|
44
134
|
pdfInputs: true,
|
|
45
135
|
videoInputs: false,
|
|
46
|
-
maxOutputTokens:
|
|
47
|
-
reasoningOutput:
|
|
136
|
+
maxOutputTokens: 1e5,
|
|
137
|
+
reasoningOutput: true,
|
|
48
138
|
imageOutputs: false,
|
|
49
139
|
audioOutputs: false,
|
|
50
140
|
videoOutputs: false,
|
|
@@ -55,13 +145,13 @@ const PROFILES = {
|
|
|
55
145
|
imageToolMessage: true,
|
|
56
146
|
toolChoice: true
|
|
57
147
|
},
|
|
58
|
-
"
|
|
59
|
-
maxInputTokens:
|
|
148
|
+
"gpt-5.1-codex-max": {
|
|
149
|
+
maxInputTokens: 4e5,
|
|
60
150
|
imageInputs: true,
|
|
61
151
|
audioInputs: false,
|
|
62
152
|
pdfInputs: true,
|
|
63
153
|
videoInputs: false,
|
|
64
|
-
maxOutputTokens:
|
|
154
|
+
maxOutputTokens: 128e3,
|
|
65
155
|
reasoningOutput: true,
|
|
66
156
|
imageOutputs: false,
|
|
67
157
|
audioOutputs: false,
|
|
@@ -91,14 +181,14 @@ const PROFILES = {
|
|
|
91
181
|
imageToolMessage: true,
|
|
92
182
|
toolChoice: true
|
|
93
183
|
},
|
|
94
|
-
"gpt-
|
|
184
|
+
"gpt-5.2-chat-latest": {
|
|
95
185
|
maxInputTokens: 128e3,
|
|
96
186
|
imageInputs: true,
|
|
97
187
|
audioInputs: false,
|
|
98
188
|
pdfInputs: true,
|
|
99
189
|
videoInputs: false,
|
|
100
190
|
maxOutputTokens: 16384,
|
|
101
|
-
reasoningOutput:
|
|
191
|
+
reasoningOutput: true,
|
|
102
192
|
imageOutputs: false,
|
|
103
193
|
audioOutputs: false,
|
|
104
194
|
videoOutputs: false,
|
|
@@ -109,14 +199,14 @@ const PROFILES = {
|
|
|
109
199
|
imageToolMessage: true,
|
|
110
200
|
toolChoice: true
|
|
111
201
|
},
|
|
112
|
-
"gpt-
|
|
113
|
-
maxInputTokens:
|
|
202
|
+
"gpt-5.2-codex": {
|
|
203
|
+
maxInputTokens: 4e5,
|
|
114
204
|
imageInputs: true,
|
|
115
205
|
audioInputs: false,
|
|
116
206
|
pdfInputs: true,
|
|
117
207
|
videoInputs: false,
|
|
118
|
-
maxOutputTokens:
|
|
119
|
-
reasoningOutput:
|
|
208
|
+
maxOutputTokens: 128e3,
|
|
209
|
+
reasoningOutput: true,
|
|
120
210
|
imageOutputs: false,
|
|
121
211
|
audioOutputs: false,
|
|
122
212
|
videoOutputs: false,
|
|
@@ -145,50 +235,50 @@ const PROFILES = {
|
|
|
145
235
|
imageToolMessage: true,
|
|
146
236
|
toolChoice: true
|
|
147
237
|
},
|
|
148
|
-
|
|
149
|
-
maxInputTokens:
|
|
150
|
-
imageInputs:
|
|
238
|
+
o1: {
|
|
239
|
+
maxInputTokens: 2e5,
|
|
240
|
+
imageInputs: true,
|
|
151
241
|
audioInputs: false,
|
|
152
|
-
pdfInputs:
|
|
242
|
+
pdfInputs: true,
|
|
153
243
|
videoInputs: false,
|
|
154
|
-
maxOutputTokens:
|
|
155
|
-
reasoningOutput:
|
|
244
|
+
maxOutputTokens: 1e5,
|
|
245
|
+
reasoningOutput: true,
|
|
156
246
|
imageOutputs: false,
|
|
157
247
|
audioOutputs: false,
|
|
158
248
|
videoOutputs: false,
|
|
159
|
-
toolCalling:
|
|
160
|
-
structuredOutput:
|
|
161
|
-
imageUrlInputs:
|
|
162
|
-
pdfToolMessage:
|
|
163
|
-
imageToolMessage:
|
|
249
|
+
toolCalling: true,
|
|
250
|
+
structuredOutput: true,
|
|
251
|
+
imageUrlInputs: true,
|
|
252
|
+
pdfToolMessage: true,
|
|
253
|
+
imageToolMessage: true,
|
|
164
254
|
toolChoice: true
|
|
165
255
|
},
|
|
166
|
-
"
|
|
167
|
-
maxInputTokens:
|
|
168
|
-
imageInputs:
|
|
256
|
+
"gpt-5.1": {
|
|
257
|
+
maxInputTokens: 4e5,
|
|
258
|
+
imageInputs: true,
|
|
169
259
|
audioInputs: false,
|
|
170
260
|
pdfInputs: true,
|
|
171
261
|
videoInputs: false,
|
|
172
|
-
maxOutputTokens:
|
|
173
|
-
reasoningOutput:
|
|
262
|
+
maxOutputTokens: 128e3,
|
|
263
|
+
reasoningOutput: true,
|
|
174
264
|
imageOutputs: false,
|
|
175
265
|
audioOutputs: false,
|
|
176
266
|
videoOutputs: false,
|
|
177
|
-
toolCalling:
|
|
267
|
+
toolCalling: true,
|
|
178
268
|
structuredOutput: true,
|
|
179
269
|
imageUrlInputs: true,
|
|
180
270
|
pdfToolMessage: true,
|
|
181
271
|
imageToolMessage: true,
|
|
182
272
|
toolChoice: true
|
|
183
273
|
},
|
|
184
|
-
"
|
|
185
|
-
maxInputTokens:
|
|
274
|
+
"o4-mini-deep-research": {
|
|
275
|
+
maxInputTokens: 2e5,
|
|
186
276
|
imageInputs: true,
|
|
187
277
|
audioInputs: false,
|
|
188
278
|
pdfInputs: true,
|
|
189
279
|
videoInputs: false,
|
|
190
|
-
maxOutputTokens:
|
|
191
|
-
reasoningOutput:
|
|
280
|
+
maxOutputTokens: 1e5,
|
|
281
|
+
reasoningOutput: true,
|
|
192
282
|
imageOutputs: false,
|
|
193
283
|
audioOutputs: false,
|
|
194
284
|
videoOutputs: false,
|
|
@@ -199,27 +289,27 @@ const PROFILES = {
|
|
|
199
289
|
imageToolMessage: true,
|
|
200
290
|
toolChoice: true
|
|
201
291
|
},
|
|
202
|
-
"
|
|
292
|
+
"gpt-5.3-codex-spark": {
|
|
203
293
|
maxInputTokens: 128e3,
|
|
204
|
-
imageInputs:
|
|
294
|
+
imageInputs: true,
|
|
205
295
|
audioInputs: false,
|
|
206
296
|
pdfInputs: true,
|
|
207
297
|
videoInputs: false,
|
|
208
|
-
maxOutputTokens:
|
|
298
|
+
maxOutputTokens: 32e3,
|
|
209
299
|
reasoningOutput: true,
|
|
210
300
|
imageOutputs: false,
|
|
211
301
|
audioOutputs: false,
|
|
212
302
|
videoOutputs: false,
|
|
213
|
-
toolCalling:
|
|
303
|
+
toolCalling: true,
|
|
214
304
|
structuredOutput: true,
|
|
215
305
|
imageUrlInputs: true,
|
|
216
306
|
pdfToolMessage: true,
|
|
217
307
|
imageToolMessage: true,
|
|
218
308
|
toolChoice: true
|
|
219
309
|
},
|
|
220
|
-
|
|
310
|
+
o3: {
|
|
221
311
|
maxInputTokens: 2e5,
|
|
222
|
-
imageInputs:
|
|
312
|
+
imageInputs: true,
|
|
223
313
|
audioInputs: false,
|
|
224
314
|
pdfInputs: true,
|
|
225
315
|
videoInputs: false,
|
|
@@ -235,32 +325,32 @@ const PROFILES = {
|
|
|
235
325
|
imageToolMessage: true,
|
|
236
326
|
toolChoice: true
|
|
237
327
|
},
|
|
238
|
-
"
|
|
239
|
-
maxInputTokens:
|
|
328
|
+
"text-embedding-3-small": {
|
|
329
|
+
maxInputTokens: 8191,
|
|
240
330
|
imageInputs: false,
|
|
241
331
|
audioInputs: false,
|
|
242
332
|
pdfInputs: true,
|
|
243
333
|
videoInputs: false,
|
|
244
|
-
maxOutputTokens:
|
|
245
|
-
reasoningOutput:
|
|
334
|
+
maxOutputTokens: 1536,
|
|
335
|
+
reasoningOutput: false,
|
|
246
336
|
imageOutputs: false,
|
|
247
337
|
audioOutputs: false,
|
|
248
338
|
videoOutputs: false,
|
|
249
|
-
toolCalling:
|
|
339
|
+
toolCalling: false,
|
|
250
340
|
structuredOutput: true,
|
|
251
341
|
imageUrlInputs: true,
|
|
252
342
|
pdfToolMessage: true,
|
|
253
343
|
imageToolMessage: true,
|
|
254
344
|
toolChoice: true
|
|
255
345
|
},
|
|
256
|
-
"gpt-
|
|
257
|
-
maxInputTokens:
|
|
346
|
+
"gpt-4.1-nano": {
|
|
347
|
+
maxInputTokens: 1047576,
|
|
258
348
|
imageInputs: true,
|
|
259
349
|
audioInputs: false,
|
|
260
350
|
pdfInputs: true,
|
|
261
351
|
videoInputs: false,
|
|
262
|
-
maxOutputTokens:
|
|
263
|
-
reasoningOutput:
|
|
352
|
+
maxOutputTokens: 32768,
|
|
353
|
+
reasoningOutput: false,
|
|
264
354
|
imageOutputs: false,
|
|
265
355
|
audioOutputs: false,
|
|
266
356
|
videoOutputs: false,
|
|
@@ -271,7 +361,43 @@ const PROFILES = {
|
|
|
271
361
|
imageToolMessage: true,
|
|
272
362
|
toolChoice: true
|
|
273
363
|
},
|
|
274
|
-
"
|
|
364
|
+
"text-embedding-3-large": {
|
|
365
|
+
maxInputTokens: 8191,
|
|
366
|
+
imageInputs: false,
|
|
367
|
+
audioInputs: false,
|
|
368
|
+
pdfInputs: true,
|
|
369
|
+
videoInputs: false,
|
|
370
|
+
maxOutputTokens: 3072,
|
|
371
|
+
reasoningOutput: false,
|
|
372
|
+
imageOutputs: false,
|
|
373
|
+
audioOutputs: false,
|
|
374
|
+
videoOutputs: false,
|
|
375
|
+
toolCalling: false,
|
|
376
|
+
structuredOutput: true,
|
|
377
|
+
imageUrlInputs: true,
|
|
378
|
+
pdfToolMessage: true,
|
|
379
|
+
imageToolMessage: true,
|
|
380
|
+
toolChoice: true
|
|
381
|
+
},
|
|
382
|
+
"gpt-3.5-turbo": {
|
|
383
|
+
maxInputTokens: 16385,
|
|
384
|
+
imageInputs: false,
|
|
385
|
+
audioInputs: false,
|
|
386
|
+
pdfInputs: false,
|
|
387
|
+
videoInputs: false,
|
|
388
|
+
maxOutputTokens: 4096,
|
|
389
|
+
reasoningOutput: false,
|
|
390
|
+
imageOutputs: false,
|
|
391
|
+
audioOutputs: false,
|
|
392
|
+
videoOutputs: false,
|
|
393
|
+
toolCalling: false,
|
|
394
|
+
structuredOutput: false,
|
|
395
|
+
imageUrlInputs: false,
|
|
396
|
+
pdfToolMessage: false,
|
|
397
|
+
imageToolMessage: false,
|
|
398
|
+
toolChoice: true
|
|
399
|
+
},
|
|
400
|
+
"gpt-5.1-codex-mini": {
|
|
275
401
|
maxInputTokens: 4e5,
|
|
276
402
|
imageInputs: true,
|
|
277
403
|
audioInputs: false,
|
|
@@ -289,14 +415,14 @@ const PROFILES = {
|
|
|
289
415
|
imageToolMessage: true,
|
|
290
416
|
toolChoice: true
|
|
291
417
|
},
|
|
292
|
-
"gpt-
|
|
293
|
-
maxInputTokens:
|
|
418
|
+
"gpt-5.2": {
|
|
419
|
+
maxInputTokens: 4e5,
|
|
294
420
|
imageInputs: true,
|
|
295
421
|
audioInputs: false,
|
|
296
422
|
pdfInputs: true,
|
|
297
423
|
videoInputs: false,
|
|
298
|
-
maxOutputTokens:
|
|
299
|
-
reasoningOutput:
|
|
424
|
+
maxOutputTokens: 128e3,
|
|
425
|
+
reasoningOutput: true,
|
|
300
426
|
imageOutputs: false,
|
|
301
427
|
audioOutputs: false,
|
|
302
428
|
videoOutputs: false,
|
|
@@ -325,7 +451,7 @@ const PROFILES = {
|
|
|
325
451
|
imageToolMessage: true,
|
|
326
452
|
toolChoice: true
|
|
327
453
|
},
|
|
328
|
-
"
|
|
454
|
+
"o3-pro": {
|
|
329
455
|
maxInputTokens: 2e5,
|
|
330
456
|
imageInputs: true,
|
|
331
457
|
audioInputs: false,
|
|
@@ -343,14 +469,14 @@ const PROFILES = {
|
|
|
343
469
|
imageToolMessage: true,
|
|
344
470
|
toolChoice: true
|
|
345
471
|
},
|
|
346
|
-
|
|
347
|
-
maxInputTokens:
|
|
472
|
+
"gpt-4-turbo": {
|
|
473
|
+
maxInputTokens: 128e3,
|
|
348
474
|
imageInputs: true,
|
|
349
475
|
audioInputs: false,
|
|
350
476
|
pdfInputs: true,
|
|
351
477
|
videoInputs: false,
|
|
352
|
-
maxOutputTokens:
|
|
353
|
-
reasoningOutput:
|
|
478
|
+
maxOutputTokens: 4096,
|
|
479
|
+
reasoningOutput: false,
|
|
354
480
|
imageOutputs: false,
|
|
355
481
|
audioOutputs: false,
|
|
356
482
|
videoOutputs: false,
|
|
@@ -361,7 +487,7 @@ const PROFILES = {
|
|
|
361
487
|
imageToolMessage: true,
|
|
362
488
|
toolChoice: true
|
|
363
489
|
},
|
|
364
|
-
"gpt-5
|
|
490
|
+
"gpt-5": {
|
|
365
491
|
maxInputTokens: 4e5,
|
|
366
492
|
imageInputs: true,
|
|
367
493
|
audioInputs: false,
|
|
@@ -379,35 +505,53 @@ const PROFILES = {
|
|
|
379
505
|
imageToolMessage: true,
|
|
380
506
|
toolChoice: true
|
|
381
507
|
},
|
|
382
|
-
"
|
|
383
|
-
maxInputTokens:
|
|
384
|
-
imageInputs:
|
|
508
|
+
"o4-mini": {
|
|
509
|
+
maxInputTokens: 2e5,
|
|
510
|
+
imageInputs: true,
|
|
385
511
|
audioInputs: false,
|
|
386
512
|
pdfInputs: true,
|
|
387
513
|
videoInputs: false,
|
|
388
|
-
maxOutputTokens:
|
|
514
|
+
maxOutputTokens: 1e5,
|
|
389
515
|
reasoningOutput: true,
|
|
390
516
|
imageOutputs: false,
|
|
391
517
|
audioOutputs: false,
|
|
392
518
|
videoOutputs: false,
|
|
393
|
-
toolCalling:
|
|
519
|
+
toolCalling: true,
|
|
394
520
|
structuredOutput: true,
|
|
395
521
|
imageUrlInputs: true,
|
|
396
522
|
pdfToolMessage: true,
|
|
397
523
|
imageToolMessage: true,
|
|
398
524
|
toolChoice: true
|
|
399
525
|
},
|
|
400
|
-
"
|
|
401
|
-
maxInputTokens:
|
|
402
|
-
imageInputs:
|
|
526
|
+
"gpt-4.1-mini": {
|
|
527
|
+
maxInputTokens: 1047576,
|
|
528
|
+
imageInputs: true,
|
|
403
529
|
audioInputs: false,
|
|
404
530
|
pdfInputs: true,
|
|
405
531
|
videoInputs: false,
|
|
406
|
-
maxOutputTokens:
|
|
532
|
+
maxOutputTokens: 32768,
|
|
407
533
|
reasoningOutput: false,
|
|
408
534
|
imageOutputs: false,
|
|
409
535
|
audioOutputs: false,
|
|
410
536
|
videoOutputs: false,
|
|
537
|
+
toolCalling: true,
|
|
538
|
+
structuredOutput: true,
|
|
539
|
+
imageUrlInputs: true,
|
|
540
|
+
pdfToolMessage: true,
|
|
541
|
+
imageToolMessage: true,
|
|
542
|
+
toolChoice: true
|
|
543
|
+
},
|
|
544
|
+
"o1-preview": {
|
|
545
|
+
maxInputTokens: 128e3,
|
|
546
|
+
imageInputs: false,
|
|
547
|
+
audioInputs: false,
|
|
548
|
+
pdfInputs: true,
|
|
549
|
+
videoInputs: false,
|
|
550
|
+
maxOutputTokens: 32768,
|
|
551
|
+
reasoningOutput: true,
|
|
552
|
+
imageOutputs: false,
|
|
553
|
+
audioOutputs: false,
|
|
554
|
+
videoOutputs: false,
|
|
411
555
|
toolCalling: false,
|
|
412
556
|
structuredOutput: true,
|
|
413
557
|
imageUrlInputs: true,
|
|
@@ -415,7 +559,7 @@ const PROFILES = {
|
|
|
415
559
|
imageToolMessage: true,
|
|
416
560
|
toolChoice: true
|
|
417
561
|
},
|
|
418
|
-
"
|
|
562
|
+
"o1-pro": {
|
|
419
563
|
maxInputTokens: 2e5,
|
|
420
564
|
imageInputs: true,
|
|
421
565
|
audioInputs: false,
|
|
@@ -433,14 +577,14 @@ const PROFILES = {
|
|
|
433
577
|
imageToolMessage: true,
|
|
434
578
|
toolChoice: true
|
|
435
579
|
},
|
|
436
|
-
"gpt-
|
|
437
|
-
maxInputTokens:
|
|
580
|
+
"gpt-5.1-codex": {
|
|
581
|
+
maxInputTokens: 4e5,
|
|
438
582
|
imageInputs: true,
|
|
439
583
|
audioInputs: false,
|
|
440
584
|
pdfInputs: true,
|
|
441
585
|
videoInputs: false,
|
|
442
|
-
maxOutputTokens:
|
|
443
|
-
reasoningOutput:
|
|
586
|
+
maxOutputTokens: 128e3,
|
|
587
|
+
reasoningOutput: true,
|
|
444
588
|
imageOutputs: false,
|
|
445
589
|
audioOutputs: false,
|
|
446
590
|
videoOutputs: false,
|
|
@@ -451,13 +595,13 @@ const PROFILES = {
|
|
|
451
595
|
imageToolMessage: true,
|
|
452
596
|
toolChoice: true
|
|
453
597
|
},
|
|
454
|
-
|
|
455
|
-
maxInputTokens:
|
|
598
|
+
"gpt-5.2-pro": {
|
|
599
|
+
maxInputTokens: 4e5,
|
|
456
600
|
imageInputs: true,
|
|
457
601
|
audioInputs: false,
|
|
458
602
|
pdfInputs: true,
|
|
459
603
|
videoInputs: false,
|
|
460
|
-
maxOutputTokens:
|
|
604
|
+
maxOutputTokens: 128e3,
|
|
461
605
|
reasoningOutput: true,
|
|
462
606
|
imageOutputs: false,
|
|
463
607
|
audioOutputs: false,
|
|
@@ -469,9 +613,9 @@ const PROFILES = {
|
|
|
469
613
|
imageToolMessage: true,
|
|
470
614
|
toolChoice: true
|
|
471
615
|
},
|
|
472
|
-
"
|
|
616
|
+
"o3-mini": {
|
|
473
617
|
maxInputTokens: 2e5,
|
|
474
|
-
imageInputs:
|
|
618
|
+
imageInputs: false,
|
|
475
619
|
audioInputs: false,
|
|
476
620
|
pdfInputs: true,
|
|
477
621
|
videoInputs: false,
|
|
@@ -487,7 +631,25 @@ const PROFILES = {
|
|
|
487
631
|
imageToolMessage: true,
|
|
488
632
|
toolChoice: true
|
|
489
633
|
},
|
|
490
|
-
"gpt-
|
|
634
|
+
"gpt-4o-2024-08-06": {
|
|
635
|
+
maxInputTokens: 128e3,
|
|
636
|
+
imageInputs: true,
|
|
637
|
+
audioInputs: false,
|
|
638
|
+
pdfInputs: true,
|
|
639
|
+
videoInputs: false,
|
|
640
|
+
maxOutputTokens: 16384,
|
|
641
|
+
reasoningOutput: false,
|
|
642
|
+
imageOutputs: false,
|
|
643
|
+
audioOutputs: false,
|
|
644
|
+
videoOutputs: false,
|
|
645
|
+
toolCalling: true,
|
|
646
|
+
structuredOutput: true,
|
|
647
|
+
imageUrlInputs: true,
|
|
648
|
+
pdfToolMessage: true,
|
|
649
|
+
imageToolMessage: true,
|
|
650
|
+
toolChoice: true
|
|
651
|
+
},
|
|
652
|
+
"gpt-5-mini": {
|
|
491
653
|
maxInputTokens: 4e5,
|
|
492
654
|
imageInputs: true,
|
|
493
655
|
audioInputs: false,
|
|
@@ -498,20 +660,38 @@ const PROFILES = {
|
|
|
498
660
|
imageOutputs: false,
|
|
499
661
|
audioOutputs: false,
|
|
500
662
|
videoOutputs: false,
|
|
501
|
-
toolCalling:
|
|
663
|
+
toolCalling: true,
|
|
502
664
|
structuredOutput: true,
|
|
503
665
|
imageUrlInputs: true,
|
|
504
666
|
pdfToolMessage: true,
|
|
505
667
|
imageToolMessage: true,
|
|
506
668
|
toolChoice: true
|
|
507
669
|
},
|
|
508
|
-
"gpt-
|
|
670
|
+
"gpt-5.1-chat-latest": {
|
|
509
671
|
maxInputTokens: 128e3,
|
|
510
672
|
imageInputs: true,
|
|
511
673
|
audioInputs: false,
|
|
512
674
|
pdfInputs: true,
|
|
513
675
|
videoInputs: false,
|
|
514
676
|
maxOutputTokens: 16384,
|
|
677
|
+
reasoningOutput: true,
|
|
678
|
+
imageOutputs: false,
|
|
679
|
+
audioOutputs: false,
|
|
680
|
+
videoOutputs: false,
|
|
681
|
+
toolCalling: true,
|
|
682
|
+
structuredOutput: true,
|
|
683
|
+
imageUrlInputs: true,
|
|
684
|
+
pdfToolMessage: true,
|
|
685
|
+
imageToolMessage: true,
|
|
686
|
+
toolChoice: true
|
|
687
|
+
},
|
|
688
|
+
"gpt-4": {
|
|
689
|
+
maxInputTokens: 8192,
|
|
690
|
+
imageInputs: false,
|
|
691
|
+
audioInputs: false,
|
|
692
|
+
pdfInputs: true,
|
|
693
|
+
videoInputs: false,
|
|
694
|
+
maxOutputTokens: 8192,
|
|
515
695
|
reasoningOutput: false,
|
|
516
696
|
imageOutputs: false,
|
|
517
697
|
audioOutputs: false,
|
|
@@ -523,7 +703,7 @@ const PROFILES = {
|
|
|
523
703
|
imageToolMessage: true,
|
|
524
704
|
toolChoice: true
|
|
525
705
|
},
|
|
526
|
-
"gpt-5": {
|
|
706
|
+
"gpt-5-nano": {
|
|
527
707
|
maxInputTokens: 4e5,
|
|
528
708
|
imageInputs: true,
|
|
529
709
|
audioInputs: false,
|
|
@@ -541,17 +721,35 @@ const PROFILES = {
|
|
|
541
721
|
imageToolMessage: true,
|
|
542
722
|
toolChoice: true
|
|
543
723
|
},
|
|
544
|
-
"
|
|
545
|
-
maxInputTokens:
|
|
546
|
-
imageInputs:
|
|
724
|
+
"o1-mini": {
|
|
725
|
+
maxInputTokens: 128e3,
|
|
726
|
+
imageInputs: false,
|
|
547
727
|
audioInputs: false,
|
|
548
728
|
pdfInputs: true,
|
|
549
729
|
videoInputs: false,
|
|
550
|
-
maxOutputTokens:
|
|
730
|
+
maxOutputTokens: 65536,
|
|
551
731
|
reasoningOutput: true,
|
|
552
732
|
imageOutputs: false,
|
|
553
733
|
audioOutputs: false,
|
|
554
734
|
videoOutputs: false,
|
|
735
|
+
toolCalling: false,
|
|
736
|
+
structuredOutput: true,
|
|
737
|
+
imageUrlInputs: true,
|
|
738
|
+
pdfToolMessage: true,
|
|
739
|
+
imageToolMessage: true,
|
|
740
|
+
toolChoice: true
|
|
741
|
+
},
|
|
742
|
+
"gpt-4o": {
|
|
743
|
+
maxInputTokens: 128e3,
|
|
744
|
+
imageInputs: true,
|
|
745
|
+
audioInputs: false,
|
|
746
|
+
pdfInputs: true,
|
|
747
|
+
videoInputs: false,
|
|
748
|
+
maxOutputTokens: 16384,
|
|
749
|
+
reasoningOutput: false,
|
|
750
|
+
imageOutputs: false,
|
|
751
|
+
audioOutputs: false,
|
|
752
|
+
videoOutputs: false,
|
|
555
753
|
toolCalling: true,
|
|
556
754
|
structuredOutput: true,
|
|
557
755
|
imageUrlInputs: true,
|