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