@langchain/openai 1.5.13 → 1.6.1
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 +29 -0
- package/dist/chat_models/base.cjs +7 -1
- package/dist/chat_models/base.cjs.map +1 -1
- package/dist/chat_models/base.d.cts +10 -2
- package/dist/chat_models/base.d.cts.map +1 -1
- package/dist/chat_models/base.d.ts +9 -1
- package/dist/chat_models/base.d.ts.map +1 -1
- package/dist/chat_models/base.js +7 -1
- package/dist/chat_models/base.js.map +1 -1
- package/dist/chat_models/completions.cjs +14 -3
- package/dist/chat_models/completions.cjs.map +1 -1
- package/dist/chat_models/completions.d.cts +2 -0
- package/dist/chat_models/completions.d.cts.map +1 -1
- package/dist/chat_models/completions.d.ts +2 -0
- package/dist/chat_models/completions.d.ts.map +1 -1
- package/dist/chat_models/completions.js +15 -4
- package/dist/chat_models/completions.js.map +1 -1
- package/dist/chat_models/index.cjs +68 -0
- package/dist/chat_models/index.cjs.map +1 -1
- package/dist/chat_models/index.d.cts +66 -0
- package/dist/chat_models/index.d.cts.map +1 -1
- package/dist/chat_models/index.d.ts +66 -0
- package/dist/chat_models/index.d.ts.map +1 -1
- package/dist/chat_models/index.js +68 -0
- package/dist/chat_models/index.js.map +1 -1
- package/dist/chat_models/profiles.cjs +224 -48
- package/dist/chat_models/profiles.cjs.map +1 -1
- package/dist/chat_models/profiles.js +224 -48
- package/dist/chat_models/profiles.js.map +1 -1
- package/dist/chat_models/responses.cjs +9 -3
- package/dist/chat_models/responses.cjs.map +1 -1
- package/dist/chat_models/responses.d.cts +2 -0
- package/dist/chat_models/responses.d.cts.map +1 -1
- package/dist/chat_models/responses.d.ts +2 -0
- package/dist/chat_models/responses.d.ts.map +1 -1
- package/dist/chat_models/responses.js +9 -3
- package/dist/chat_models/responses.js.map +1 -1
- package/dist/converters/completions.cjs +9 -8
- package/dist/converters/completions.cjs.map +1 -1
- package/dist/converters/completions.d.cts.map +1 -1
- package/dist/converters/completions.d.ts.map +1 -1
- package/dist/converters/completions.js +10 -9
- package/dist/converters/completions.js.map +1 -1
- package/dist/converters/responses.cjs +79 -50
- package/dist/converters/responses.cjs.map +1 -1
- package/dist/converters/responses.d.cts.map +1 -1
- package/dist/converters/responses.d.ts.map +1 -1
- package/dist/converters/responses.js +80 -51
- package/dist/converters/responses.js.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/llms.cjs +1 -1
- package/dist/llms.cjs.map +1 -1
- package/dist/llms.js +1 -1
- package/dist/llms.js.map +1 -1
- package/dist/types.d.cts +7 -2
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +7 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/file_mime_types.cjs +15 -0
- package/dist/utils/file_mime_types.cjs.map +1 -0
- package/dist/utils/file_mime_types.js +15 -0
- package/dist/utils/file_mime_types.js.map +1 -0
- package/dist/utils/misc.cjs +30 -1
- package/dist/utils/misc.cjs.map +1 -1
- package/dist/utils/misc.d.cts +1 -0
- package/dist/utils/misc.d.cts.map +1 -1
- package/dist/utils/misc.d.ts +1 -0
- package/dist/utils/misc.d.ts.map +1 -1
- package/dist/utils/misc.js +27 -2
- package/dist/utils/misc.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,132 @@
|
|
|
1
1
|
//#region src/chat_models/profiles.ts
|
|
2
|
+
const FILE_MIME_TYPES = [
|
|
3
|
+
"application/msword",
|
|
4
|
+
"application/vnd.apple.iwork",
|
|
5
|
+
"application/vnd.apple.keynote",
|
|
6
|
+
"application/vnd.apple.pages",
|
|
7
|
+
"application/vnd.google-apps.document",
|
|
8
|
+
"application/vnd.google-apps.presentation",
|
|
9
|
+
"application/vnd.google-apps.spreadsheet",
|
|
10
|
+
"application/vnd.ms-excel",
|
|
11
|
+
"application/vnd.ms-powerpoint",
|
|
12
|
+
"application/vnd.oasis.opendocument.text",
|
|
13
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
14
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
15
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
16
|
+
"application/csv",
|
|
17
|
+
"application/graphql",
|
|
18
|
+
"application/javascript",
|
|
19
|
+
"application/json",
|
|
20
|
+
"application/json5",
|
|
21
|
+
"application/rtf",
|
|
22
|
+
"application/toml",
|
|
23
|
+
"application/typescript",
|
|
24
|
+
"application/x-awk",
|
|
25
|
+
"application/x-bash",
|
|
26
|
+
"application/x-graphql",
|
|
27
|
+
"application/x-httpd-php",
|
|
28
|
+
"application/x-httpd-php-source",
|
|
29
|
+
"application/x-iif",
|
|
30
|
+
"application/x-json5",
|
|
31
|
+
"application/x-ndjson",
|
|
32
|
+
"application/x-patch",
|
|
33
|
+
"application/x-php",
|
|
34
|
+
"application/x-powershell",
|
|
35
|
+
"application/x-protobuf",
|
|
36
|
+
"application/x-rust",
|
|
37
|
+
"application/x-scala",
|
|
38
|
+
"application/x-sql",
|
|
39
|
+
"application/x-subrip",
|
|
40
|
+
"application/x-terraform",
|
|
41
|
+
"application/x-toml",
|
|
42
|
+
"application/x-yaml",
|
|
43
|
+
"application/yaml",
|
|
44
|
+
"message/rfc822",
|
|
45
|
+
"text/calendar",
|
|
46
|
+
"text/css",
|
|
47
|
+
"text/csv",
|
|
48
|
+
"text/html",
|
|
49
|
+
"text/javascript",
|
|
50
|
+
"text/jsx",
|
|
51
|
+
"text/markdown",
|
|
52
|
+
"text/plain",
|
|
53
|
+
"text/rtf",
|
|
54
|
+
"text/srt",
|
|
55
|
+
"text/tsv",
|
|
56
|
+
"text/tsx",
|
|
57
|
+
"text/vbscript",
|
|
58
|
+
"text/vtt",
|
|
59
|
+
"text/x-R",
|
|
60
|
+
"text/x-asm",
|
|
61
|
+
"text/x-astro",
|
|
62
|
+
"text/x-awk",
|
|
63
|
+
"text/x-bash",
|
|
64
|
+
"text/x-c",
|
|
65
|
+
"text/x-c++",
|
|
66
|
+
"text/x-clojure",
|
|
67
|
+
"text/x-cmake",
|
|
68
|
+
"text/x-csharp",
|
|
69
|
+
"text/x-dart",
|
|
70
|
+
"text/x-diff",
|
|
71
|
+
"text/x-dockerfile",
|
|
72
|
+
"text/x-ejs",
|
|
73
|
+
"text/x-elixir",
|
|
74
|
+
"text/x-erb",
|
|
75
|
+
"text/x-erlang",
|
|
76
|
+
"text/x-go",
|
|
77
|
+
"text/x-golang",
|
|
78
|
+
"text/x-gradle",
|
|
79
|
+
"text/x-graphql",
|
|
80
|
+
"text/x-groovy",
|
|
81
|
+
"text/x-handlebars",
|
|
82
|
+
"text/x-haskell",
|
|
83
|
+
"text/x-hcl",
|
|
84
|
+
"text/x-iif",
|
|
85
|
+
"text/x-ini",
|
|
86
|
+
"text/x-jade",
|
|
87
|
+
"text/x-java",
|
|
88
|
+
"text/x-jinja2",
|
|
89
|
+
"text/x-julia",
|
|
90
|
+
"text/x-kotlin",
|
|
91
|
+
"text/x-less",
|
|
92
|
+
"text/x-liquid",
|
|
93
|
+
"text/x-lisp",
|
|
94
|
+
"text/x-lua",
|
|
95
|
+
"text/x-makefile",
|
|
96
|
+
"text/x-mustache",
|
|
97
|
+
"text/x-objectivec",
|
|
98
|
+
"text/x-objectivec++",
|
|
99
|
+
"text/x-patch",
|
|
100
|
+
"text/x-perl",
|
|
101
|
+
"text/x-php",
|
|
102
|
+
"text/x-properties",
|
|
103
|
+
"text/x-protobuf",
|
|
104
|
+
"text/x-pug",
|
|
105
|
+
"text/x-python",
|
|
106
|
+
"text/x-r",
|
|
107
|
+
"text/x-rst",
|
|
108
|
+
"text/x-ruby",
|
|
109
|
+
"text/x-rust",
|
|
110
|
+
"text/x-sass",
|
|
111
|
+
"text/x-scala",
|
|
112
|
+
"text/x-script.python",
|
|
113
|
+
"text/x-scss",
|
|
114
|
+
"text/x-sh",
|
|
115
|
+
"text/x-shellscript",
|
|
116
|
+
"text/x-sql",
|
|
117
|
+
"text/x-subrip",
|
|
118
|
+
"text/x-swift",
|
|
119
|
+
"text/x-terraform",
|
|
120
|
+
"text/x-tex",
|
|
121
|
+
"text/x-tmpl",
|
|
122
|
+
"text/x-toml",
|
|
123
|
+
"text/x-twig",
|
|
124
|
+
"text/x-typescript",
|
|
125
|
+
"text/x-vcard",
|
|
126
|
+
"text/x-yaml",
|
|
127
|
+
"text/x-zsh",
|
|
128
|
+
"text/xml"
|
|
129
|
+
];
|
|
2
130
|
const PROFILES = {
|
|
3
131
|
"gpt-5-nano": {
|
|
4
132
|
maxInputTokens: 4e5,
|
|
@@ -16,7 +144,8 @@ const PROFILES = {
|
|
|
16
144
|
imageUrlInputs: true,
|
|
17
145
|
pdfToolMessage: true,
|
|
18
146
|
imageToolMessage: true,
|
|
19
|
-
toolChoice: true
|
|
147
|
+
toolChoice: true,
|
|
148
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
20
149
|
},
|
|
21
150
|
"gpt-4.1-nano": {
|
|
22
151
|
maxInputTokens: 1047576,
|
|
@@ -34,7 +163,8 @@ const PROFILES = {
|
|
|
34
163
|
imageUrlInputs: true,
|
|
35
164
|
pdfToolMessage: true,
|
|
36
165
|
imageToolMessage: true,
|
|
37
|
-
toolChoice: true
|
|
166
|
+
toolChoice: true,
|
|
167
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
38
168
|
},
|
|
39
169
|
"gpt-4o-2024-05-13": {
|
|
40
170
|
maxInputTokens: 128e3,
|
|
@@ -52,7 +182,8 @@ const PROFILES = {
|
|
|
52
182
|
imageUrlInputs: true,
|
|
53
183
|
pdfToolMessage: true,
|
|
54
184
|
imageToolMessage: true,
|
|
55
|
-
toolChoice: true
|
|
185
|
+
toolChoice: true,
|
|
186
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
56
187
|
},
|
|
57
188
|
"gpt-5-pro": {
|
|
58
189
|
maxInputTokens: 4e5,
|
|
@@ -70,7 +201,8 @@ const PROFILES = {
|
|
|
70
201
|
imageUrlInputs: true,
|
|
71
202
|
pdfToolMessage: true,
|
|
72
203
|
imageToolMessage: true,
|
|
73
|
-
toolChoice: true
|
|
204
|
+
toolChoice: true,
|
|
205
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
74
206
|
},
|
|
75
207
|
"chatgpt-image-latest": {
|
|
76
208
|
maxInputTokens: 0,
|
|
@@ -88,7 +220,8 @@ const PROFILES = {
|
|
|
88
220
|
imageUrlInputs: true,
|
|
89
221
|
pdfToolMessage: true,
|
|
90
222
|
imageToolMessage: true,
|
|
91
|
-
toolChoice: true
|
|
223
|
+
toolChoice: true,
|
|
224
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
92
225
|
},
|
|
93
226
|
"gpt-5.6-sol": {
|
|
94
227
|
maxInputTokens: 105e4,
|
|
@@ -106,7 +239,8 @@ const PROFILES = {
|
|
|
106
239
|
imageUrlInputs: true,
|
|
107
240
|
pdfToolMessage: true,
|
|
108
241
|
imageToolMessage: true,
|
|
109
|
-
toolChoice: true
|
|
242
|
+
toolChoice: true,
|
|
243
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
110
244
|
},
|
|
111
245
|
"gpt-4o-2024-08-06": {
|
|
112
246
|
maxInputTokens: 128e3,
|
|
@@ -124,7 +258,8 @@ const PROFILES = {
|
|
|
124
258
|
imageUrlInputs: true,
|
|
125
259
|
pdfToolMessage: true,
|
|
126
260
|
imageToolMessage: true,
|
|
127
|
-
toolChoice: true
|
|
261
|
+
toolChoice: true,
|
|
262
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
128
263
|
},
|
|
129
264
|
"gpt-6-astra": {
|
|
130
265
|
maxInputTokens: 105e4,
|
|
@@ -142,7 +277,8 @@ const PROFILES = {
|
|
|
142
277
|
imageUrlInputs: true,
|
|
143
278
|
pdfToolMessage: true,
|
|
144
279
|
imageToolMessage: true,
|
|
145
|
-
toolChoice: true
|
|
280
|
+
toolChoice: true,
|
|
281
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
146
282
|
},
|
|
147
283
|
"gpt-5.2-pro": {
|
|
148
284
|
maxInputTokens: 4e5,
|
|
@@ -160,7 +296,8 @@ const PROFILES = {
|
|
|
160
296
|
imageUrlInputs: true,
|
|
161
297
|
pdfToolMessage: true,
|
|
162
298
|
imageToolMessage: true,
|
|
163
|
-
toolChoice: true
|
|
299
|
+
toolChoice: true,
|
|
300
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
164
301
|
},
|
|
165
302
|
"gpt-5.3-codex-spark": {
|
|
166
303
|
maxInputTokens: 128e3,
|
|
@@ -178,7 +315,8 @@ const PROFILES = {
|
|
|
178
315
|
imageUrlInputs: true,
|
|
179
316
|
pdfToolMessage: true,
|
|
180
317
|
imageToolMessage: true,
|
|
181
|
-
toolChoice: true
|
|
318
|
+
toolChoice: true,
|
|
319
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
182
320
|
},
|
|
183
321
|
"gpt-4.1-mini": {
|
|
184
322
|
maxInputTokens: 1047576,
|
|
@@ -196,7 +334,8 @@ const PROFILES = {
|
|
|
196
334
|
imageUrlInputs: true,
|
|
197
335
|
pdfToolMessage: true,
|
|
198
336
|
imageToolMessage: true,
|
|
199
|
-
toolChoice: true
|
|
337
|
+
toolChoice: true,
|
|
338
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
200
339
|
},
|
|
201
340
|
"gpt-5.4": {
|
|
202
341
|
maxInputTokens: 105e4,
|
|
@@ -214,7 +353,8 @@ const PROFILES = {
|
|
|
214
353
|
imageUrlInputs: true,
|
|
215
354
|
pdfToolMessage: true,
|
|
216
355
|
imageToolMessage: true,
|
|
217
|
-
toolChoice: true
|
|
356
|
+
toolChoice: true,
|
|
357
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
218
358
|
},
|
|
219
359
|
"gpt-4-turbo": {
|
|
220
360
|
maxInputTokens: 128e3,
|
|
@@ -232,7 +372,8 @@ const PROFILES = {
|
|
|
232
372
|
imageUrlInputs: true,
|
|
233
373
|
pdfToolMessage: true,
|
|
234
374
|
imageToolMessage: true,
|
|
235
|
-
toolChoice: true
|
|
375
|
+
toolChoice: true,
|
|
376
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
236
377
|
},
|
|
237
378
|
"gpt-5.1": {
|
|
238
379
|
maxInputTokens: 4e5,
|
|
@@ -250,7 +391,8 @@ const PROFILES = {
|
|
|
250
391
|
imageUrlInputs: true,
|
|
251
392
|
pdfToolMessage: true,
|
|
252
393
|
imageToolMessage: true,
|
|
253
|
-
toolChoice: true
|
|
394
|
+
toolChoice: true,
|
|
395
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
254
396
|
},
|
|
255
397
|
o1: {
|
|
256
398
|
maxInputTokens: 2e5,
|
|
@@ -268,7 +410,8 @@ const PROFILES = {
|
|
|
268
410
|
imageUrlInputs: true,
|
|
269
411
|
pdfToolMessage: true,
|
|
270
412
|
imageToolMessage: true,
|
|
271
|
-
toolChoice: true
|
|
413
|
+
toolChoice: true,
|
|
414
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
272
415
|
},
|
|
273
416
|
"gpt-4o": {
|
|
274
417
|
maxInputTokens: 128e3,
|
|
@@ -286,7 +429,8 @@ const PROFILES = {
|
|
|
286
429
|
imageUrlInputs: true,
|
|
287
430
|
pdfToolMessage: true,
|
|
288
431
|
imageToolMessage: true,
|
|
289
|
-
toolChoice: true
|
|
432
|
+
toolChoice: true,
|
|
433
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
290
434
|
},
|
|
291
435
|
"gpt-5.6-luna": {
|
|
292
436
|
maxInputTokens: 105e4,
|
|
@@ -304,7 +448,8 @@ const PROFILES = {
|
|
|
304
448
|
imageUrlInputs: true,
|
|
305
449
|
pdfToolMessage: true,
|
|
306
450
|
imageToolMessage: true,
|
|
307
|
-
toolChoice: true
|
|
451
|
+
toolChoice: true,
|
|
452
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
308
453
|
},
|
|
309
454
|
"gpt-5.3-codex": {
|
|
310
455
|
maxInputTokens: 4e5,
|
|
@@ -322,7 +467,8 @@ const PROFILES = {
|
|
|
322
467
|
imageUrlInputs: true,
|
|
323
468
|
pdfToolMessage: true,
|
|
324
469
|
imageToolMessage: true,
|
|
325
|
-
toolChoice: true
|
|
470
|
+
toolChoice: true,
|
|
471
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
326
472
|
},
|
|
327
473
|
"gpt-4o-mini": {
|
|
328
474
|
maxInputTokens: 128e3,
|
|
@@ -340,7 +486,8 @@ const PROFILES = {
|
|
|
340
486
|
imageUrlInputs: true,
|
|
341
487
|
pdfToolMessage: true,
|
|
342
488
|
imageToolMessage: true,
|
|
343
|
-
toolChoice: true
|
|
489
|
+
toolChoice: true,
|
|
490
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
344
491
|
},
|
|
345
492
|
"gpt-image-1.5": {
|
|
346
493
|
maxInputTokens: 0,
|
|
@@ -358,7 +505,8 @@ const PROFILES = {
|
|
|
358
505
|
imageUrlInputs: true,
|
|
359
506
|
pdfToolMessage: true,
|
|
360
507
|
imageToolMessage: true,
|
|
361
|
-
toolChoice: true
|
|
508
|
+
toolChoice: true,
|
|
509
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
362
510
|
},
|
|
363
511
|
"o1-pro": {
|
|
364
512
|
maxInputTokens: 2e5,
|
|
@@ -376,7 +524,8 @@ const PROFILES = {
|
|
|
376
524
|
imageUrlInputs: true,
|
|
377
525
|
pdfToolMessage: true,
|
|
378
526
|
imageToolMessage: true,
|
|
379
|
-
toolChoice: true
|
|
527
|
+
toolChoice: true,
|
|
528
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
380
529
|
},
|
|
381
530
|
"gpt-4.1": {
|
|
382
531
|
maxInputTokens: 1047576,
|
|
@@ -394,7 +543,8 @@ const PROFILES = {
|
|
|
394
543
|
imageUrlInputs: true,
|
|
395
544
|
pdfToolMessage: true,
|
|
396
545
|
imageToolMessage: true,
|
|
397
|
-
toolChoice: true
|
|
546
|
+
toolChoice: true,
|
|
547
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
398
548
|
},
|
|
399
549
|
"text-embedding-ada-002": {
|
|
400
550
|
maxInputTokens: 8192,
|
|
@@ -412,7 +562,8 @@ const PROFILES = {
|
|
|
412
562
|
imageUrlInputs: true,
|
|
413
563
|
pdfToolMessage: true,
|
|
414
564
|
imageToolMessage: true,
|
|
415
|
-
toolChoice: true
|
|
565
|
+
toolChoice: true,
|
|
566
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
416
567
|
},
|
|
417
568
|
"gpt-image-1": {
|
|
418
569
|
maxInputTokens: 0,
|
|
@@ -430,7 +581,8 @@ const PROFILES = {
|
|
|
430
581
|
imageUrlInputs: true,
|
|
431
582
|
pdfToolMessage: true,
|
|
432
583
|
imageToolMessage: true,
|
|
433
|
-
toolChoice: true
|
|
584
|
+
toolChoice: true,
|
|
585
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
434
586
|
},
|
|
435
587
|
"gpt-5.4-nano": {
|
|
436
588
|
maxInputTokens: 4e5,
|
|
@@ -448,7 +600,8 @@ const PROFILES = {
|
|
|
448
600
|
imageUrlInputs: true,
|
|
449
601
|
pdfToolMessage: true,
|
|
450
602
|
imageToolMessage: true,
|
|
451
|
-
toolChoice: true
|
|
603
|
+
toolChoice: true,
|
|
604
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
452
605
|
},
|
|
453
606
|
"gpt-5.5-pro": {
|
|
454
607
|
maxInputTokens: 105e4,
|
|
@@ -466,7 +619,8 @@ const PROFILES = {
|
|
|
466
619
|
imageUrlInputs: true,
|
|
467
620
|
pdfToolMessage: true,
|
|
468
621
|
imageToolMessage: true,
|
|
469
|
-
toolChoice: true
|
|
622
|
+
toolChoice: true,
|
|
623
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
470
624
|
},
|
|
471
625
|
"gpt-image-1-mini": {
|
|
472
626
|
maxInputTokens: 0,
|
|
@@ -484,7 +638,8 @@ const PROFILES = {
|
|
|
484
638
|
imageUrlInputs: true,
|
|
485
639
|
pdfToolMessage: true,
|
|
486
640
|
imageToolMessage: true,
|
|
487
|
-
toolChoice: true
|
|
641
|
+
toolChoice: true,
|
|
642
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
488
643
|
},
|
|
489
644
|
"gpt-5.4-mini": {
|
|
490
645
|
maxInputTokens: 4e5,
|
|
@@ -502,7 +657,8 @@ const PROFILES = {
|
|
|
502
657
|
imageUrlInputs: true,
|
|
503
658
|
pdfToolMessage: true,
|
|
504
659
|
imageToolMessage: true,
|
|
505
|
-
toolChoice: true
|
|
660
|
+
toolChoice: true,
|
|
661
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
506
662
|
},
|
|
507
663
|
"gpt-image-2": {
|
|
508
664
|
maxInputTokens: 0,
|
|
@@ -520,7 +676,8 @@ const PROFILES = {
|
|
|
520
676
|
imageUrlInputs: true,
|
|
521
677
|
pdfToolMessage: true,
|
|
522
678
|
imageToolMessage: true,
|
|
523
|
-
toolChoice: true
|
|
679
|
+
toolChoice: true,
|
|
680
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
524
681
|
},
|
|
525
682
|
"gpt-3.5-turbo": {
|
|
526
683
|
maxInputTokens: 16385,
|
|
@@ -538,7 +695,8 @@ const PROFILES = {
|
|
|
538
695
|
imageUrlInputs: false,
|
|
539
696
|
pdfToolMessage: false,
|
|
540
697
|
imageToolMessage: false,
|
|
541
|
-
toolChoice: true
|
|
698
|
+
toolChoice: true,
|
|
699
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
542
700
|
},
|
|
543
701
|
"gpt-5.6": {
|
|
544
702
|
maxInputTokens: 105e4,
|
|
@@ -556,7 +714,8 @@ const PROFILES = {
|
|
|
556
714
|
imageUrlInputs: true,
|
|
557
715
|
pdfToolMessage: true,
|
|
558
716
|
imageToolMessage: true,
|
|
559
|
-
toolChoice: true
|
|
717
|
+
toolChoice: true,
|
|
718
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
560
719
|
},
|
|
561
720
|
"text-embedding-3-small": {
|
|
562
721
|
maxInputTokens: 8191,
|
|
@@ -574,7 +733,8 @@ const PROFILES = {
|
|
|
574
733
|
imageUrlInputs: true,
|
|
575
734
|
pdfToolMessage: true,
|
|
576
735
|
imageToolMessage: true,
|
|
577
|
-
toolChoice: true
|
|
736
|
+
toolChoice: true,
|
|
737
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
578
738
|
},
|
|
579
739
|
"gpt-5-mini": {
|
|
580
740
|
maxInputTokens: 4e5,
|
|
@@ -592,7 +752,8 @@ const PROFILES = {
|
|
|
592
752
|
imageUrlInputs: true,
|
|
593
753
|
pdfToolMessage: true,
|
|
594
754
|
imageToolMessage: true,
|
|
595
|
-
toolChoice: true
|
|
755
|
+
toolChoice: true,
|
|
756
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
596
757
|
},
|
|
597
758
|
"gpt-5.4-pro": {
|
|
598
759
|
maxInputTokens: 105e4,
|
|
@@ -610,7 +771,8 @@ const PROFILES = {
|
|
|
610
771
|
imageUrlInputs: true,
|
|
611
772
|
pdfToolMessage: true,
|
|
612
773
|
imageToolMessage: true,
|
|
613
|
-
toolChoice: true
|
|
774
|
+
toolChoice: true,
|
|
775
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
614
776
|
},
|
|
615
777
|
"text-embedding-3-large": {
|
|
616
778
|
maxInputTokens: 8191,
|
|
@@ -628,7 +790,8 @@ const PROFILES = {
|
|
|
628
790
|
imageUrlInputs: true,
|
|
629
791
|
pdfToolMessage: true,
|
|
630
792
|
imageToolMessage: true,
|
|
631
|
-
toolChoice: true
|
|
793
|
+
toolChoice: true,
|
|
794
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
632
795
|
},
|
|
633
796
|
"gpt-5.6-terra": {
|
|
634
797
|
maxInputTokens: 105e4,
|
|
@@ -646,7 +809,8 @@ const PROFILES = {
|
|
|
646
809
|
imageUrlInputs: true,
|
|
647
810
|
pdfToolMessage: true,
|
|
648
811
|
imageToolMessage: true,
|
|
649
|
-
toolChoice: true
|
|
812
|
+
toolChoice: true,
|
|
813
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
650
814
|
},
|
|
651
815
|
"gpt-4": {
|
|
652
816
|
maxInputTokens: 8192,
|
|
@@ -664,7 +828,8 @@ const PROFILES = {
|
|
|
664
828
|
imageUrlInputs: true,
|
|
665
829
|
pdfToolMessage: true,
|
|
666
830
|
imageToolMessage: true,
|
|
667
|
-
toolChoice: true
|
|
831
|
+
toolChoice: true,
|
|
832
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
668
833
|
},
|
|
669
834
|
"gpt-5.2": {
|
|
670
835
|
maxInputTokens: 4e5,
|
|
@@ -682,7 +847,8 @@ const PROFILES = {
|
|
|
682
847
|
imageUrlInputs: true,
|
|
683
848
|
pdfToolMessage: true,
|
|
684
849
|
imageToolMessage: true,
|
|
685
|
-
toolChoice: true
|
|
850
|
+
toolChoice: true,
|
|
851
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
686
852
|
},
|
|
687
853
|
"gpt-5": {
|
|
688
854
|
maxInputTokens: 4e5,
|
|
@@ -700,7 +866,8 @@ const PROFILES = {
|
|
|
700
866
|
imageUrlInputs: true,
|
|
701
867
|
pdfToolMessage: true,
|
|
702
868
|
imageToolMessage: true,
|
|
703
|
-
toolChoice: true
|
|
869
|
+
toolChoice: true,
|
|
870
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
704
871
|
},
|
|
705
872
|
"gpt-5.2-chat-latest": {
|
|
706
873
|
maxInputTokens: 128e3,
|
|
@@ -718,7 +885,8 @@ const PROFILES = {
|
|
|
718
885
|
imageUrlInputs: true,
|
|
719
886
|
pdfToolMessage: true,
|
|
720
887
|
imageToolMessage: true,
|
|
721
|
-
toolChoice: true
|
|
888
|
+
toolChoice: true,
|
|
889
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
722
890
|
},
|
|
723
891
|
"o4-mini": {
|
|
724
892
|
maxInputTokens: 2e5,
|
|
@@ -736,7 +904,8 @@ const PROFILES = {
|
|
|
736
904
|
imageUrlInputs: true,
|
|
737
905
|
pdfToolMessage: true,
|
|
738
906
|
imageToolMessage: true,
|
|
739
|
-
toolChoice: true
|
|
907
|
+
toolChoice: true,
|
|
908
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
740
909
|
},
|
|
741
910
|
"gpt-realtime-2.1": {
|
|
742
911
|
maxInputTokens: 128e3,
|
|
@@ -754,7 +923,8 @@ const PROFILES = {
|
|
|
754
923
|
imageUrlInputs: true,
|
|
755
924
|
pdfToolMessage: true,
|
|
756
925
|
imageToolMessage: true,
|
|
757
|
-
toolChoice: true
|
|
926
|
+
toolChoice: true,
|
|
927
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
758
928
|
},
|
|
759
929
|
"o3-mini": {
|
|
760
930
|
maxInputTokens: 2e5,
|
|
@@ -772,7 +942,8 @@ const PROFILES = {
|
|
|
772
942
|
imageUrlInputs: true,
|
|
773
943
|
pdfToolMessage: true,
|
|
774
944
|
imageToolMessage: true,
|
|
775
|
-
toolChoice: true
|
|
945
|
+
toolChoice: true,
|
|
946
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
776
947
|
},
|
|
777
948
|
o3: {
|
|
778
949
|
maxInputTokens: 2e5,
|
|
@@ -790,7 +961,8 @@ const PROFILES = {
|
|
|
790
961
|
imageUrlInputs: true,
|
|
791
962
|
pdfToolMessage: true,
|
|
792
963
|
imageToolMessage: true,
|
|
793
|
-
toolChoice: true
|
|
964
|
+
toolChoice: true,
|
|
965
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
794
966
|
},
|
|
795
967
|
"o3-pro": {
|
|
796
968
|
maxInputTokens: 2e5,
|
|
@@ -808,7 +980,8 @@ const PROFILES = {
|
|
|
808
980
|
imageUrlInputs: true,
|
|
809
981
|
pdfToolMessage: true,
|
|
810
982
|
imageToolMessage: true,
|
|
811
|
-
toolChoice: true
|
|
983
|
+
toolChoice: true,
|
|
984
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
812
985
|
},
|
|
813
986
|
"gpt-5.3-chat-latest": {
|
|
814
987
|
maxInputTokens: 128e3,
|
|
@@ -826,7 +999,8 @@ const PROFILES = {
|
|
|
826
999
|
imageUrlInputs: true,
|
|
827
1000
|
pdfToolMessage: true,
|
|
828
1001
|
imageToolMessage: true,
|
|
829
|
-
toolChoice: true
|
|
1002
|
+
toolChoice: true,
|
|
1003
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
830
1004
|
},
|
|
831
1005
|
"gpt-5.5": {
|
|
832
1006
|
maxInputTokens: 105e4,
|
|
@@ -844,7 +1018,8 @@ const PROFILES = {
|
|
|
844
1018
|
imageUrlInputs: true,
|
|
845
1019
|
pdfToolMessage: true,
|
|
846
1020
|
imageToolMessage: true,
|
|
847
|
-
toolChoice: true
|
|
1021
|
+
toolChoice: true,
|
|
1022
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
848
1023
|
},
|
|
849
1024
|
"gpt-4o-2024-11-20": {
|
|
850
1025
|
maxInputTokens: 128e3,
|
|
@@ -862,7 +1037,8 @@ const PROFILES = {
|
|
|
862
1037
|
imageUrlInputs: true,
|
|
863
1038
|
pdfToolMessage: true,
|
|
864
1039
|
imageToolMessage: true,
|
|
865
|
-
toolChoice: true
|
|
1040
|
+
toolChoice: true,
|
|
1041
|
+
fileMimeTypes: FILE_MIME_TYPES
|
|
866
1042
|
}
|
|
867
1043
|
};
|
|
868
1044
|
//#endregion
|