@langchain/openai 1.2.8-dev-1771365493298 → 1.2.9

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/azure/chat_models/common.cjs +11 -0
  3. package/dist/azure/chat_models/common.cjs.map +1 -1
  4. package/dist/azure/chat_models/common.js +11 -1
  5. package/dist/azure/chat_models/common.js.map +1 -1
  6. package/dist/azure/chat_models/completions.cjs +2 -1
  7. package/dist/azure/chat_models/completions.cjs.map +1 -1
  8. package/dist/azure/chat_models/completions.d.cts +1 -0
  9. package/dist/azure/chat_models/completions.d.cts.map +1 -1
  10. package/dist/azure/chat_models/completions.d.ts +1 -0
  11. package/dist/azure/chat_models/completions.d.ts.map +1 -1
  12. package/dist/azure/chat_models/completions.js +3 -2
  13. package/dist/azure/chat_models/completions.js.map +1 -1
  14. package/dist/azure/chat_models/index.cjs +2 -1
  15. package/dist/azure/chat_models/index.cjs.map +1 -1
  16. package/dist/azure/chat_models/index.d.cts +1 -0
  17. package/dist/azure/chat_models/index.d.cts.map +1 -1
  18. package/dist/azure/chat_models/index.d.ts +1 -0
  19. package/dist/azure/chat_models/index.d.ts.map +1 -1
  20. package/dist/azure/chat_models/index.js +3 -2
  21. package/dist/azure/chat_models/index.js.map +1 -1
  22. package/dist/azure/chat_models/responses.cjs +2 -1
  23. package/dist/azure/chat_models/responses.cjs.map +1 -1
  24. package/dist/azure/chat_models/responses.d.cts +1 -0
  25. package/dist/azure/chat_models/responses.d.cts.map +1 -1
  26. package/dist/azure/chat_models/responses.d.ts +1 -0
  27. package/dist/azure/chat_models/responses.d.ts.map +1 -1
  28. package/dist/azure/chat_models/responses.js +3 -2
  29. package/dist/azure/chat_models/responses.js.map +1 -1
  30. package/dist/chat_models/base.cjs +9 -0
  31. package/dist/chat_models/base.cjs.map +1 -1
  32. package/dist/chat_models/base.d.cts.map +1 -1
  33. package/dist/chat_models/base.d.ts.map +1 -1
  34. package/dist/chat_models/base.js +9 -1
  35. package/dist/chat_models/base.js.map +1 -1
  36. package/dist/chat_models/completions.cjs +3 -0
  37. package/dist/chat_models/completions.cjs.map +1 -1
  38. package/dist/chat_models/completions.d.cts +3 -1
  39. package/dist/chat_models/completions.d.cts.map +1 -1
  40. package/dist/chat_models/completions.d.ts +3 -1
  41. package/dist/chat_models/completions.d.ts.map +1 -1
  42. package/dist/chat_models/completions.js +4 -1
  43. package/dist/chat_models/completions.js.map +1 -1
  44. package/dist/chat_models/index.cjs +3 -1
  45. package/dist/chat_models/index.cjs.map +1 -1
  46. package/dist/chat_models/index.d.cts +3 -2
  47. package/dist/chat_models/index.d.cts.map +1 -1
  48. package/dist/chat_models/index.d.ts +3 -2
  49. package/dist/chat_models/index.d.ts.map +1 -1
  50. package/dist/chat_models/index.js +4 -2
  51. package/dist/chat_models/index.js.map +1 -1
  52. package/dist/chat_models/profiles.cjs +290 -92
  53. package/dist/chat_models/profiles.cjs.map +1 -1
  54. package/dist/chat_models/profiles.js +290 -92
  55. package/dist/chat_models/profiles.js.map +1 -1
  56. package/dist/chat_models/responses.cjs +3 -0
  57. package/dist/chat_models/responses.cjs.map +1 -1
  58. package/dist/chat_models/responses.d.cts +3 -1
  59. package/dist/chat_models/responses.d.cts.map +1 -1
  60. package/dist/chat_models/responses.d.ts +3 -1
  61. package/dist/chat_models/responses.d.ts.map +1 -1
  62. package/dist/chat_models/responses.js +4 -1
  63. package/dist/chat_models/responses.js.map +1 -1
  64. package/dist/utils/client.cjs +2 -2
  65. package/dist/utils/client.cjs.map +1 -1
  66. package/dist/utils/client.js +2 -2
  67. package/dist/utils/client.js.map +1 -1
  68. package/package.json +4 -4
@@ -1,13 +1,13 @@
1
1
 
2
2
  //#region src/chat_models/profiles.ts
