@mate-academy/llm-gateway 6.0.0 → 6.2.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.
- package/dist/LLMError.d.ts +12 -0
- package/dist/LLMError.js +36 -0
- package/dist/LLMError.js.map +1 -0
- package/dist/LLMService.constants.d.ts +792 -2
- package/dist/LLMService.constants.js +5 -1
- package/dist/LLMService.constants.js.map +1 -1
- package/dist/LLMService.typedefs.d.ts +24 -2
- package/dist/LLMService.typedefs.js +1 -0
- package/dist/LLMService.typedefs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.d.ts +72 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.js +6 -0
- package/dist/providers/GoogleGenerativeAI/GoogleGenerativeAI.constants.js.map +1 -1
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.d.ts +8 -7
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.js +217 -31
- package/dist/providers/GoogleGenerativeAI/services/GoogleGenerativeAIAssistance.service.js.map +1 -1
- package/dist/providers/LLMAPI/LLMAPI.constants.d.ts +884 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.js +282 -0
- package/dist/providers/LLMAPI/LLMAPI.constants.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.d.ts +6 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.js +49 -0
- package/dist/providers/LLMAPI/LLMAPI.entity.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.d.ts +48 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.js +46 -0
- package/dist/providers/LLMAPI/LLMAPI.typedefs.js.map +1 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.d.ts +6 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.js +19 -0
- package/dist/providers/LLMAPI/LLMAPIService.factory.js.map +1 -0
- package/dist/providers/LLMAPI/index.d.ts +6 -0
- package/dist/providers/LLMAPI/index.js +23 -0
- package/dist/providers/LLMAPI/index.js.map +1 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.d.ts +3 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.js +8 -0
- package/dist/providers/LLMAPI/schemas/LLMAPISchemaAdapter.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.d.ts +34 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.js +497 -0
- package/dist/providers/LLMAPI/services/LLMAPIAssistance.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.d.ts +18 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.js +138 -0
- package/dist/providers/LLMAPI/services/LLMAPICompletion.service.js.map +1 -0
- package/dist/providers/LLMAPI/services/index.d.ts +2 -0
- package/dist/providers/LLMAPI/services/index.js +19 -0
- package/dist/providers/LLMAPI/services/index.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/LLMAPIJsonFixer.d.ts +22 -0
- package/dist/providers/LLMAPI/utilities/LLMAPIJsonFixer.js +228 -0
- package/dist/providers/LLMAPI/utilities/LLMAPIJsonFixer.js.map +1 -0
- package/dist/providers/LLMAPI/utilities/index.d.ts +1 -0
- package/dist/providers/LLMAPI/utilities/index.js +7 -0
- package/dist/providers/LLMAPI/utilities/index.js.map +1 -0
- package/dist/providers/OpenAI/OpenAI.constants.d.ts +165 -0
- package/dist/providers/OpenAI/OpenAI.constants.js +11 -0
- package/dist/providers/OpenAI/OpenAI.constants.js.map +1 -1
- package/dist/providers/OpenAI/OpenAI.typedefs.d.ts +6 -0
- package/dist/providers/OpenAI/OpenAI.typedefs.js +9 -1
- package/dist/providers/OpenAI/OpenAI.typedefs.js.map +1 -1
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.d.ts +9 -7
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.js +209 -40
- package/dist/providers/OpenAI/services/OpenAIAssistance.service.js.map +1 -1
- package/dist/providers/OpenAI/services/OpenAICompletion.service.d.ts +3 -13
- package/dist/providers/OpenAI/services/OpenAICompletion.service.js +2 -181
- package/dist/providers/OpenAI/services/OpenAICompletion.service.js.map +1 -1
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.d.ts +21 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.js +204 -0
- package/dist/providers/OpenAICompatible/OpenAICompatibleCompletion.service.js.map +1 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers/index.js.map +1 -1
- package/dist/services/LLMAssistanceService.abstract.d.ts +8 -6
- package/dist/services/LLMAssistanceService.abstract.js +20 -0
- package/dist/services/LLMAssistanceService.abstract.js.map +1 -1
- package/dist/services/chatState/CompletionsChatState.d.ts +19 -0
- package/dist/services/chatState/CompletionsChatState.js +80 -0
- package/dist/services/chatState/CompletionsChatState.js.map +1 -0
- package/dist/services/chatState/index.d.ts +1 -0
- package/dist/services/chatState/index.js +6 -0
- package/dist/services/chatState/index.js.map +1 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.d.ts +15 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.js +172 -0
- package/dist/services/fileStorage/FileStorageToolExecutor.js.map +1 -0
- package/dist/services/fileStorage/InMemoryFileStorage.d.ts +20 -0
- package/dist/services/fileStorage/InMemoryFileStorage.js +67 -0
- package/dist/services/fileStorage/InMemoryFileStorage.js.map +1 -0
- package/dist/services/fileStorage/fileStorageTools.d.ts +26 -0
- package/dist/services/fileStorage/fileStorageTools.js +67 -0
- package/dist/services/fileStorage/fileStorageTools.js.map +1 -0
- package/dist/services/fileStorage/index.d.ts +4 -0
- package/dist/services/fileStorage/index.js +11 -0
- package/dist/services/fileStorage/index.js.map +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/index.js +1 -0
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/schema/SchemaAdapterRegistry.d.ts +2 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.js +2 -0
- package/dist/utilities/schema/SchemaAdapterRegistry.js.map +1 -1
- package/dist/utilities/tools/LLMTool.d.ts +10 -0
- package/dist/utilities/tools/LLMTool.js +10 -0
- package/dist/utilities/tools/LLMTool.js.map +1 -0
- package/dist/utilities/tools/index.d.ts +1 -0
- package/dist/utilities/tools/index.js +6 -0
- package/dist/utilities/tools/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -22,6 +22,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
22
22
|
readonly getPriceForAudioOutput: () => number;
|
|
23
23
|
readonly currency: "USD";
|
|
24
24
|
};
|
|
25
|
+
readonly capabilities: {
|
|
26
|
+
readonly vision: true;
|
|
27
|
+
};
|
|
25
28
|
};
|
|
26
29
|
readonly "gpt-4.1-mini": {
|
|
27
30
|
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
@@ -40,6 +43,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
40
43
|
readonly getPriceForAudioOutput: () => number;
|
|
41
44
|
readonly currency: "USD";
|
|
42
45
|
};
|
|
46
|
+
readonly capabilities: {
|
|
47
|
+
readonly vision: true;
|
|
48
|
+
};
|
|
43
49
|
};
|
|
44
50
|
readonly "gpt-5": {
|
|
45
51
|
readonly name: OpenAIModelNames.GPT_5;
|
|
@@ -60,6 +66,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
60
66
|
readonly getPriceForAudioOutput: () => number;
|
|
61
67
|
readonly currency: "USD";
|
|
62
68
|
};
|
|
69
|
+
readonly capabilities: {
|
|
70
|
+
readonly vision: true;
|
|
71
|
+
};
|
|
63
72
|
};
|
|
64
73
|
readonly "gpt-5.1": {
|
|
65
74
|
readonly name: OpenAIModelNames.GPT_5_1;
|
|
@@ -80,6 +89,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
80
89
|
readonly getPriceForAudioOutput: () => number;
|
|
81
90
|
readonly currency: "USD";
|
|
82
91
|
};
|
|
92
|
+
readonly capabilities: {
|
|
93
|
+
readonly vision: true;
|
|
94
|
+
};
|
|
83
95
|
};
|
|
84
96
|
readonly "gpt-5.2": {
|
|
85
97
|
readonly name: OpenAIModelNames.GPT_5_2;
|
|
@@ -100,6 +112,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
100
112
|
readonly getPriceForAudioOutput: () => number;
|
|
101
113
|
readonly currency: "USD";
|
|
102
114
|
};
|
|
115
|
+
readonly capabilities: {
|
|
116
|
+
readonly vision: true;
|
|
117
|
+
};
|
|
103
118
|
};
|
|
104
119
|
readonly "gpt-5-mini": {
|
|
105
120
|
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
@@ -120,6 +135,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
120
135
|
readonly getPriceForAudioOutput: () => number;
|
|
121
136
|
readonly currency: "USD";
|
|
122
137
|
};
|
|
138
|
+
readonly capabilities: {
|
|
139
|
+
readonly vision: true;
|
|
140
|
+
};
|
|
123
141
|
};
|
|
124
142
|
readonly "gpt-5-nano": {
|
|
125
143
|
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
@@ -140,6 +158,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
140
158
|
readonly getPriceForAudioOutput: () => number;
|
|
141
159
|
readonly currency: "USD";
|
|
142
160
|
};
|
|
161
|
+
readonly capabilities: {
|
|
162
|
+
readonly vision: true;
|
|
163
|
+
};
|
|
143
164
|
};
|
|
144
165
|
readonly "gpt-4o-transcribe": {
|
|
145
166
|
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
@@ -159,6 +180,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
159
180
|
readonly getPriceForAudioOutput: () => number;
|
|
160
181
|
readonly currency: "USD";
|
|
161
182
|
};
|
|
183
|
+
readonly capabilities: {
|
|
184
|
+
readonly vision: false;
|
|
185
|
+
};
|
|
162
186
|
};
|
|
163
187
|
readonly "gpt-4o-mini-transcribe": {
|
|
164
188
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
@@ -178,6 +202,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
178
202
|
readonly getPriceForAudioOutput: () => number;
|
|
179
203
|
readonly currency: "USD";
|
|
180
204
|
};
|
|
205
|
+
readonly capabilities: {
|
|
206
|
+
readonly vision: false;
|
|
207
|
+
};
|
|
181
208
|
};
|
|
182
209
|
readonly "gpt-4o-mini-tts": {
|
|
183
210
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
@@ -198,6 +225,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
198
225
|
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
199
226
|
readonly currency: "USD";
|
|
200
227
|
};
|
|
228
|
+
readonly capabilities: {
|
|
229
|
+
readonly vision: false;
|
|
230
|
+
};
|
|
201
231
|
};
|
|
202
232
|
readonly "tts-1": {
|
|
203
233
|
readonly name: OpenAIModelNames.TTS_1;
|
|
@@ -218,6 +248,9 @@ export declare const OPEN_AI_AVAILABLE_MODELS: {
|
|
|
218
248
|
readonly getPriceForAudioOutput: () => number;
|
|
219
249
|
readonly currency: "USD";
|
|
220
250
|
};
|
|
251
|
+
readonly capabilities: {
|
|
252
|
+
readonly vision: false;
|
|
253
|
+
};
|
|
221
254
|
};
|
|
222
255
|
};
|
|
223
256
|
export declare const OPEN_AI_MODELS: {
|
|
@@ -239,6 +272,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
239
272
|
readonly getPriceForAudioOutput: () => number;
|
|
240
273
|
readonly currency: "USD";
|
|
241
274
|
};
|
|
275
|
+
readonly capabilities: {
|
|
276
|
+
readonly vision: true;
|
|
277
|
+
};
|
|
242
278
|
};
|
|
243
279
|
readonly "gpt-4.1-mini": {
|
|
244
280
|
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
@@ -257,6 +293,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
257
293
|
readonly getPriceForAudioOutput: () => number;
|
|
258
294
|
readonly currency: "USD";
|
|
259
295
|
};
|
|
296
|
+
readonly capabilities: {
|
|
297
|
+
readonly vision: true;
|
|
298
|
+
};
|
|
260
299
|
};
|
|
261
300
|
readonly "gpt-5": {
|
|
262
301
|
readonly name: OpenAIModelNames.GPT_5;
|
|
@@ -277,6 +316,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
277
316
|
readonly getPriceForAudioOutput: () => number;
|
|
278
317
|
readonly currency: "USD";
|
|
279
318
|
};
|
|
319
|
+
readonly capabilities: {
|
|
320
|
+
readonly vision: true;
|
|
321
|
+
};
|
|
280
322
|
};
|
|
281
323
|
readonly "gpt-5.1": {
|
|
282
324
|
readonly name: OpenAIModelNames.GPT_5_1;
|
|
@@ -297,6 +339,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
297
339
|
readonly getPriceForAudioOutput: () => number;
|
|
298
340
|
readonly currency: "USD";
|
|
299
341
|
};
|
|
342
|
+
readonly capabilities: {
|
|
343
|
+
readonly vision: true;
|
|
344
|
+
};
|
|
300
345
|
};
|
|
301
346
|
readonly "gpt-5.2": {
|
|
302
347
|
readonly name: OpenAIModelNames.GPT_5_2;
|
|
@@ -317,6 +362,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
317
362
|
readonly getPriceForAudioOutput: () => number;
|
|
318
363
|
readonly currency: "USD";
|
|
319
364
|
};
|
|
365
|
+
readonly capabilities: {
|
|
366
|
+
readonly vision: true;
|
|
367
|
+
};
|
|
320
368
|
};
|
|
321
369
|
readonly "gpt-5-mini": {
|
|
322
370
|
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
@@ -337,6 +385,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
337
385
|
readonly getPriceForAudioOutput: () => number;
|
|
338
386
|
readonly currency: "USD";
|
|
339
387
|
};
|
|
388
|
+
readonly capabilities: {
|
|
389
|
+
readonly vision: true;
|
|
390
|
+
};
|
|
340
391
|
};
|
|
341
392
|
readonly "gpt-5-nano": {
|
|
342
393
|
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
@@ -357,6 +408,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
357
408
|
readonly getPriceForAudioOutput: () => number;
|
|
358
409
|
readonly currency: "USD";
|
|
359
410
|
};
|
|
411
|
+
readonly capabilities: {
|
|
412
|
+
readonly vision: true;
|
|
413
|
+
};
|
|
360
414
|
};
|
|
361
415
|
readonly "gpt-4o-transcribe": {
|
|
362
416
|
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
@@ -376,6 +430,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
376
430
|
readonly getPriceForAudioOutput: () => number;
|
|
377
431
|
readonly currency: "USD";
|
|
378
432
|
};
|
|
433
|
+
readonly capabilities: {
|
|
434
|
+
readonly vision: false;
|
|
435
|
+
};
|
|
379
436
|
};
|
|
380
437
|
readonly "gpt-4o-mini-transcribe": {
|
|
381
438
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
@@ -395,6 +452,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
395
452
|
readonly getPriceForAudioOutput: () => number;
|
|
396
453
|
readonly currency: "USD";
|
|
397
454
|
};
|
|
455
|
+
readonly capabilities: {
|
|
456
|
+
readonly vision: false;
|
|
457
|
+
};
|
|
398
458
|
};
|
|
399
459
|
readonly "gpt-4o-mini-tts": {
|
|
400
460
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
@@ -415,6 +475,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
415
475
|
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
416
476
|
readonly currency: "USD";
|
|
417
477
|
};
|
|
478
|
+
readonly capabilities: {
|
|
479
|
+
readonly vision: false;
|
|
480
|
+
};
|
|
418
481
|
};
|
|
419
482
|
readonly "tts-1": {
|
|
420
483
|
readonly name: OpenAIModelNames.TTS_1;
|
|
@@ -435,6 +498,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
435
498
|
readonly getPriceForAudioOutput: () => number;
|
|
436
499
|
readonly currency: "USD";
|
|
437
500
|
};
|
|
501
|
+
readonly capabilities: {
|
|
502
|
+
readonly vision: false;
|
|
503
|
+
};
|
|
438
504
|
};
|
|
439
505
|
}, OpenAIModelNames.GPT_4_1 | OpenAIModelNames.GPT_4_1_MINI | OpenAIModelNames.GPT_5 | OpenAIModelNames.GPT_5_1 | OpenAIModelNames.GPT_5_2 | OpenAIModelNames.GPT_5_MINI | OpenAIModelNames.GPT_5_NANO>;
|
|
440
506
|
readonly assistance: Pick<{
|
|
@@ -455,6 +521,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
455
521
|
readonly getPriceForAudioOutput: () => number;
|
|
456
522
|
readonly currency: "USD";
|
|
457
523
|
};
|
|
524
|
+
readonly capabilities: {
|
|
525
|
+
readonly vision: true;
|
|
526
|
+
};
|
|
458
527
|
};
|
|
459
528
|
readonly "gpt-4.1-mini": {
|
|
460
529
|
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
@@ -473,6 +542,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
473
542
|
readonly getPriceForAudioOutput: () => number;
|
|
474
543
|
readonly currency: "USD";
|
|
475
544
|
};
|
|
545
|
+
readonly capabilities: {
|
|
546
|
+
readonly vision: true;
|
|
547
|
+
};
|
|
476
548
|
};
|
|
477
549
|
readonly "gpt-5": {
|
|
478
550
|
readonly name: OpenAIModelNames.GPT_5;
|
|
@@ -493,6 +565,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
493
565
|
readonly getPriceForAudioOutput: () => number;
|
|
494
566
|
readonly currency: "USD";
|
|
495
567
|
};
|
|
568
|
+
readonly capabilities: {
|
|
569
|
+
readonly vision: true;
|
|
570
|
+
};
|
|
496
571
|
};
|
|
497
572
|
readonly "gpt-5.1": {
|
|
498
573
|
readonly name: OpenAIModelNames.GPT_5_1;
|
|
@@ -513,6 +588,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
513
588
|
readonly getPriceForAudioOutput: () => number;
|
|
514
589
|
readonly currency: "USD";
|
|
515
590
|
};
|
|
591
|
+
readonly capabilities: {
|
|
592
|
+
readonly vision: true;
|
|
593
|
+
};
|
|
516
594
|
};
|
|
517
595
|
readonly "gpt-5.2": {
|
|
518
596
|
readonly name: OpenAIModelNames.GPT_5_2;
|
|
@@ -533,6 +611,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
533
611
|
readonly getPriceForAudioOutput: () => number;
|
|
534
612
|
readonly currency: "USD";
|
|
535
613
|
};
|
|
614
|
+
readonly capabilities: {
|
|
615
|
+
readonly vision: true;
|
|
616
|
+
};
|
|
536
617
|
};
|
|
537
618
|
readonly "gpt-5-mini": {
|
|
538
619
|
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
@@ -553,6 +634,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
553
634
|
readonly getPriceForAudioOutput: () => number;
|
|
554
635
|
readonly currency: "USD";
|
|
555
636
|
};
|
|
637
|
+
readonly capabilities: {
|
|
638
|
+
readonly vision: true;
|
|
639
|
+
};
|
|
556
640
|
};
|
|
557
641
|
readonly "gpt-5-nano": {
|
|
558
642
|
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
@@ -573,6 +657,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
573
657
|
readonly getPriceForAudioOutput: () => number;
|
|
574
658
|
readonly currency: "USD";
|
|
575
659
|
};
|
|
660
|
+
readonly capabilities: {
|
|
661
|
+
readonly vision: true;
|
|
662
|
+
};
|
|
576
663
|
};
|
|
577
664
|
readonly "gpt-4o-transcribe": {
|
|
578
665
|
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
@@ -592,6 +679,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
592
679
|
readonly getPriceForAudioOutput: () => number;
|
|
593
680
|
readonly currency: "USD";
|
|
594
681
|
};
|
|
682
|
+
readonly capabilities: {
|
|
683
|
+
readonly vision: false;
|
|
684
|
+
};
|
|
595
685
|
};
|
|
596
686
|
readonly "gpt-4o-mini-transcribe": {
|
|
597
687
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
@@ -611,6 +701,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
611
701
|
readonly getPriceForAudioOutput: () => number;
|
|
612
702
|
readonly currency: "USD";
|
|
613
703
|
};
|
|
704
|
+
readonly capabilities: {
|
|
705
|
+
readonly vision: false;
|
|
706
|
+
};
|
|
614
707
|
};
|
|
615
708
|
readonly "gpt-4o-mini-tts": {
|
|
616
709
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
@@ -631,6 +724,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
631
724
|
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
632
725
|
readonly currency: "USD";
|
|
633
726
|
};
|
|
727
|
+
readonly capabilities: {
|
|
728
|
+
readonly vision: false;
|
|
729
|
+
};
|
|
634
730
|
};
|
|
635
731
|
readonly "tts-1": {
|
|
636
732
|
readonly name: OpenAIModelNames.TTS_1;
|
|
@@ -651,6 +747,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
651
747
|
readonly getPriceForAudioOutput: () => number;
|
|
652
748
|
readonly currency: "USD";
|
|
653
749
|
};
|
|
750
|
+
readonly capabilities: {
|
|
751
|
+
readonly vision: false;
|
|
752
|
+
};
|
|
654
753
|
};
|
|
655
754
|
}, OpenAIModelNames.GPT_4_1 | OpenAIModelNames.GPT_4_1_MINI | OpenAIModelNames.GPT_5 | OpenAIModelNames.GPT_5_1 | OpenAIModelNames.GPT_5_2 | OpenAIModelNames.GPT_5_MINI | OpenAIModelNames.GPT_5_NANO>;
|
|
656
755
|
readonly text_to_speech: Pick<{
|
|
@@ -671,6 +770,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
671
770
|
readonly getPriceForAudioOutput: () => number;
|
|
672
771
|
readonly currency: "USD";
|
|
673
772
|
};
|
|
773
|
+
readonly capabilities: {
|
|
774
|
+
readonly vision: true;
|
|
775
|
+
};
|
|
674
776
|
};
|
|
675
777
|
readonly "gpt-4.1-mini": {
|
|
676
778
|
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
@@ -689,6 +791,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
689
791
|
readonly getPriceForAudioOutput: () => number;
|
|
690
792
|
readonly currency: "USD";
|
|
691
793
|
};
|
|
794
|
+
readonly capabilities: {
|
|
795
|
+
readonly vision: true;
|
|
796
|
+
};
|
|
692
797
|
};
|
|
693
798
|
readonly "gpt-5": {
|
|
694
799
|
readonly name: OpenAIModelNames.GPT_5;
|
|
@@ -709,6 +814,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
709
814
|
readonly getPriceForAudioOutput: () => number;
|
|
710
815
|
readonly currency: "USD";
|
|
711
816
|
};
|
|
817
|
+
readonly capabilities: {
|
|
818
|
+
readonly vision: true;
|
|
819
|
+
};
|
|
712
820
|
};
|
|
713
821
|
readonly "gpt-5.1": {
|
|
714
822
|
readonly name: OpenAIModelNames.GPT_5_1;
|
|
@@ -729,6 +837,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
729
837
|
readonly getPriceForAudioOutput: () => number;
|
|
730
838
|
readonly currency: "USD";
|
|
731
839
|
};
|
|
840
|
+
readonly capabilities: {
|
|
841
|
+
readonly vision: true;
|
|
842
|
+
};
|
|
732
843
|
};
|
|
733
844
|
readonly "gpt-5.2": {
|
|
734
845
|
readonly name: OpenAIModelNames.GPT_5_2;
|
|
@@ -749,6 +860,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
749
860
|
readonly getPriceForAudioOutput: () => number;
|
|
750
861
|
readonly currency: "USD";
|
|
751
862
|
};
|
|
863
|
+
readonly capabilities: {
|
|
864
|
+
readonly vision: true;
|
|
865
|
+
};
|
|
752
866
|
};
|
|
753
867
|
readonly "gpt-5-mini": {
|
|
754
868
|
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
@@ -769,6 +883,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
769
883
|
readonly getPriceForAudioOutput: () => number;
|
|
770
884
|
readonly currency: "USD";
|
|
771
885
|
};
|
|
886
|
+
readonly capabilities: {
|
|
887
|
+
readonly vision: true;
|
|
888
|
+
};
|
|
772
889
|
};
|
|
773
890
|
readonly "gpt-5-nano": {
|
|
774
891
|
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
@@ -789,6 +906,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
789
906
|
readonly getPriceForAudioOutput: () => number;
|
|
790
907
|
readonly currency: "USD";
|
|
791
908
|
};
|
|
909
|
+
readonly capabilities: {
|
|
910
|
+
readonly vision: true;
|
|
911
|
+
};
|
|
792
912
|
};
|
|
793
913
|
readonly "gpt-4o-transcribe": {
|
|
794
914
|
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
@@ -808,6 +928,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
808
928
|
readonly getPriceForAudioOutput: () => number;
|
|
809
929
|
readonly currency: "USD";
|
|
810
930
|
};
|
|
931
|
+
readonly capabilities: {
|
|
932
|
+
readonly vision: false;
|
|
933
|
+
};
|
|
811
934
|
};
|
|
812
935
|
readonly "gpt-4o-mini-transcribe": {
|
|
813
936
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
@@ -827,6 +950,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
827
950
|
readonly getPriceForAudioOutput: () => number;
|
|
828
951
|
readonly currency: "USD";
|
|
829
952
|
};
|
|
953
|
+
readonly capabilities: {
|
|
954
|
+
readonly vision: false;
|
|
955
|
+
};
|
|
830
956
|
};
|
|
831
957
|
readonly "gpt-4o-mini-tts": {
|
|
832
958
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
@@ -847,6 +973,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
847
973
|
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
848
974
|
readonly currency: "USD";
|
|
849
975
|
};
|
|
976
|
+
readonly capabilities: {
|
|
977
|
+
readonly vision: false;
|
|
978
|
+
};
|
|
850
979
|
};
|
|
851
980
|
readonly "tts-1": {
|
|
852
981
|
readonly name: OpenAIModelNames.TTS_1;
|
|
@@ -867,6 +996,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
867
996
|
readonly getPriceForAudioOutput: () => number;
|
|
868
997
|
readonly currency: "USD";
|
|
869
998
|
};
|
|
999
|
+
readonly capabilities: {
|
|
1000
|
+
readonly vision: false;
|
|
1001
|
+
};
|
|
870
1002
|
};
|
|
871
1003
|
}, OpenAIModelNames.TTS_1 | OpenAIModelNames.GPT_4_OMNI_MINI_TTS>;
|
|
872
1004
|
readonly speech_to_text: Pick<{
|
|
@@ -887,6 +1019,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
887
1019
|
readonly getPriceForAudioOutput: () => number;
|
|
888
1020
|
readonly currency: "USD";
|
|
889
1021
|
};
|
|
1022
|
+
readonly capabilities: {
|
|
1023
|
+
readonly vision: true;
|
|
1024
|
+
};
|
|
890
1025
|
};
|
|
891
1026
|
readonly "gpt-4.1-mini": {
|
|
892
1027
|
readonly name: OpenAIModelNames.GPT_4_1_MINI;
|
|
@@ -905,6 +1040,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
905
1040
|
readonly getPriceForAudioOutput: () => number;
|
|
906
1041
|
readonly currency: "USD";
|
|
907
1042
|
};
|
|
1043
|
+
readonly capabilities: {
|
|
1044
|
+
readonly vision: true;
|
|
1045
|
+
};
|
|
908
1046
|
};
|
|
909
1047
|
readonly "gpt-5": {
|
|
910
1048
|
readonly name: OpenAIModelNames.GPT_5;
|
|
@@ -925,6 +1063,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
925
1063
|
readonly getPriceForAudioOutput: () => number;
|
|
926
1064
|
readonly currency: "USD";
|
|
927
1065
|
};
|
|
1066
|
+
readonly capabilities: {
|
|
1067
|
+
readonly vision: true;
|
|
1068
|
+
};
|
|
928
1069
|
};
|
|
929
1070
|
readonly "gpt-5.1": {
|
|
930
1071
|
readonly name: OpenAIModelNames.GPT_5_1;
|
|
@@ -945,6 +1086,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
945
1086
|
readonly getPriceForAudioOutput: () => number;
|
|
946
1087
|
readonly currency: "USD";
|
|
947
1088
|
};
|
|
1089
|
+
readonly capabilities: {
|
|
1090
|
+
readonly vision: true;
|
|
1091
|
+
};
|
|
948
1092
|
};
|
|
949
1093
|
readonly "gpt-5.2": {
|
|
950
1094
|
readonly name: OpenAIModelNames.GPT_5_2;
|
|
@@ -965,6 +1109,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
965
1109
|
readonly getPriceForAudioOutput: () => number;
|
|
966
1110
|
readonly currency: "USD";
|
|
967
1111
|
};
|
|
1112
|
+
readonly capabilities: {
|
|
1113
|
+
readonly vision: true;
|
|
1114
|
+
};
|
|
968
1115
|
};
|
|
969
1116
|
readonly "gpt-5-mini": {
|
|
970
1117
|
readonly name: OpenAIModelNames.GPT_5_MINI;
|
|
@@ -985,6 +1132,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
985
1132
|
readonly getPriceForAudioOutput: () => number;
|
|
986
1133
|
readonly currency: "USD";
|
|
987
1134
|
};
|
|
1135
|
+
readonly capabilities: {
|
|
1136
|
+
readonly vision: true;
|
|
1137
|
+
};
|
|
988
1138
|
};
|
|
989
1139
|
readonly "gpt-5-nano": {
|
|
990
1140
|
readonly name: OpenAIModelNames.GPT_5_NANO;
|
|
@@ -1005,6 +1155,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
1005
1155
|
readonly getPriceForAudioOutput: () => number;
|
|
1006
1156
|
readonly currency: "USD";
|
|
1007
1157
|
};
|
|
1158
|
+
readonly capabilities: {
|
|
1159
|
+
readonly vision: true;
|
|
1160
|
+
};
|
|
1008
1161
|
};
|
|
1009
1162
|
readonly "gpt-4o-transcribe": {
|
|
1010
1163
|
readonly name: OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE;
|
|
@@ -1024,6 +1177,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
1024
1177
|
readonly getPriceForAudioOutput: () => number;
|
|
1025
1178
|
readonly currency: "USD";
|
|
1026
1179
|
};
|
|
1180
|
+
readonly capabilities: {
|
|
1181
|
+
readonly vision: false;
|
|
1182
|
+
};
|
|
1027
1183
|
};
|
|
1028
1184
|
readonly "gpt-4o-mini-transcribe": {
|
|
1029
1185
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE;
|
|
@@ -1043,6 +1199,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
1043
1199
|
readonly getPriceForAudioOutput: () => number;
|
|
1044
1200
|
readonly currency: "USD";
|
|
1045
1201
|
};
|
|
1202
|
+
readonly capabilities: {
|
|
1203
|
+
readonly vision: false;
|
|
1204
|
+
};
|
|
1046
1205
|
};
|
|
1047
1206
|
readonly "gpt-4o-mini-tts": {
|
|
1048
1207
|
readonly name: OpenAIModelNames.GPT_4_OMNI_MINI_TTS;
|
|
@@ -1063,6 +1222,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
1063
1222
|
readonly getPriceForAudioOutput: (audio_tokens: number) => number;
|
|
1064
1223
|
readonly currency: "USD";
|
|
1065
1224
|
};
|
|
1225
|
+
readonly capabilities: {
|
|
1226
|
+
readonly vision: false;
|
|
1227
|
+
};
|
|
1066
1228
|
};
|
|
1067
1229
|
readonly "tts-1": {
|
|
1068
1230
|
readonly name: OpenAIModelNames.TTS_1;
|
|
@@ -1083,6 +1245,9 @@ export declare const OPEN_AI_MODELS: {
|
|
|
1083
1245
|
readonly getPriceForAudioOutput: () => number;
|
|
1084
1246
|
readonly currency: "USD";
|
|
1085
1247
|
};
|
|
1248
|
+
readonly capabilities: {
|
|
1249
|
+
readonly vision: false;
|
|
1250
|
+
};
|
|
1086
1251
|
};
|
|
1087
1252
|
}, OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE | OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE>;
|
|
1088
1253
|
};
|
|
@@ -26,6 +26,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
26
26
|
getPriceForAudioOutput: () => 0,
|
|
27
27
|
currency: 'USD',
|
|
28
28
|
},
|
|
29
|
+
capabilities: { vision: true },
|
|
29
30
|
},
|
|
30
31
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_4_1_MINI]: {
|
|
31
32
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_4_1_MINI,
|
|
@@ -44,6 +45,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
44
45
|
getPriceForAudioOutput: () => 0,
|
|
45
46
|
currency: 'USD',
|
|
46
47
|
},
|
|
48
|
+
capabilities: { vision: true },
|
|
47
49
|
},
|
|
48
50
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_5]: {
|
|
49
51
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_5,
|
|
@@ -64,6 +66,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
64
66
|
getPriceForAudioOutput: () => 0,
|
|
65
67
|
currency: 'USD',
|
|
66
68
|
},
|
|
69
|
+
capabilities: { vision: true },
|
|
67
70
|
},
|
|
68
71
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_5_1]: {
|
|
69
72
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_5_1,
|
|
@@ -84,6 +87,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
84
87
|
getPriceForAudioOutput: () => 0,
|
|
85
88
|
currency: 'USD',
|
|
86
89
|
},
|
|
90
|
+
capabilities: { vision: true },
|
|
87
91
|
},
|
|
88
92
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_5_2]: {
|
|
89
93
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_5_2,
|
|
@@ -104,6 +108,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
104
108
|
getPriceForAudioOutput: () => 0,
|
|
105
109
|
currency: 'USD',
|
|
106
110
|
},
|
|
111
|
+
capabilities: { vision: true },
|
|
107
112
|
},
|
|
108
113
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_5_MINI]: {
|
|
109
114
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_5_MINI,
|
|
@@ -124,6 +129,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
124
129
|
getPriceForAudioOutput: () => 0,
|
|
125
130
|
currency: 'USD',
|
|
126
131
|
},
|
|
132
|
+
capabilities: { vision: true },
|
|
127
133
|
},
|
|
128
134
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_5_NANO]: {
|
|
129
135
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_5_NANO,
|
|
@@ -144,6 +150,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
144
150
|
getPriceForAudioOutput: () => 0,
|
|
145
151
|
currency: 'USD',
|
|
146
152
|
},
|
|
153
|
+
capabilities: { vision: true },
|
|
147
154
|
},
|
|
148
155
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE]: {
|
|
149
156
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_4_OMNI_TRANSCRIBE,
|
|
@@ -163,6 +170,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
163
170
|
getPriceForAudioOutput: () => 0,
|
|
164
171
|
currency: 'USD',
|
|
165
172
|
},
|
|
173
|
+
capabilities: { vision: false },
|
|
166
174
|
},
|
|
167
175
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE]: {
|
|
168
176
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_4_OMNI_MINI_TRANSCRIBE,
|
|
@@ -182,6 +190,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
182
190
|
getPriceForAudioOutput: () => 0,
|
|
183
191
|
currency: 'USD',
|
|
184
192
|
},
|
|
193
|
+
capabilities: { vision: false },
|
|
185
194
|
},
|
|
186
195
|
[OpenAI_typedefs_1.OpenAIModelNames.GPT_4_OMNI_MINI_TTS]: {
|
|
187
196
|
name: OpenAI_typedefs_1.OpenAIModelNames.GPT_4_OMNI_MINI_TTS,
|
|
@@ -202,6 +211,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
202
211
|
getPriceForAudioOutput: (audio_tokens) => 12 * audio_tokens / 1_000_000,
|
|
203
212
|
currency: 'USD',
|
|
204
213
|
},
|
|
214
|
+
capabilities: { vision: false },
|
|
205
215
|
},
|
|
206
216
|
[OpenAI_typedefs_1.OpenAIModelNames.TTS_1]: {
|
|
207
217
|
name: OpenAI_typedefs_1.OpenAIModelNames.TTS_1,
|
|
@@ -222,6 +232,7 @@ exports.OPEN_AI_AVAILABLE_MODELS = {
|
|
|
222
232
|
getPriceForAudioOutput: () => 0,
|
|
223
233
|
currency: 'USD',
|
|
224
234
|
},
|
|
235
|
+
capabilities: { vision: false },
|
|
225
236
|
},
|
|
226
237
|
};
|
|
227
238
|
exports.OPEN_AI_MODELS = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAI.constants.js","sourceRoot":"","sources":["../../../src/providers/OpenAI/OpenAI.constants.ts"],"names":[],"mappings":";;;AAAA,+DAM+B;AAE/B,wEAAsE;AACtE,yCAKoB;AACpB,mEAAoD;AAEpD;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC,CAAC,kCAAgB,CAAC,OAAO,CAAC,EAAE;QAC1B,IAAI,EAAE,kCAAgB,CAAC,OAAO;QAC9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AU;KAC5B,CACF;IACD,CAAC,iCAAW,CAAC,YAAY,CAAC,EAAE,IAAA,uBAAI,EAC9B,gCAAwB,EACxB;QACE,kCAAgB,CAAC,mBAAmB;QACpC,kCAAgB,CAAC,KAAK;KACvB,CACF;IACD,CAAC,iCAAW,CAAC,YAAY,CAAC,EAAE,IAAA,uBAAI,EAC9B,gCAAwB,EACxB;QACE,kCAAgB,CAAC,qBAAqB;QACtC,kCAAgB,CAAC,0BAA0B;KAC5C,CACF;CAIF,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,CAAC,iCAAW,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,CACvD,IAAI,kCAAuB,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CACvD;IACD,CAAC,iCAAW,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,CACvD,IAAI,kCAAuB,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CACvD;IACD,CAAC,iCAAW,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,CACzD,IAAI,oCAAyB,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CACzD;IACD,CAAC,iCAAW,CAAC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,CACzD,IAAI,oCAAyB,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CACzD;CASF,CAAC"}
|
|
@@ -39,3 +39,9 @@ export interface OpenAIResponsesAPIConfig {
|
|
|
39
39
|
export type OpenAITool = OpenAI.Responses.Tool;
|
|
40
40
|
export type ResponseInput = OpenAI.Responses.ResponseInput;
|
|
41
41
|
export type ResponseInputContent = OpenAI.Responses.ResponseInputContent;
|
|
42
|
+
export declare enum OpenAIErrorType {
|
|
43
|
+
InvalidRequestError = "invalid_request_error"
|
|
44
|
+
}
|
|
45
|
+
export declare enum OpenAIErrorParam {
|
|
46
|
+
File = "file"
|
|
47
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OpenAIRoles = exports.OpenAIModelNames = void 0;
|
|
3
|
+
exports.OpenAIErrorParam = exports.OpenAIErrorType = exports.OpenAIRoles = exports.OpenAIModelNames = void 0;
|
|
4
4
|
;
|
|
5
5
|
var OpenAIModelNames;
|
|
6
6
|
(function (OpenAIModelNames) {
|
|
@@ -21,4 +21,12 @@ var OpenAIRoles;
|
|
|
21
21
|
OpenAIRoles["User"] = "user";
|
|
22
22
|
OpenAIRoles["Assistant"] = "assistant";
|
|
23
23
|
})(OpenAIRoles || (exports.OpenAIRoles = OpenAIRoles = {}));
|
|
24
|
+
var OpenAIErrorType;
|
|
25
|
+
(function (OpenAIErrorType) {
|
|
26
|
+
OpenAIErrorType["InvalidRequestError"] = "invalid_request_error";
|
|
27
|
+
})(OpenAIErrorType || (exports.OpenAIErrorType = OpenAIErrorType = {}));
|
|
28
|
+
var OpenAIErrorParam;
|
|
29
|
+
(function (OpenAIErrorParam) {
|
|
30
|
+
OpenAIErrorParam["File"] = "file";
|
|
31
|
+
})(OpenAIErrorParam || (exports.OpenAIErrorParam = OpenAIErrorParam = {}));
|
|
24
32
|
//# sourceMappingURL=OpenAI.typedefs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAI.typedefs.js","sourceRoot":"","sources":["../../../src/providers/OpenAI/OpenAI.typedefs.ts"],"names":[],"mappings":";;;AAC6C,CAAC;AAI9C,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,iDAA6B,CAAA;IAC7B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;IACzB,6CAAyB,CAAA;IACzB,+DAA2C,CAAA;IAC3C,yEAAqD,CAAA;IACrD,mCAAe,CAAA;IACf,2DAAuC,CAAA;AACzC,CAAC,EAZW,gBAAgB,gCAAhB,gBAAgB,QAY3B;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,sCAAuB,CAAA;AACzB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
|
|
1
|
+
{"version":3,"file":"OpenAI.typedefs.js","sourceRoot":"","sources":["../../../src/providers/OpenAI/OpenAI.typedefs.ts"],"names":[],"mappings":";;;AAC6C,CAAC;AAI9C,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,iDAA6B,CAAA;IAC7B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,6CAAyB,CAAA;IACzB,6CAAyB,CAAA;IACzB,+DAA2C,CAAA;IAC3C,yEAAqD,CAAA;IACrD,mCAAe,CAAA;IACf,2DAAuC,CAAA;AACzC,CAAC,EAZW,gBAAgB,gCAAhB,gBAAgB,QAY3B;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,sCAAuB,CAAA;AACzB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AA8CD,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,gEAA6C,CAAA;AAC/C,CAAC,EAFW,eAAe,+BAAf,eAAe,QAE1B;AAED,IAAY,gBAEX;AAFD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;AACf,CAAC,EAFW,gBAAgB,gCAAhB,gBAAgB,QAE3B"}
|