@langchain/openai 1.5.10 → 1.5.12-rc.0

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 (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/azure/chat_models/common.cjs.map +1 -1
  3. package/dist/azure/embeddings.cjs.map +1 -1
  4. package/dist/azure/llms.cjs.map +1 -1
  5. package/dist/chat_models/base.cjs +3 -2
  6. package/dist/chat_models/base.cjs.map +1 -1
  7. package/dist/chat_models/base.js +3 -2
  8. package/dist/chat_models/base.js.map +1 -1
  9. package/dist/chat_models/completions.cjs.map +1 -1
  10. package/dist/chat_models/profiles.cjs +203 -167
  11. package/dist/chat_models/profiles.cjs.map +1 -1
  12. package/dist/chat_models/profiles.js +203 -167
  13. package/dist/chat_models/profiles.js.map +1 -1
  14. package/dist/chat_models/responses.cjs.map +1 -1
  15. package/dist/chat_models/responses.js.map +1 -1
  16. package/dist/converters/completions.cjs +2 -1
  17. package/dist/converters/completions.cjs.map +1 -1
  18. package/dist/converters/completions.js +2 -1
  19. package/dist/converters/completions.js.map +1 -1
  20. package/dist/converters/responses.cjs +6 -4
  21. package/dist/converters/responses.cjs.map +1 -1
  22. package/dist/converters/responses.d.cts.map +1 -1
  23. package/dist/converters/responses.d.ts.map +1 -1
  24. package/dist/converters/responses.js +6 -4
  25. package/dist/converters/responses.js.map +1 -1
  26. package/dist/embeddings.cjs +2 -1
  27. package/dist/embeddings.cjs.map +1 -1
  28. package/dist/embeddings.js +2 -1
  29. package/dist/embeddings.js.map +1 -1
  30. package/dist/llms.cjs +3 -2
  31. package/dist/llms.cjs.map +1 -1
  32. package/dist/llms.js +3 -2
  33. package/dist/llms.js.map +1 -1
  34. package/dist/tools/applyPatch.cjs.map +1 -1
  35. package/dist/tools/computerUse.cjs.map +1 -1
  36. package/dist/tools/custom.cjs.map +1 -1
  37. package/dist/tools/dalle.cjs.map +1 -1
  38. package/dist/tools/localShell.cjs.map +1 -1
  39. package/dist/tools/shell.cjs.map +1 -1
  40. package/dist/utils/azure.cjs.map +1 -1
  41. package/dist/utils/client.cjs.map +1 -1
  42. package/dist/utils/misc.cjs +1 -0
  43. package/dist/utils/misc.cjs.map +1 -1
  44. package/dist/utils/misc.js +1 -0
  45. package/dist/utils/misc.js.map +1 -1
  46. package/dist/utils/output.cjs.map +1 -1
  47. package/dist/utils/prompts.cjs +2 -1
  48. package/dist/utils/prompts.cjs.map +1 -1
  49. package/dist/utils/prompts.js +2 -1
  50. package/dist/utils/prompts.js.map +1 -1
  51. package/dist/utils/responses_stream_events.cjs.map +1 -1
  52. package/dist/utils/tools.cjs.map +1 -1
  53. package/package.json +8 -8
@@ -1,13 +1,13 @@
1
1
  //#region src/chat_models/profiles.ts
2
2
  const PROFILES = {
3
- "gpt-4o-2024-11-20": {
4
- maxInputTokens: 128e3,
3
+ "gpt-5-nano": {
4
+ maxInputTokens: 4e5,
5
5
  imageInputs: true,
6
6
  audioInputs: false,
7
7
  pdfInputs: true,
8
8
  videoInputs: false,
9
- maxOutputTokens: 16384,
10
- reasoningOutput: false,
9
+ maxOutputTokens: 128e3,
10
+ reasoningOutput: true,
11
11
  imageOutputs: false,
12
12
  audioOutputs: false,
13
13
  videoOutputs: false,
@@ -18,14 +18,14 @@ const PROFILES = {
18
18
  imageToolMessage: true,
19
19
  toolChoice: true
20
20
  },
21
- "gpt-5.3-codex": {
22
- maxInputTokens: 4e5,
21
+ "gpt-4.1-nano": {
22
+ maxInputTokens: 1047576,
23
23
  imageInputs: true,
24
24
  audioInputs: false,
25
25
  pdfInputs: true,
26
26
  videoInputs: false,
27
- maxOutputTokens: 128e3,
28
- reasoningOutput: true,
27
+ maxOutputTokens: 32768,
28
+ reasoningOutput: false,
29
29
  imageOutputs: false,
30
30
  audioOutputs: false,
31
31
  videoOutputs: false,
@@ -36,14 +36,14 @@ const PROFILES = {
36
36
  imageToolMessage: true,
37
37
  toolChoice: true
38
38
  },
39
- "gpt-5-codex": {
40
- maxInputTokens: 4e5,
39
+ "gpt-4o-2024-05-13": {
40
+ maxInputTokens: 128e3,
41
41
  imageInputs: true,
42
42
  audioInputs: false,
43
43
  pdfInputs: true,
44
44
  videoInputs: false,
45
- maxOutputTokens: 128e3,
46
- reasoningOutput: true,
45
+ maxOutputTokens: 4096,
46
+ reasoningOutput: false,
47
47
  imageOutputs: false,
48
48
  audioOutputs: false,
49
49
  videoOutputs: false,
@@ -72,14 +72,32 @@ const PROFILES = {
72
72
  imageToolMessage: true,
73
73
  toolChoice: true
74
74
  },
75
- "gpt-4o-mini": {
76
- maxInputTokens: 128e3,
75
+ "chatgpt-image-latest": {
76
+ maxInputTokens: 0,
77
77
  imageInputs: true,
78
78
  audioInputs: false,
79
79
  pdfInputs: true,
80
80
  videoInputs: false,
81
- maxOutputTokens: 16384,
81
+ maxOutputTokens: 0,
82
82
  reasoningOutput: false,
83
+ imageOutputs: true,
84
+ audioOutputs: false,
85
+ videoOutputs: false,
86
+ toolCalling: false,
87
+ structuredOutput: true,
88
+ imageUrlInputs: true,
89
+ pdfToolMessage: true,
90
+ imageToolMessage: true,
91
+ toolChoice: true
92
+ },
93
+ "gpt-5.6-sol": {
94
+ maxInputTokens: 105e4,
95
+ imageInputs: true,
96
+ audioInputs: false,
97
+ pdfInputs: true,
98
+ videoInputs: false,
99
+ maxOutputTokens: 128e3,
100
+ reasoningOutput: true,
83
101
  imageOutputs: false,
84
102
  audioOutputs: false,
85
103
  videoOutputs: false,
@@ -90,26 +108,26 @@ const PROFILES = {
90
108
  imageToolMessage: true,
91
109
  toolChoice: true
92
110
  },
93
- "text-embedding-ada-002": {
94
- maxInputTokens: 8192,
95
- imageInputs: false,
111
+ "gpt-4o-2024-08-06": {
112
+ maxInputTokens: 128e3,
113
+ imageInputs: true,
96
114
  audioInputs: false,
97
115
  pdfInputs: true,
98
116
  videoInputs: false,
99
- maxOutputTokens: 1536,
117
+ maxOutputTokens: 16384,
100
118
  reasoningOutput: false,
101
119
  imageOutputs: false,
102
120
  audioOutputs: false,
103
121
  videoOutputs: false,
104
- toolCalling: false,
122
+ toolCalling: true,
105
123
  structuredOutput: true,
106
124
  imageUrlInputs: true,
107
125
  pdfToolMessage: true,
108
126
  imageToolMessage: true,
109
127
  toolChoice: true
110
128
  },
111
- "gpt-5-chat-latest": {
112
- maxInputTokens: 4e5,
129
+ "gpt-6-astra": {
130
+ maxInputTokens: 105e4,
113
131
  imageInputs: true,
114
132
  audioInputs: false,
115
133
  pdfInputs: true,
@@ -119,20 +137,20 @@ const PROFILES = {
119
137
  imageOutputs: false,
120
138
  audioOutputs: false,
121
139
  videoOutputs: false,
122
- toolCalling: false,
140
+ toolCalling: true,
123
141
  structuredOutput: true,
124
142
  imageUrlInputs: true,
125
143
  pdfToolMessage: true,
126
144
  imageToolMessage: true,
127
145
  toolChoice: true
128
146
  },
129
- "codex-mini-latest": {
130
- maxInputTokens: 2e5,
131
- imageInputs: false,
147
+ "gpt-5.2-pro": {
148
+ maxInputTokens: 4e5,
149
+ imageInputs: true,
132
150
  audioInputs: false,
133
151
  pdfInputs: true,
134
152
  videoInputs: false,
135
- maxOutputTokens: 1e5,
153
+ maxOutputTokens: 128e3,
136
154
  reasoningOutput: true,
137
155
  imageOutputs: false,
138
156
  audioOutputs: false,
@@ -144,13 +162,13 @@ const PROFILES = {
144
162
  imageToolMessage: true,
145
163
  toolChoice: true
146
164
  },
147
- "gpt-5.1-codex-max": {
148
- maxInputTokens: 4e5,
165
+ "gpt-5.3-codex-spark": {
166
+ maxInputTokens: 128e3,
149
167
  imageInputs: true,
150
168
  audioInputs: false,
151
169
  pdfInputs: true,
152
170
  videoInputs: false,
153
- maxOutputTokens: 128e3,
171
+ maxOutputTokens: 32e3,
154
172
  reasoningOutput: true,
155
173
  imageOutputs: false,
156
174
  audioOutputs: false,
@@ -162,13 +180,13 @@ const PROFILES = {
162
180
  imageToolMessage: true,
163
181
  toolChoice: true
164
182
  },
165
- "gpt-4o-2024-05-13": {
166
- maxInputTokens: 128e3,
183
+ "gpt-4.1-mini": {
184
+ maxInputTokens: 1047576,
167
185
  imageInputs: true,
168
186
  audioInputs: false,
169
187
  pdfInputs: true,
170
188
  videoInputs: false,
171
- maxOutputTokens: 4096,
189
+ maxOutputTokens: 32768,
172
190
  reasoningOutput: false,
173
191
  imageOutputs: false,
174
192
  audioOutputs: false,
@@ -180,13 +198,13 @@ const PROFILES = {
180
198
  imageToolMessage: true,
181
199
  toolChoice: true
182
200
  },
183
- "gpt-5.2-chat-latest": {
184
- maxInputTokens: 128e3,
201
+ "gpt-5.4": {
202
+ maxInputTokens: 105e4,
185
203
  imageInputs: true,
186
204
  audioInputs: false,
187
205
  pdfInputs: true,
188
206
  videoInputs: false,
189
- maxOutputTokens: 16384,
207
+ maxOutputTokens: 128e3,
190
208
  reasoningOutput: true,
191
209
  imageOutputs: false,
192
210
  audioOutputs: false,
@@ -198,14 +216,14 @@ const PROFILES = {
198
216
  imageToolMessage: true,
199
217
  toolChoice: true
200
218
  },
201
- "gpt-5.2-codex": {
202
- maxInputTokens: 4e5,
219
+ "gpt-4-turbo": {
220
+ maxInputTokens: 128e3,
203
221
  imageInputs: true,
204
222
  audioInputs: false,
205
223
  pdfInputs: true,
206
224
  videoInputs: false,
207
- maxOutputTokens: 128e3,
208
- reasoningOutput: true,
225
+ maxOutputTokens: 4096,
226
+ reasoningOutput: false,
209
227
  imageOutputs: false,
210
228
  audioOutputs: false,
211
229
  videoOutputs: false,
@@ -216,13 +234,13 @@ const PROFILES = {
216
234
  imageToolMessage: true,
217
235
  toolChoice: true
218
236
  },
219
- "o3-deep-research": {
220
- maxInputTokens: 2e5,
237
+ "gpt-5.1": {
238
+ maxInputTokens: 4e5,
221
239
  imageInputs: true,
222
240
  audioInputs: false,
223
241
  pdfInputs: true,
224
242
  videoInputs: false,
225
- maxOutputTokens: 1e5,
243
+ maxOutputTokens: 128e3,
226
244
  reasoningOutput: true,
227
245
  imageOutputs: false,
228
246
  audioOutputs: false,
@@ -252,14 +270,14 @@ const PROFILES = {
252
270
  imageToolMessage: true,
253
271
  toolChoice: true
254
272
  },
255
- "gpt-5.1": {
256
- maxInputTokens: 4e5,
273
+ "gpt-4o": {
274
+ maxInputTokens: 128e3,
257
275
  imageInputs: true,
258
276
  audioInputs: false,
259
277
  pdfInputs: true,
260
278
  videoInputs: false,
261
- maxOutputTokens: 128e3,
262
- reasoningOutput: true,
279
+ maxOutputTokens: 16384,
280
+ reasoningOutput: false,
263
281
  imageOutputs: false,
264
282
  audioOutputs: false,
265
283
  videoOutputs: false,
@@ -270,13 +288,13 @@ const PROFILES = {
270
288
  imageToolMessage: true,
271
289
  toolChoice: true
272
290
  },
273
- "o4-mini-deep-research": {
274
- maxInputTokens: 2e5,
291
+ "gpt-5.6-luna": {
292
+ maxInputTokens: 105e4,
275
293
  imageInputs: true,
276
294
  audioInputs: false,
277
295
  pdfInputs: true,
278
296
  videoInputs: false,
279
- maxOutputTokens: 1e5,
297
+ maxOutputTokens: 128e3,
280
298
  reasoningOutput: true,
281
299
  imageOutputs: false,
282
300
  audioOutputs: false,
@@ -288,13 +306,13 @@ const PROFILES = {
288
306
  imageToolMessage: true,
289
307
  toolChoice: true
290
308
  },
291
- "gpt-5.3-codex-spark": {
292
- maxInputTokens: 128e3,
309
+ "gpt-5.3-codex": {
310
+ maxInputTokens: 4e5,
293
311
  imageInputs: true,
294
312
  audioInputs: false,
295
313
  pdfInputs: true,
296
314
  videoInputs: false,
297
- maxOutputTokens: 32e3,
315
+ maxOutputTokens: 128e3,
298
316
  reasoningOutput: true,
299
317
  imageOutputs: false,
300
318
  audioOutputs: false,
@@ -306,14 +324,14 @@ const PROFILES = {
306
324
  imageToolMessage: true,
307
325
  toolChoice: true
308
326
  },
309
- o3: {
310
- maxInputTokens: 2e5,
327
+ "gpt-4o-mini": {
328
+ maxInputTokens: 128e3,
311
329
  imageInputs: true,
312
330
  audioInputs: false,
313
331
  pdfInputs: true,
314
332
  videoInputs: false,
315
- maxOutputTokens: 1e5,
316
- reasoningOutput: true,
333
+ maxOutputTokens: 16384,
334
+ reasoningOutput: false,
317
335
  imageOutputs: false,
318
336
  audioOutputs: false,
319
337
  videoOutputs: false,
@@ -324,15 +342,15 @@ const PROFILES = {
324
342
  imageToolMessage: true,
325
343
  toolChoice: true
326
344
  },
327
- "text-embedding-3-small": {
328
- maxInputTokens: 8191,
329
- imageInputs: false,
345
+ "gpt-image-1.5": {
346
+ maxInputTokens: 0,
347
+ imageInputs: true,
330
348
  audioInputs: false,
331
349
  pdfInputs: true,
332
350
  videoInputs: false,
333
- maxOutputTokens: 1536,
351
+ maxOutputTokens: 0,
334
352
  reasoningOutput: false,
335
- imageOutputs: false,
353
+ imageOutputs: true,
336
354
  audioOutputs: false,
337
355
  videoOutputs: false,
338
356
  toolCalling: false,
@@ -342,7 +360,25 @@ const PROFILES = {
342
360
  imageToolMessage: true,
343
361
  toolChoice: true
344
362
  },
345
- "gpt-4.1-nano": {
363
+ "o1-pro": {
364
+ maxInputTokens: 2e5,
365
+ imageInputs: true,
366
+ audioInputs: false,
367
+ pdfInputs: true,
368
+ videoInputs: false,
369
+ maxOutputTokens: 1e5,
370
+ reasoningOutput: true,
371
+ imageOutputs: false,
372
+ audioOutputs: false,
373
+ videoOutputs: false,
374
+ toolCalling: true,
375
+ structuredOutput: true,
376
+ imageUrlInputs: true,
377
+ pdfToolMessage: true,
378
+ imageToolMessage: true,
379
+ toolChoice: true
380
+ },
381
+ "gpt-4.1": {
346
382
  maxInputTokens: 1047576,
347
383
  imageInputs: true,
348
384
  audioInputs: false,
@@ -360,13 +396,13 @@ const PROFILES = {
360
396
  imageToolMessage: true,
361
397
  toolChoice: true
362
398
  },
363
- "text-embedding-3-large": {
364
- maxInputTokens: 8191,
399
+ "text-embedding-ada-002": {
400
+ maxInputTokens: 8192,
365
401
  imageInputs: false,
366
402
  audioInputs: false,
367
403
  pdfInputs: true,
368
404
  videoInputs: false,
369
- maxOutputTokens: 3072,
405
+ maxOutputTokens: 1536,
370
406
  reasoningOutput: false,
371
407
  imageOutputs: false,
372
408
  audioOutputs: false,
@@ -378,25 +414,25 @@ const PROFILES = {
378
414
  imageToolMessage: true,
379
415
  toolChoice: true
380
416
  },
381
- "gpt-3.5-turbo": {
382
- maxInputTokens: 16385,
383
- imageInputs: false,
417
+ "gpt-image-1": {
418
+ maxInputTokens: 0,
419
+ imageInputs: true,
384
420
  audioInputs: false,
385
- pdfInputs: false,
421
+ pdfInputs: true,
386
422
  videoInputs: false,
387
- maxOutputTokens: 4096,
423
+ maxOutputTokens: 0,
388
424
  reasoningOutput: false,
389
- imageOutputs: false,
425
+ imageOutputs: true,
390
426
  audioOutputs: false,
391
427
  videoOutputs: false,
392
428
  toolCalling: false,
393
- structuredOutput: false,
394
- imageUrlInputs: false,
395
- pdfToolMessage: false,
396
- imageToolMessage: false,
429
+ structuredOutput: true,
430
+ imageUrlInputs: true,
431
+ pdfToolMessage: true,
432
+ imageToolMessage: true,
397
433
  toolChoice: true
398
434
  },
399
- "gpt-5.1-codex-mini": {
435
+ "gpt-5.4-nano": {
400
436
  maxInputTokens: 4e5,
401
437
  imageInputs: true,
402
438
  audioInputs: false,
@@ -414,8 +450,8 @@ const PROFILES = {
414
450
  imageToolMessage: true,
415
451
  toolChoice: true
416
452
  },
417
- "gpt-5.2": {
418
- maxInputTokens: 4e5,
453
+ "gpt-5.5-pro": {
454
+ maxInputTokens: 105e4,
419
455
  imageInputs: true,
420
456
  audioInputs: false,
421
457
  pdfInputs: true,
@@ -432,31 +468,31 @@ const PROFILES = {
432
468
  imageToolMessage: true,
433
469
  toolChoice: true
434
470
  },
435
- "gpt-4.1": {
436
- maxInputTokens: 1047576,
471
+ "gpt-image-1-mini": {
472
+ maxInputTokens: 0,
437
473
  imageInputs: true,
438
474
  audioInputs: false,
439
475
  pdfInputs: true,
440
476
  videoInputs: false,
441
- maxOutputTokens: 32768,
477
+ maxOutputTokens: 0,
442
478
  reasoningOutput: false,
443
- imageOutputs: false,
479
+ imageOutputs: true,
444
480
  audioOutputs: false,
445
481
  videoOutputs: false,
446
- toolCalling: true,
482
+ toolCalling: false,
447
483
  structuredOutput: true,
448
484
  imageUrlInputs: true,
449
485
  pdfToolMessage: true,
450
486
  imageToolMessage: true,
451
487
  toolChoice: true
452
488
  },
453
- "o3-pro": {
454
- maxInputTokens: 2e5,
489
+ "gpt-5.4-mini": {
490
+ maxInputTokens: 4e5,
455
491
  imageInputs: true,
456
492
  audioInputs: false,
457
493
  pdfInputs: true,
458
494
  videoInputs: false,
459
- maxOutputTokens: 1e5,
495
+ maxOutputTokens: 128e3,
460
496
  reasoningOutput: true,
461
497
  imageOutputs: false,
462
498
  audioOutputs: false,
@@ -468,49 +504,49 @@ const PROFILES = {
468
504
  imageToolMessage: true,
469
505
  toolChoice: true
470
506
  },
471
- "gpt-4-turbo": {
472
- maxInputTokens: 128e3,
507
+ "gpt-image-2": {
508
+ maxInputTokens: 0,
473
509
  imageInputs: true,
474
510
  audioInputs: false,
475
511
  pdfInputs: true,
476
512
  videoInputs: false,
477
- maxOutputTokens: 4096,
513
+ maxOutputTokens: 0,
478
514
  reasoningOutput: false,
479
- imageOutputs: false,
515
+ imageOutputs: true,
480
516
  audioOutputs: false,
481
517
  videoOutputs: false,
482
- toolCalling: true,
518
+ toolCalling: false,
483
519
  structuredOutput: true,
484
520
  imageUrlInputs: true,
485
521
  pdfToolMessage: true,
486
522
  imageToolMessage: true,
487
523
  toolChoice: true
488
524
  },
489
- "gpt-5": {
490
- maxInputTokens: 4e5,
491
- imageInputs: true,
525
+ "gpt-3.5-turbo": {
526
+ maxInputTokens: 16385,
527
+ imageInputs: false,
492
528
  audioInputs: false,
493
- pdfInputs: true,
529
+ pdfInputs: false,
494
530
  videoInputs: false,
495
- maxOutputTokens: 128e3,
496
- reasoningOutput: true,
531
+ maxOutputTokens: 4096,
532
+ reasoningOutput: false,
497
533
  imageOutputs: false,
498
534
  audioOutputs: false,
499
535
  videoOutputs: false,
500
- toolCalling: true,
501
- structuredOutput: true,
502
- imageUrlInputs: true,
503
- pdfToolMessage: true,
504
- imageToolMessage: true,
536
+ toolCalling: false,
537
+ structuredOutput: false,
538
+ imageUrlInputs: false,
539
+ pdfToolMessage: false,
540
+ imageToolMessage: false,
505
541
  toolChoice: true
506
542
  },
507
- "o4-mini": {
508
- maxInputTokens: 2e5,
543
+ "gpt-5.6": {
544
+ maxInputTokens: 105e4,
509
545
  imageInputs: true,
510
546
  audioInputs: false,
511
547
  pdfInputs: true,
512
548
  videoInputs: false,
513
- maxOutputTokens: 1e5,
549
+ maxOutputTokens: 128e3,
514
550
  reasoningOutput: true,
515
551
  imageOutputs: false,
516
552
  audioOutputs: false,
@@ -522,26 +558,26 @@ const PROFILES = {
522
558
  imageToolMessage: true,
523
559
  toolChoice: true
524
560
  },
525
- "gpt-4.1-mini": {
526
- maxInputTokens: 1047576,
527
- imageInputs: true,
561
+ "text-embedding-3-small": {
562
+ maxInputTokens: 8191,
563
+ imageInputs: false,
528
564
  audioInputs: false,
529
565
  pdfInputs: true,
530
566
  videoInputs: false,
531
- maxOutputTokens: 32768,
567
+ maxOutputTokens: 1536,
532
568
  reasoningOutput: false,
533
569
  imageOutputs: false,
534
570
  audioOutputs: false,
535
571
  videoOutputs: false,
536
- toolCalling: true,
572
+ toolCalling: false,
537
573
  structuredOutput: true,
538
574
  imageUrlInputs: true,
539
575
  pdfToolMessage: true,
540
576
  imageToolMessage: true,
541
577
  toolChoice: true
542
578
  },
543
- "gpt-5.4": {
544
- maxInputTokens: 105e4,
579
+ "gpt-5-mini": {
580
+ maxInputTokens: 4e5,
545
581
  imageInputs: true,
546
582
  audioInputs: false,
547
583
  pdfInputs: true,
@@ -558,49 +594,49 @@ const PROFILES = {
558
594
  imageToolMessage: true,
559
595
  toolChoice: true
560
596
  },
561
- "o1-preview": {
562
- maxInputTokens: 128e3,
563
- imageInputs: false,
597
+ "gpt-5.4-pro": {
598
+ maxInputTokens: 105e4,
599
+ imageInputs: true,
564
600
  audioInputs: false,
565
601
  pdfInputs: true,
566
602
  videoInputs: false,
567
- maxOutputTokens: 32768,
603
+ maxOutputTokens: 128e3,
568
604
  reasoningOutput: true,
569
605
  imageOutputs: false,
570
606
  audioOutputs: false,
571
607
  videoOutputs: false,
572
- toolCalling: false,
608
+ toolCalling: true,
573
609
  structuredOutput: true,
574
610
  imageUrlInputs: true,
575
611
  pdfToolMessage: true,
576
612
  imageToolMessage: true,
577
613
  toolChoice: true
578
614
  },
579
- "gpt-5.4-pro": {
580
- maxInputTokens: 105e4,
581
- imageInputs: true,
615
+ "text-embedding-3-large": {
616
+ maxInputTokens: 8191,
617
+ imageInputs: false,
582
618
  audioInputs: false,
583
619
  pdfInputs: true,
584
620
  videoInputs: false,
585
- maxOutputTokens: 128e3,
586
- reasoningOutput: true,
621
+ maxOutputTokens: 3072,
622
+ reasoningOutput: false,
587
623
  imageOutputs: false,
588
624
  audioOutputs: false,
589
625
  videoOutputs: false,
590
- toolCalling: true,
626
+ toolCalling: false,
591
627
  structuredOutput: true,
592
628
  imageUrlInputs: true,
593
629
  pdfToolMessage: true,
594
630
  imageToolMessage: true,
595
631
  toolChoice: true
596
632
  },
597
- "gpt-5.5": {
633
+ "gpt-5.6-terra": {
598
634
  maxInputTokens: 105e4,
599
635
  imageInputs: true,
600
636
  audioInputs: false,
601
637
  pdfInputs: true,
602
638
  videoInputs: false,
603
- maxOutputTokens: 13e4,
639
+ maxOutputTokens: 128e3,
604
640
  reasoningOutput: true,
605
641
  imageOutputs: false,
606
642
  audioOutputs: false,
@@ -612,14 +648,14 @@ const PROFILES = {
612
648
  imageToolMessage: true,
613
649
  toolChoice: true
614
650
  },
615
- "gpt-5.5-pro": {
616
- maxInputTokens: 105e4,
617
- imageInputs: true,
651
+ "gpt-4": {
652
+ maxInputTokens: 8192,
653
+ imageInputs: false,
618
654
  audioInputs: false,
619
655
  pdfInputs: true,
620
656
  videoInputs: false,
621
- maxOutputTokens: 128e3,
622
- reasoningOutput: true,
657
+ maxOutputTokens: 8192,
658
+ reasoningOutput: false,
623
659
  imageOutputs: false,
624
660
  audioOutputs: false,
625
661
  videoOutputs: false,
@@ -630,13 +666,13 @@ const PROFILES = {
630
666
  imageToolMessage: true,
631
667
  toolChoice: true
632
668
  },
633
- "o1-pro": {
634
- maxInputTokens: 2e5,
669
+ "gpt-5.2": {
670
+ maxInputTokens: 4e5,
635
671
  imageInputs: true,
636
672
  audioInputs: false,
637
673
  pdfInputs: true,
638
674
  videoInputs: false,
639
- maxOutputTokens: 1e5,
675
+ maxOutputTokens: 128e3,
640
676
  reasoningOutput: true,
641
677
  imageOutputs: false,
642
678
  audioOutputs: false,
@@ -648,7 +684,7 @@ const PROFILES = {
648
684
  imageToolMessage: true,
649
685
  toolChoice: true
650
686
  },
651
- "gpt-5.1-codex": {
687
+ "gpt-5": {
652
688
  maxInputTokens: 4e5,
653
689
  imageInputs: true,
654
690
  audioInputs: false,
@@ -666,13 +702,13 @@ const PROFILES = {
666
702
  imageToolMessage: true,
667
703
  toolChoice: true
668
704
  },
669
- "gpt-5.2-pro": {
670
- maxInputTokens: 4e5,
705
+ "gpt-5.2-chat-latest": {
706
+ maxInputTokens: 128e3,
671
707
  imageInputs: true,
672
708
  audioInputs: false,
673
709
  pdfInputs: true,
674
710
  videoInputs: false,
675
- maxOutputTokens: 128e3,
711
+ maxOutputTokens: 16384,
676
712
  reasoningOutput: true,
677
713
  imageOutputs: false,
678
714
  audioOutputs: false,
@@ -684,9 +720,9 @@ const PROFILES = {
684
720
  imageToolMessage: true,
685
721
  toolChoice: true
686
722
  },
687
- "o3-mini": {
723
+ "o4-mini": {
688
724
  maxInputTokens: 2e5,
689
- imageInputs: false,
725
+ imageInputs: true,
690
726
  audioInputs: false,
691
727
  pdfInputs: true,
692
728
  videoInputs: false,
@@ -702,16 +738,16 @@ const PROFILES = {
702
738
  imageToolMessage: true,
703
739
  toolChoice: true
704
740
  },
705
- "gpt-4o-2024-08-06": {
741
+ "gpt-realtime-2.1": {
706
742
  maxInputTokens: 128e3,
707
743
  imageInputs: true,
708
- audioInputs: false,
744
+ audioInputs: true,
709
745
  pdfInputs: true,
710
746
  videoInputs: false,
711
- maxOutputTokens: 16384,
712
- reasoningOutput: false,
747
+ maxOutputTokens: 32e3,
748
+ reasoningOutput: true,
713
749
  imageOutputs: false,
714
- audioOutputs: false,
750
+ audioOutputs: true,
715
751
  videoOutputs: false,
716
752
  toolCalling: true,
717
753
  structuredOutput: true,
@@ -720,13 +756,13 @@ const PROFILES = {
720
756
  imageToolMessage: true,
721
757
  toolChoice: true
722
758
  },
723
- "gpt-5-mini": {
724
- maxInputTokens: 4e5,
725
- imageInputs: true,
759
+ "o3-mini": {
760
+ maxInputTokens: 2e5,
761
+ imageInputs: false,
726
762
  audioInputs: false,
727
763
  pdfInputs: true,
728
764
  videoInputs: false,
729
- maxOutputTokens: 128e3,
765
+ maxOutputTokens: 1e5,
730
766
  reasoningOutput: true,
731
767
  imageOutputs: false,
732
768
  audioOutputs: false,
@@ -738,13 +774,13 @@ const PROFILES = {
738
774
  imageToolMessage: true,
739
775
  toolChoice: true
740
776
  },
741
- "gpt-5.1-chat-latest": {
742
- maxInputTokens: 128e3,
777
+ o3: {
778
+ maxInputTokens: 2e5,
743
779
  imageInputs: true,
744
780
  audioInputs: false,
745
781
  pdfInputs: true,
746
782
  videoInputs: false,
747
- maxOutputTokens: 16384,
783
+ maxOutputTokens: 1e5,
748
784
  reasoningOutput: true,
749
785
  imageOutputs: false,
750
786
  audioOutputs: false,
@@ -756,14 +792,14 @@ const PROFILES = {
756
792
  imageToolMessage: true,
757
793
  toolChoice: true
758
794
  },
759
- "gpt-4": {
760
- maxInputTokens: 8192,
761
- imageInputs: false,
795
+ "o3-pro": {
796
+ maxInputTokens: 2e5,
797
+ imageInputs: true,
762
798
  audioInputs: false,
763
799
  pdfInputs: true,
764
800
  videoInputs: false,
765
- maxOutputTokens: 8192,
766
- reasoningOutput: false,
801
+ maxOutputTokens: 1e5,
802
+ reasoningOutput: true,
767
803
  imageOutputs: false,
768
804
  audioOutputs: false,
769
805
  videoOutputs: false,
@@ -774,14 +810,14 @@ const PROFILES = {
774
810
  imageToolMessage: true,
775
811
  toolChoice: true
776
812
  },
777
- "gpt-5-nano": {
778
- maxInputTokens: 4e5,
813
+ "gpt-5.3-chat-latest": {
814
+ maxInputTokens: 128e3,
779
815
  imageInputs: true,
780
816
  audioInputs: false,
781
817
  pdfInputs: true,
782
818
  videoInputs: false,
783
- maxOutputTokens: 128e3,
784
- reasoningOutput: true,
819
+ maxOutputTokens: 16384,
820
+ reasoningOutput: false,
785
821
  imageOutputs: false,
786
822
  audioOutputs: false,
787
823
  videoOutputs: false,
@@ -792,25 +828,25 @@ const PROFILES = {
792
828
  imageToolMessage: true,
793
829
  toolChoice: true
794
830
  },
795
- "o1-mini": {
796
- maxInputTokens: 128e3,
797
- imageInputs: false,
831
+ "gpt-5.5": {
832
+ maxInputTokens: 105e4,
833
+ imageInputs: true,
798
834
  audioInputs: false,
799
835
  pdfInputs: true,
800
836
  videoInputs: false,
801
- maxOutputTokens: 65536,
837
+ maxOutputTokens: 128e3,
802
838
  reasoningOutput: true,
803
839
  imageOutputs: false,
804
840
  audioOutputs: false,
805
841
  videoOutputs: false,
806
- toolCalling: false,
842
+ toolCalling: true,
807
843
  structuredOutput: true,
808
844
  imageUrlInputs: true,
809
845
  pdfToolMessage: true,
810
846
  imageToolMessage: true,
811
847
  toolChoice: true
812
848
  },
813
- "gpt-4o": {
849
+ "gpt-4o-2024-11-20": {
814
850
  maxInputTokens: 128e3,
815
851
  imageInputs: true,
816
852
  audioInputs: false,