3
3
  const PROFILES = {
4
- "gpt-4.1-nano": {
5
- maxInputTokens: 1047576,
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: 32768,
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
- "text-embedding-3-small": {
23
- maxInputTokens: 8191,
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-4": {
41
- maxInputTokens: 8192,
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: 8192,
47
- reasoningOutput: false,
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
- "o1-pro": {
59
- maxInputTokens: 2e5,
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: 1e5,
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-4o-2024-08-06": {
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: false,
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-4.1-mini": {
113
- maxInputTokens: 1047576,
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: 32768,
119
- reasoningOutput: false,
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
- "gpt-3.5-turbo": {
149
- maxInputTokens: 16385,
150
- imageInputs: false,
238
+ o1: {
239
+ maxInputTokens: 2e5,
240
+ imageInputs: true,
151
241
  audioInputs: false,
152
- pdfInputs: false,
242
+ pdfInputs: true,
153
243
  videoInputs: false,
154
- maxOutputTokens: 4096,
155
- reasoningOutput: false,
244
+ maxOutputTokens: 1e5,
245
+ reasoningOutput: true,
156
246
  imageOutputs: false,
157
247
  audioOutputs: false,
158
248
  videoOutputs: false,
159
- toolCalling: false,
160
- structuredOutput: false,
161
- imageUrlInputs: false,
162
- pdfToolMessage: false,
163
- imageToolMessage: false,
249
+ toolCalling: true,
250
+ structuredOutput: true,
251
+ imageUrlInputs: true,
252
+ pdfToolMessage: true,
253
+ imageToolMessage: true,
164
254
  toolChoice: true
165
255
  },
166
- "text-embedding-3-large": {
167
- maxInputTokens: 8191,
168
- imageInputs: false,
256
+ "gpt-5.1": {
257
+ maxInputTokens: 4e5,
258
+ imageInputs: true,
169
259
  audioInputs: false,
170
260
  pdfInputs: true,
171
261
  videoInputs: false,
172
- maxOutputTokens: 3072,
173
- reasoningOutput: false,
262
+ maxOutputTokens: 128e3,
263
+ reasoningOutput: true,
174
264
  imageOutputs: false,
175
265
  audioOutputs: false,
176
266
  videoOutputs: false,
177
- toolCalling: false,
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
- "gpt-4-turbo": {
185
- maxInputTokens: 128e3,
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: 4096,
191
- reasoningOutput: false,
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
- "o1-preview": {
292
+ "gpt-5.3-codex-spark": {
203
293
  maxInputTokens: 128e3,
204
- imageInputs: false,
294
+ imageInputs: true,
205
295
  audioInputs: false,
206
296
  pdfInputs: true,
207
297
  videoInputs: false,
208
- maxOutputTokens: 32768,
298
+ maxOutputTokens: 32e3,
209
299
  reasoningOutput: true,
210
300
  imageOutputs: false,
211
301
  audioOutputs: false,
212
302
  videoOutputs: false,
213
- toolCalling: false,
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
- "o3-mini": {
310
+ o3: {
221
311
  maxInputTokens: 2e5,
222
- imageInputs: false,
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
- "codex-mini-latest": {
239
- maxInputTokens: 2e5,
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: 1e5,
245
- reasoningOutput: true,
334
+ maxOutputTokens: 1536,
335
+ reasoningOutput: false,
246
336
  imageOutputs: false,
247
337
  audioOutputs: false,
248
338
  videoOutputs: false,
249
- toolCalling: true,
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-5-nano": {
257
- maxInputTokens: 4e5,
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: 128e3,
263
- reasoningOutput: true,
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
- "gpt-5-codex": {
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-4o": {
293
- maxInputTokens: 128e3,
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: 16384,
299
- reasoningOutput: false,
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
- "o4-mini": {
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
- o1: {
347
- maxInputTokens: 2e5,
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: 1e5,
353
- reasoningOutput: true,
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-mini": {
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
- "o1-mini": {
383
- maxInputTokens: 128e3,
384
- imageInputs: false,
508
+ "o4-mini": {
509
+ maxInputTokens: 2e5,
510
+ imageInputs: true,
385
511
  audioInputs: false,
386
512
  pdfInputs: true,
387
513
  videoInputs: false,
388
- maxOutputTokens: 65536,
514
+ maxOutputTokens: 1e5,
389
515
  reasoningOutput: true,
390
516
  imageOutputs: false,
391
517
  audioOutputs: false,
392
518
  videoOutputs: false,
393
- toolCalling: false,
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
- "text-embedding-ada-002": {
401
- maxInputTokens: 8192,
402
- imageInputs: false,
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: 1536,
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
- "o3-pro": {
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-4o-2024-11-20": {
437
- maxInputTokens: 128e3,
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: 16384,
443
- reasoningOutput: false,
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
- o3: {
455
- maxInputTokens: 2e5,
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: 1e5,
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
- "o4-mini-deep-research": {
616
+ "o3-mini": {
473
617
  maxInputTokens: 2e5,
474
- imageInputs: true,
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-5-chat-latest": {
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: false,
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-4o-mini": {
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
- "gpt-5-pro": {
545
- maxInputTokens: 4e5,
546
- imageInputs: true,
724
+ "o1-mini": {
725
+ maxInputTokens: 128e3,
726
+ imageInputs: false,
547
727
  audioInputs: false,
548
728
  pdfInputs: true,
549
729
  videoInputs: false,
550
- maxOutputTokens: 272e3,
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,