@adaline/openai 0.0.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.
@@ -0,0 +1,1366 @@
1
+ import * as zod from 'zod';
2
+ import { z } from 'zod';
3
+ import { ChatModelSchemaType, ChatModelV1, UrlType, HeadersType, ParamsType, EmbeddingModelSchemaType, EmbeddingModelV1, ProviderV1 } from '@adaline/provider';
4
+ import { MessageType, ConfigType, ToolType, PartialMessageType, EmbeddingRequestsType, EmbeddingsType } from '@adaline/types';
5
+
6
+ declare const temperature: {
7
+ def: {
8
+ type: "range";
9
+ param: string;
10
+ title: string;
11
+ description: string;
12
+ max: number;
13
+ min: number;
14
+ step: number;
15
+ default: number;
16
+ };
17
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
18
+ };
19
+ declare const maxTokens: (maxOutputTokens: number) => {
20
+ def: {
21
+ type: "range";
22
+ param: string;
23
+ title: string;
24
+ description: string;
25
+ max: number;
26
+ min: number;
27
+ step: number;
28
+ default: number;
29
+ };
30
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
31
+ };
32
+ declare const stop: (maxSequences: number) => {
33
+ def: {
34
+ type: "multi-string";
35
+ param: string;
36
+ title: string;
37
+ description: string;
38
+ max: number;
39
+ };
40
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
41
+ };
42
+ declare const topP: {
43
+ def: {
44
+ type: "range";
45
+ param: string;
46
+ title: string;
47
+ description: string;
48
+ max: number;
49
+ min: number;
50
+ step: number;
51
+ default: number;
52
+ };
53
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
54
+ };
55
+ declare const frequencyPenalty: {
56
+ def: {
57
+ type: "range";
58
+ param: string;
59
+ title: string;
60
+ description: string;
61
+ max: number;
62
+ min: number;
63
+ step: number;
64
+ default: number;
65
+ };
66
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
67
+ };
68
+ declare const presencePenalty: {
69
+ def: {
70
+ type: "range";
71
+ param: string;
72
+ title: string;
73
+ description: string;
74
+ max: number;
75
+ min: number;
76
+ step: number;
77
+ default: number;
78
+ };
79
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
80
+ };
81
+ declare const seed: {
82
+ def: {
83
+ type: "range";
84
+ param: string;
85
+ title: string;
86
+ description: string;
87
+ max: number;
88
+ min: number;
89
+ step: number;
90
+ default: number;
91
+ };
92
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
93
+ };
94
+ declare const responseFormat: {
95
+ def: {
96
+ type: "select-string";
97
+ param: string;
98
+ title: string;
99
+ description: string;
100
+ default: string;
101
+ choices: string[];
102
+ };
103
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
104
+ };
105
+ declare const toolChoice: {
106
+ def: {
107
+ type: "select-string";
108
+ param: string;
109
+ title: string;
110
+ description: string;
111
+ default: string;
112
+ choices: string[];
113
+ };
114
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
115
+ };
116
+
117
+ declare const BaseConfigSchema: (maxOutputTokens: number, maxSequences: number) => z.ZodObject<{
118
+ temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
119
+ maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
120
+ stop: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
121
+ topP: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
122
+ frequencyPenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
123
+ presencePenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
124
+ seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
125
+ responseFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
126
+ toolChoice: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ temperature?: number | undefined;
129
+ seed?: number | undefined;
130
+ stop?: string[] | undefined;
131
+ maxTokens?: number | undefined;
132
+ topP?: number | undefined;
133
+ frequencyPenalty?: number | undefined;
134
+ presencePenalty?: number | undefined;
135
+ responseFormat?: string | undefined;
136
+ toolChoice?: string | undefined;
137
+ }, {
138
+ temperature?: number | undefined;
139
+ seed?: number | undefined;
140
+ stop?: string[] | undefined;
141
+ maxTokens?: number | undefined;
142
+ topP?: number | undefined;
143
+ frequencyPenalty?: number | undefined;
144
+ presencePenalty?: number | undefined;
145
+ responseFormat?: string | undefined;
146
+ toolChoice?: string | undefined;
147
+ }>;
148
+ declare const BaseConfigDef: (maxOutputTokens: number, maxSequences: number) => {
149
+ readonly temperature: {
150
+ type: "range";
151
+ param: string;
152
+ title: string;
153
+ description: string;
154
+ max: number;
155
+ min: number;
156
+ step: number;
157
+ default: number;
158
+ };
159
+ readonly maxTokens: {
160
+ type: "range";
161
+ param: string;
162
+ title: string;
163
+ description: string;
164
+ max: number;
165
+ min: number;
166
+ step: number;
167
+ default: number;
168
+ };
169
+ readonly stop: {
170
+ type: "multi-string";
171
+ param: string;
172
+ title: string;
173
+ description: string;
174
+ max: number;
175
+ };
176
+ readonly topP: {
177
+ type: "range";
178
+ param: string;
179
+ title: string;
180
+ description: string;
181
+ max: number;
182
+ min: number;
183
+ step: number;
184
+ default: number;
185
+ };
186
+ readonly frequencyPenalty: {
187
+ type: "range";
188
+ param: string;
189
+ title: string;
190
+ description: string;
191
+ max: number;
192
+ min: number;
193
+ step: number;
194
+ default: number;
195
+ };
196
+ readonly presencePenalty: {
197
+ type: "range";
198
+ param: string;
199
+ title: string;
200
+ description: string;
201
+ max: number;
202
+ min: number;
203
+ step: number;
204
+ default: number;
205
+ };
206
+ readonly seed: {
207
+ type: "range";
208
+ param: string;
209
+ title: string;
210
+ description: string;
211
+ max: number;
212
+ min: number;
213
+ step: number;
214
+ default: number;
215
+ };
216
+ readonly responseFormat: {
217
+ type: "select-string";
218
+ param: string;
219
+ title: string;
220
+ description: string;
221
+ default: string;
222
+ choices: string[];
223
+ };
224
+ readonly toolChoice: {
225
+ type: "select-string";
226
+ param: string;
227
+ title: string;
228
+ description: string;
229
+ default: string;
230
+ choices: string[];
231
+ };
232
+ };
233
+
234
+ declare const ResponseSchemaConfigDef: (maxOutputTokens: number, maxSequences: number) => {
235
+ responseFormat: {
236
+ type: "select-string";
237
+ param: string;
238
+ title: string;
239
+ description: string;
240
+ default: string;
241
+ choices: string[];
242
+ };
243
+ responseSchema: {
244
+ type: "object-schema";
245
+ param: string;
246
+ title: string;
247
+ description: string;
248
+ objectSchema?: any;
249
+ };
250
+ temperature: {
251
+ type: "range";
252
+ param: string;
253
+ title: string;
254
+ description: string;
255
+ max: number;
256
+ min: number;
257
+ step: number;
258
+ default: number;
259
+ };
260
+ maxTokens: {
261
+ type: "range";
262
+ param: string;
263
+ title: string;
264
+ description: string;
265
+ max: number;
266
+ min: number;
267
+ step: number;
268
+ default: number;
269
+ };
270
+ stop: {
271
+ type: "multi-string";
272
+ param: string;
273
+ title: string;
274
+ description: string;
275
+ max: number;
276
+ };
277
+ topP: {
278
+ type: "range";
279
+ param: string;
280
+ title: string;
281
+ description: string;
282
+ max: number;
283
+ min: number;
284
+ step: number;
285
+ default: number;
286
+ };
287
+ frequencyPenalty: {
288
+ type: "range";
289
+ param: string;
290
+ title: string;
291
+ description: string;
292
+ max: number;
293
+ min: number;
294
+ step: number;
295
+ default: number;
296
+ };
297
+ presencePenalty: {
298
+ type: "range";
299
+ param: string;
300
+ title: string;
301
+ description: string;
302
+ max: number;
303
+ min: number;
304
+ step: number;
305
+ default: number;
306
+ };
307
+ seed: {
308
+ type: "range";
309
+ param: string;
310
+ title: string;
311
+ description: string;
312
+ max: number;
313
+ min: number;
314
+ step: number;
315
+ default: number;
316
+ };
317
+ toolChoice: {
318
+ type: "select-string";
319
+ param: string;
320
+ title: string;
321
+ description: string;
322
+ default: string;
323
+ choices: string[];
324
+ };
325
+ };
326
+ declare const ResponseSchemaConfigSchema: (maxOutputTokens: number, maxSequences: number) => z.ZodObject<z.objectUtil.extendShape<{
327
+ temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
328
+ maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
329
+ stop: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
330
+ topP: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
331
+ frequencyPenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
332
+ presencePenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
333
+ seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
334
+ responseFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
335
+ toolChoice: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
336
+ }, {
337
+ responseFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
338
+ responseSchema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
339
+ [x: string]: any;
340
+ }, {
341
+ [x: string]: any;
342
+ }>;
343
+ }>, "strip", z.ZodTypeAny, {
344
+ responseSchema: {
345
+ [x: string]: any;
346
+ };
347
+ temperature?: number | undefined;
348
+ seed?: number | undefined;
349
+ stop?: string[] | undefined;
350
+ maxTokens?: number | undefined;
351
+ topP?: number | undefined;
352
+ frequencyPenalty?: number | undefined;
353
+ presencePenalty?: number | undefined;
354
+ responseFormat?: string | undefined;
355
+ toolChoice?: string | undefined;
356
+ }, {
357
+ responseSchema: {
358
+ [x: string]: any;
359
+ };
360
+ temperature?: number | undefined;
361
+ seed?: number | undefined;
362
+ stop?: string[] | undefined;
363
+ maxTokens?: number | undefined;
364
+ topP?: number | undefined;
365
+ frequencyPenalty?: number | undefined;
366
+ presencePenalty?: number | undefined;
367
+ responseFormat?: string | undefined;
368
+ toolChoice?: string | undefined;
369
+ }>;
370
+
371
+ declare const BaseWordEmbeddingConfigSchema: () => z.ZodObject<{
372
+ encodingFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
373
+ dimensions: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ dimensions?: number | undefined;
376
+ encodingFormat?: string | undefined;
377
+ }, {
378
+ dimensions?: number | undefined;
379
+ encodingFormat?: string | undefined;
380
+ }>;
381
+ declare const BaseWordEmbeddingConfigDef: () => {
382
+ readonly encodingFormat: {
383
+ type: "select-string";
384
+ param: string;
385
+ title: string;
386
+ description: string;
387
+ default: string;
388
+ choices: string[];
389
+ };
390
+ readonly dimensions: {
391
+ type: "range";
392
+ param: string;
393
+ title: string;
394
+ description: string;
395
+ max: number;
396
+ min: number;
397
+ step: number;
398
+ default: number;
399
+ };
400
+ };
401
+
402
+ declare const encodingFormat: {
403
+ def: {
404
+ type: "select-string";
405
+ param: string;
406
+ title: string;
407
+ description: string;
408
+ default: string;
409
+ choices: string[];
410
+ };
411
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
412
+ };
413
+ declare const dimensions: {
414
+ def: {
415
+ type: "range";
416
+ param: string;
417
+ title: string;
418
+ description: string;
419
+ max: number;
420
+ min: number;
421
+ step: number;
422
+ default: number;
423
+ };
424
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
425
+ };
426
+
427
+ declare const OpenAIConfigs: {
428
+ readonly base: (maxOutputTokens: number, maxSequences: number) => {
429
+ def: {
430
+ readonly temperature: {
431
+ type: "range";
432
+ param: string;
433
+ title: string;
434
+ description: string;
435
+ max: number;
436
+ min: number;
437
+ step: number;
438
+ default: number;
439
+ };
440
+ readonly maxTokens: {
441
+ type: "range";
442
+ param: string;
443
+ title: string;
444
+ description: string;
445
+ max: number;
446
+ min: number;
447
+ step: number;
448
+ default: number;
449
+ };
450
+ readonly stop: {
451
+ type: "multi-string";
452
+ param: string;
453
+ title: string;
454
+ description: string;
455
+ max: number;
456
+ };
457
+ readonly topP: {
458
+ type: "range";
459
+ param: string;
460
+ title: string;
461
+ description: string;
462
+ max: number;
463
+ min: number;
464
+ step: number;
465
+ default: number;
466
+ };
467
+ readonly frequencyPenalty: {
468
+ type: "range";
469
+ param: string;
470
+ title: string;
471
+ description: string;
472
+ max: number;
473
+ min: number;
474
+ step: number;
475
+ default: number;
476
+ };
477
+ readonly presencePenalty: {
478
+ type: "range";
479
+ param: string;
480
+ title: string;
481
+ description: string;
482
+ max: number;
483
+ min: number;
484
+ step: number;
485
+ default: number;
486
+ };
487
+ readonly seed: {
488
+ type: "range";
489
+ param: string;
490
+ title: string;
491
+ description: string;
492
+ max: number;
493
+ min: number;
494
+ step: number;
495
+ default: number;
496
+ };
497
+ readonly responseFormat: {
498
+ type: "select-string";
499
+ param: string;
500
+ title: string;
501
+ description: string;
502
+ default: string;
503
+ choices: string[];
504
+ };
505
+ readonly toolChoice: {
506
+ type: "select-string";
507
+ param: string;
508
+ title: string;
509
+ description: string;
510
+ default: string;
511
+ choices: string[];
512
+ };
513
+ };
514
+ schema: zod.ZodObject<{
515
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
516
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
517
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
518
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
519
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
520
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
521
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
522
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
523
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
524
+ }, "strip", zod.ZodTypeAny, {
525
+ temperature?: number | undefined;
526
+ seed?: number | undefined;
527
+ stop?: string[] | undefined;
528
+ maxTokens?: number | undefined;
529
+ topP?: number | undefined;
530
+ frequencyPenalty?: number | undefined;
531
+ presencePenalty?: number | undefined;
532
+ responseFormat?: string | undefined;
533
+ toolChoice?: string | undefined;
534
+ }, {
535
+ temperature?: number | undefined;
536
+ seed?: number | undefined;
537
+ stop?: string[] | undefined;
538
+ maxTokens?: number | undefined;
539
+ topP?: number | undefined;
540
+ frequencyPenalty?: number | undefined;
541
+ presencePenalty?: number | undefined;
542
+ responseFormat?: string | undefined;
543
+ toolChoice?: string | undefined;
544
+ }>;
545
+ };
546
+ readonly responseSchema: (maxOutputTokens: number, maxSequences: number) => {
547
+ def: {
548
+ responseFormat: {
549
+ type: "select-string";
550
+ param: string;
551
+ title: string;
552
+ description: string;
553
+ default: string;
554
+ choices: string[];
555
+ };
556
+ responseSchema: {
557
+ type: "object-schema";
558
+ param: string;
559
+ title: string;
560
+ description: string;
561
+ objectSchema?: any;
562
+ };
563
+ temperature: {
564
+ type: "range";
565
+ param: string;
566
+ title: string;
567
+ description: string;
568
+ max: number;
569
+ min: number;
570
+ step: number;
571
+ default: number;
572
+ };
573
+ maxTokens: {
574
+ type: "range";
575
+ param: string;
576
+ title: string;
577
+ description: string;
578
+ max: number;
579
+ min: number;
580
+ step: number;
581
+ default: number;
582
+ };
583
+ stop: {
584
+ type: "multi-string";
585
+ param: string;
586
+ title: string;
587
+ description: string;
588
+ max: number;
589
+ };
590
+ topP: {
591
+ type: "range";
592
+ param: string;
593
+ title: string;
594
+ description: string;
595
+ max: number;
596
+ min: number;
597
+ step: number;
598
+ default: number;
599
+ };
600
+ frequencyPenalty: {
601
+ type: "range";
602
+ param: string;
603
+ title: string;
604
+ description: string;
605
+ max: number;
606
+ min: number;
607
+ step: number;
608
+ default: number;
609
+ };
610
+ presencePenalty: {
611
+ type: "range";
612
+ param: string;
613
+ title: string;
614
+ description: string;
615
+ max: number;
616
+ min: number;
617
+ step: number;
618
+ default: number;
619
+ };
620
+ seed: {
621
+ type: "range";
622
+ param: string;
623
+ title: string;
624
+ description: string;
625
+ max: number;
626
+ min: number;
627
+ step: number;
628
+ default: number;
629
+ };
630
+ toolChoice: {
631
+ type: "select-string";
632
+ param: string;
633
+ title: string;
634
+ description: string;
635
+ default: string;
636
+ choices: string[];
637
+ };
638
+ };
639
+ schema: zod.ZodObject<zod.objectUtil.extendShape<{
640
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
641
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
642
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
643
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
644
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
645
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
646
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
647
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
648
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
649
+ }, {
650
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
651
+ responseSchema: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
652
+ [x: string]: any;
653
+ }, {
654
+ [x: string]: any;
655
+ }>;
656
+ }>, "strip", zod.ZodTypeAny, {
657
+ responseSchema: {
658
+ [x: string]: any;
659
+ };
660
+ temperature?: number | undefined;
661
+ seed?: number | undefined;
662
+ stop?: string[] | undefined;
663
+ maxTokens?: number | undefined;
664
+ topP?: number | undefined;
665
+ frequencyPenalty?: number | undefined;
666
+ presencePenalty?: number | undefined;
667
+ responseFormat?: string | undefined;
668
+ toolChoice?: string | undefined;
669
+ }, {
670
+ responseSchema: {
671
+ [x: string]: any;
672
+ };
673
+ temperature?: number | undefined;
674
+ seed?: number | undefined;
675
+ stop?: string[] | undefined;
676
+ maxTokens?: number | undefined;
677
+ topP?: number | undefined;
678
+ frequencyPenalty?: number | undefined;
679
+ presencePenalty?: number | undefined;
680
+ responseFormat?: string | undefined;
681
+ toolChoice?: string | undefined;
682
+ }>;
683
+ };
684
+ };
685
+ declare const OpenAIWordEmbeddingConfigs: {
686
+ readonly base: () => {
687
+ def: {
688
+ readonly encodingFormat: {
689
+ type: "select-string";
690
+ param: string;
691
+ title: string;
692
+ description: string;
693
+ default: string;
694
+ choices: string[];
695
+ };
696
+ readonly dimensions: {
697
+ type: "range";
698
+ param: string;
699
+ title: string;
700
+ description: string;
701
+ max: number;
702
+ min: number;
703
+ step: number;
704
+ default: number;
705
+ };
706
+ };
707
+ schema: zod.ZodObject<{
708
+ encodingFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
709
+ dimensions: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
710
+ }, "strip", zod.ZodTypeAny, {
711
+ dimensions?: number | undefined;
712
+ encodingFormat?: string | undefined;
713
+ }, {
714
+ dimensions?: number | undefined;
715
+ encodingFormat?: string | undefined;
716
+ }>;
717
+ };
718
+ };
719
+
720
+ declare const OpenAIChatModelRoles: z.ZodEnum<["system", "user", "assistant", "tool"]>;
721
+ declare const OpenAIChatModelRolesMap: {
722
+ readonly system: "system";
723
+ readonly user: "user";
724
+ readonly assistant: "assistant";
725
+ readonly tool: "tool";
726
+ };
727
+
728
+ declare const OpenAIChatModelModalities: ChatModelSchemaType["modalities"];
729
+ declare const OpenAIChatModelModalitiesEnum: z.ZodEnum<["text", "image", "tool-call", "tool-response"]>;
730
+
731
+ declare const OpenAIToolCallsCompleteChatResponse: z.ZodArray<z.ZodObject<{
732
+ id: z.ZodString;
733
+ type: z.ZodEnum<["function"]>;
734
+ function: z.ZodObject<{
735
+ name: z.ZodString;
736
+ arguments: z.ZodString;
737
+ }, "strip", z.ZodTypeAny, {
738
+ name: string;
739
+ arguments: string;
740
+ }, {
741
+ name: string;
742
+ arguments: string;
743
+ }>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ function: {
746
+ name: string;
747
+ arguments: string;
748
+ };
749
+ type: "function";
750
+ id: string;
751
+ }, {
752
+ function: {
753
+ name: string;
754
+ arguments: string;
755
+ };
756
+ type: "function";
757
+ id: string;
758
+ }>, "many">;
759
+ declare const OpenAICompleteChatResponse: z.ZodObject<{
760
+ id: z.ZodString;
761
+ object: z.ZodLiteral<"chat.completion">;
762
+ created: z.ZodNumber;
763
+ model: z.ZodString;
764
+ system_fingerprint: z.ZodAny;
765
+ choices: z.ZodArray<z.ZodObject<{
766
+ index: z.ZodNumber;
767
+ message: z.ZodObject<{
768
+ role: z.ZodString;
769
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
770
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
771
+ id: z.ZodString;
772
+ type: z.ZodEnum<["function"]>;
773
+ function: z.ZodObject<{
774
+ name: z.ZodString;
775
+ arguments: z.ZodString;
776
+ }, "strip", z.ZodTypeAny, {
777
+ name: string;
778
+ arguments: string;
779
+ }, {
780
+ name: string;
781
+ arguments: string;
782
+ }>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ function: {
785
+ name: string;
786
+ arguments: string;
787
+ };
788
+ type: "function";
789
+ id: string;
790
+ }, {
791
+ function: {
792
+ name: string;
793
+ arguments: string;
794
+ };
795
+ type: "function";
796
+ id: string;
797
+ }>, "many">>;
798
+ refusal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ role: string;
801
+ content?: string | null | undefined;
802
+ tool_calls?: {
803
+ function: {
804
+ name: string;
805
+ arguments: string;
806
+ };
807
+ type: "function";
808
+ id: string;
809
+ }[] | undefined;
810
+ refusal?: string | null | undefined;
811
+ }, {
812
+ role: string;
813
+ content?: string | null | undefined;
814
+ tool_calls?: {
815
+ function: {
816
+ name: string;
817
+ arguments: string;
818
+ };
819
+ type: "function";
820
+ id: string;
821
+ }[] | undefined;
822
+ refusal?: string | null | undefined;
823
+ }>;
824
+ logprobs: z.ZodAny;
825
+ finish_reason: z.ZodAny;
826
+ }, "strip", z.ZodTypeAny, {
827
+ message: {
828
+ role: string;
829
+ content?: string | null | undefined;
830
+ tool_calls?: {
831
+ function: {
832
+ name: string;
833
+ arguments: string;
834
+ };
835
+ type: "function";
836
+ id: string;
837
+ }[] | undefined;
838
+ refusal?: string | null | undefined;
839
+ };
840
+ index: number;
841
+ logprobs?: any;
842
+ finish_reason?: any;
843
+ }, {
844
+ message: {
845
+ role: string;
846
+ content?: string | null | undefined;
847
+ tool_calls?: {
848
+ function: {
849
+ name: string;
850
+ arguments: string;
851
+ };
852
+ type: "function";
853
+ id: string;
854
+ }[] | undefined;
855
+ refusal?: string | null | undefined;
856
+ };
857
+ index: number;
858
+ logprobs?: any;
859
+ finish_reason?: any;
860
+ }>, "many">;
861
+ usage: z.ZodObject<{
862
+ prompt_tokens: z.ZodNumber;
863
+ completion_tokens: z.ZodNumber;
864
+ total_tokens: z.ZodNumber;
865
+ }, "strip", z.ZodTypeAny, {
866
+ prompt_tokens: number;
867
+ completion_tokens: number;
868
+ total_tokens: number;
869
+ }, {
870
+ prompt_tokens: number;
871
+ completion_tokens: number;
872
+ total_tokens: number;
873
+ }>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ object: "chat.completion";
876
+ choices: {
877
+ message: {
878
+ role: string;
879
+ content?: string | null | undefined;
880
+ tool_calls?: {
881
+ function: {
882
+ name: string;
883
+ arguments: string;
884
+ };
885
+ type: "function";
886
+ id: string;
887
+ }[] | undefined;
888
+ refusal?: string | null | undefined;
889
+ };
890
+ index: number;
891
+ logprobs?: any;
892
+ finish_reason?: any;
893
+ }[];
894
+ id: string;
895
+ created: number;
896
+ model: string;
897
+ usage: {
898
+ prompt_tokens: number;
899
+ completion_tokens: number;
900
+ total_tokens: number;
901
+ };
902
+ system_fingerprint?: any;
903
+ }, {
904
+ object: "chat.completion";
905
+ choices: {
906
+ message: {
907
+ role: string;
908
+ content?: string | null | undefined;
909
+ tool_calls?: {
910
+ function: {
911
+ name: string;
912
+ arguments: string;
913
+ };
914
+ type: "function";
915
+ id: string;
916
+ }[] | undefined;
917
+ refusal?: string | null | undefined;
918
+ };
919
+ index: number;
920
+ logprobs?: any;
921
+ finish_reason?: any;
922
+ }[];
923
+ id: string;
924
+ created: number;
925
+ model: string;
926
+ usage: {
927
+ prompt_tokens: number;
928
+ completion_tokens: number;
929
+ total_tokens: number;
930
+ };
931
+ system_fingerprint?: any;
932
+ }>;
933
+ declare const OpenAIToolCallsStreamChatResponse: z.ZodArray<z.ZodObject<{
934
+ index: z.ZodNumber;
935
+ id: z.ZodOptional<z.ZodString>;
936
+ type: z.ZodOptional<z.ZodEnum<["function"]>>;
937
+ function: z.ZodOptional<z.ZodObject<{
938
+ name: z.ZodOptional<z.ZodString>;
939
+ arguments: z.ZodOptional<z.ZodString>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ name?: string | undefined;
942
+ arguments?: string | undefined;
943
+ }, {
944
+ name?: string | undefined;
945
+ arguments?: string | undefined;
946
+ }>>;
947
+ }, "strip", z.ZodTypeAny, {
948
+ index: number;
949
+ function?: {
950
+ name?: string | undefined;
951
+ arguments?: string | undefined;
952
+ } | undefined;
953
+ type?: "function" | undefined;
954
+ id?: string | undefined;
955
+ }, {
956
+ index: number;
957
+ function?: {
958
+ name?: string | undefined;
959
+ arguments?: string | undefined;
960
+ } | undefined;
961
+ type?: "function" | undefined;
962
+ id?: string | undefined;
963
+ }>, "many">;
964
+ declare const OpenAIStreamChatResponse: z.ZodObject<{
965
+ id: z.ZodString;
966
+ object: z.ZodString;
967
+ created: z.ZodNumber;
968
+ model: z.ZodString;
969
+ system_fingerprint: z.ZodNullable<z.ZodAny>;
970
+ choices: z.ZodArray<z.ZodObject<{
971
+ index: z.ZodNumber;
972
+ delta: z.ZodUnion<[z.ZodObject<{
973
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
975
+ index: z.ZodNumber;
976
+ id: z.ZodOptional<z.ZodString>;
977
+ type: z.ZodOptional<z.ZodEnum<["function"]>>;
978
+ function: z.ZodOptional<z.ZodObject<{
979
+ name: z.ZodOptional<z.ZodString>;
980
+ arguments: z.ZodOptional<z.ZodString>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ name?: string | undefined;
983
+ arguments?: string | undefined;
984
+ }, {
985
+ name?: string | undefined;
986
+ arguments?: string | undefined;
987
+ }>>;
988
+ }, "strip", z.ZodTypeAny, {
989
+ index: number;
990
+ function?: {
991
+ name?: string | undefined;
992
+ arguments?: string | undefined;
993
+ } | undefined;
994
+ type?: "function" | undefined;
995
+ id?: string | undefined;
996
+ }, {
997
+ index: number;
998
+ function?: {
999
+ name?: string | undefined;
1000
+ arguments?: string | undefined;
1001
+ } | undefined;
1002
+ type?: "function" | undefined;
1003
+ id?: string | undefined;
1004
+ }>, "many">>;
1005
+ refusal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
+ }, "strip", z.ZodTypeAny, {
1007
+ content?: string | null | undefined;
1008
+ tool_calls?: {
1009
+ index: number;
1010
+ function?: {
1011
+ name?: string | undefined;
1012
+ arguments?: string | undefined;
1013
+ } | undefined;
1014
+ type?: "function" | undefined;
1015
+ id?: string | undefined;
1016
+ }[] | undefined;
1017
+ refusal?: string | null | undefined;
1018
+ }, {
1019
+ content?: string | null | undefined;
1020
+ tool_calls?: {
1021
+ index: number;
1022
+ function?: {
1023
+ name?: string | undefined;
1024
+ arguments?: string | undefined;
1025
+ } | undefined;
1026
+ type?: "function" | undefined;
1027
+ id?: string | undefined;
1028
+ }[] | undefined;
1029
+ refusal?: string | null | undefined;
1030
+ }>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>;
1031
+ finish_reason: z.ZodNullable<z.ZodAny>;
1032
+ logprobs: z.ZodNullable<z.ZodAny>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ index: number;
1035
+ delta: {
1036
+ content?: string | null | undefined;
1037
+ tool_calls?: {
1038
+ index: number;
1039
+ function?: {
1040
+ name?: string | undefined;
1041
+ arguments?: string | undefined;
1042
+ } | undefined;
1043
+ type?: "function" | undefined;
1044
+ id?: string | undefined;
1045
+ }[] | undefined;
1046
+ refusal?: string | null | undefined;
1047
+ } | {};
1048
+ logprobs?: any;
1049
+ finish_reason?: any;
1050
+ }, {
1051
+ index: number;
1052
+ delta: {
1053
+ content?: string | null | undefined;
1054
+ tool_calls?: {
1055
+ index: number;
1056
+ function?: {
1057
+ name?: string | undefined;
1058
+ arguments?: string | undefined;
1059
+ } | undefined;
1060
+ type?: "function" | undefined;
1061
+ id?: string | undefined;
1062
+ }[] | undefined;
1063
+ refusal?: string | null | undefined;
1064
+ } | {};
1065
+ logprobs?: any;
1066
+ finish_reason?: any;
1067
+ }>, "many">;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ object: string;
1070
+ choices: {
1071
+ index: number;
1072
+ delta: {
1073
+ content?: string | null | undefined;
1074
+ tool_calls?: {
1075
+ index: number;
1076
+ function?: {
1077
+ name?: string | undefined;
1078
+ arguments?: string | undefined;
1079
+ } | undefined;
1080
+ type?: "function" | undefined;
1081
+ id?: string | undefined;
1082
+ }[] | undefined;
1083
+ refusal?: string | null | undefined;
1084
+ } | {};
1085
+ logprobs?: any;
1086
+ finish_reason?: any;
1087
+ }[];
1088
+ id: string;
1089
+ created: number;
1090
+ model: string;
1091
+ system_fingerprint?: any;
1092
+ }, {
1093
+ object: string;
1094
+ choices: {
1095
+ index: number;
1096
+ delta: {
1097
+ content?: string | null | undefined;
1098
+ tool_calls?: {
1099
+ index: number;
1100
+ function?: {
1101
+ name?: string | undefined;
1102
+ arguments?: string | undefined;
1103
+ } | undefined;
1104
+ type?: "function" | undefined;
1105
+ id?: string | undefined;
1106
+ }[] | undefined;
1107
+ refusal?: string | null | undefined;
1108
+ } | {};
1109
+ logprobs?: any;
1110
+ finish_reason?: any;
1111
+ }[];
1112
+ id: string;
1113
+ created: number;
1114
+ model: string;
1115
+ system_fingerprint?: any;
1116
+ }>;
1117
+
1118
+ declare const BaseChatModelOptions: z.ZodObject<{
1119
+ apiKey: z.ZodString;
1120
+ proxyUrl: z.ZodOptional<z.ZodString>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ apiKey: string;
1123
+ proxyUrl?: string | undefined;
1124
+ }, {
1125
+ apiKey: string;
1126
+ proxyUrl?: string | undefined;
1127
+ }>;
1128
+ type BaseChatModelOptionsType = z.infer<typeof BaseChatModelOptions>;
1129
+ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
1130
+ readonly version: "v1";
1131
+ modelSchema: ChatModelSchemaType;
1132
+ private readonly apiKey;
1133
+ private readonly baseUrl;
1134
+ constructor(modelSchema: ChatModelSchemaType, options: BaseChatModelOptionsType);
1135
+ getTokenCount: (messages: MessageType[]) => number;
1136
+ getDefaultBaseUrl: () => UrlType;
1137
+ getDefaultHeaders: () => HeadersType;
1138
+ getDefaultParams: () => ParamsType;
1139
+ transformConfig: (config: ConfigType, messages?: MessageType[], tools?: ToolType[]) => ParamsType;
1140
+ transformMessages: (messages: MessageType[]) => ParamsType;
1141
+ transformTools: (tools: ToolType[]) => ParamsType;
1142
+ getCompleteChatUrl: (config: ConfigType, messages: MessageType[], tools?: ToolType[]) => UrlType;
1143
+ getCompleteChatHeaders: (config: ConfigType, messages: MessageType[], tools?: ToolType[]) => HeadersType;
1144
+ getCompleteChatData: (config: ConfigType, messages: MessageType[], tools?: ToolType[]) => ParamsType;
1145
+ transformCompleteChatResponse: (response: any) => MessageType[];
1146
+ getStreamChatUrl: (config: ConfigType, messages: MessageType[], tools?: ToolType[]) => UrlType;
1147
+ getStreamChatHeaders: (config: ConfigType, messages: MessageType[], tools?: ToolType[]) => HeadersType;
1148
+ getStreamChatData: (config: ConfigType, messages: MessageType[], tools?: ToolType[]) => ParamsType;
1149
+ transformStreamChatResponseChunk: (chunk: string, buffer: string) => AsyncGenerator<{
1150
+ partialMessages: PartialMessageType[];
1151
+ buffer: string;
1152
+ }>;
1153
+ }
1154
+
1155
+ declare const GPT4oSchema: {
1156
+ description: string;
1157
+ name: string;
1158
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
1159
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
1160
+ maxInputTokens: number;
1161
+ maxOutputTokens: number;
1162
+ config: {
1163
+ def: Record<string, {
1164
+ type: "multi-string";
1165
+ param: string;
1166
+ title: string;
1167
+ description: string;
1168
+ max: number;
1169
+ } | {
1170
+ type: "range";
1171
+ param: string;
1172
+ title: string;
1173
+ description: string;
1174
+ max: number;
1175
+ min: number;
1176
+ step: number;
1177
+ default: number;
1178
+ } | {
1179
+ type: "select-string";
1180
+ param: string;
1181
+ title: string;
1182
+ description: string;
1183
+ default: string;
1184
+ choices: string[];
1185
+ } | {
1186
+ type: "object-schema";
1187
+ param: string;
1188
+ title: string;
1189
+ description: string;
1190
+ objectSchema?: any;
1191
+ }>;
1192
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
1193
+ };
1194
+ };
1195
+ declare const GPT4oOptions: z.ZodObject<{
1196
+ apiKey: z.ZodString;
1197
+ proxyUrl: z.ZodOptional<z.ZodString>;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ apiKey: string;
1200
+ proxyUrl?: string | undefined;
1201
+ }, {
1202
+ apiKey: string;
1203
+ proxyUrl?: string | undefined;
1204
+ }>;
1205
+ type GPT4oOptionsType = z.infer<typeof GPT4oOptions>;
1206
+ declare class GPT4o extends BaseChatModel {
1207
+ constructor(options: GPT4oOptionsType);
1208
+ }
1209
+
1210
+ declare const OpenAIEmbeddingModelModalities: EmbeddingModelSchemaType["modalities"];
1211
+ declare const OpenAIEmbeddingModelModalitiesEnum: z.ZodEnum<["text", "token"]>;
1212
+
1213
+ declare const OpenAIGetEmbeddingsResponse: z.ZodObject<{
1214
+ object: z.ZodLiteral<"list">;
1215
+ model: z.ZodString;
1216
+ data: z.ZodArray<z.ZodObject<{
1217
+ index: z.ZodNumber;
1218
+ object: z.ZodLiteral<"embedding">;
1219
+ embedding: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodString]>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ object: "embedding";
1222
+ index: number;
1223
+ embedding: string | number[];
1224
+ }, {
1225
+ object: "embedding";
1226
+ index: number;
1227
+ embedding: string | number[];
1228
+ }>, "many">;
1229
+ usage: z.ZodObject<{
1230
+ prompt_tokens: z.ZodNumber;
1231
+ total_tokens: z.ZodNumber;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ prompt_tokens: number;
1234
+ total_tokens: number;
1235
+ }, {
1236
+ prompt_tokens: number;
1237
+ total_tokens: number;
1238
+ }>;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ object: "list";
1241
+ model: string;
1242
+ usage: {
1243
+ prompt_tokens: number;
1244
+ total_tokens: number;
1245
+ };
1246
+ data: {
1247
+ object: "embedding";
1248
+ index: number;
1249
+ embedding: string | number[];
1250
+ }[];
1251
+ }, {
1252
+ object: "list";
1253
+ model: string;
1254
+ usage: {
1255
+ prompt_tokens: number;
1256
+ total_tokens: number;
1257
+ };
1258
+ data: {
1259
+ object: "embedding";
1260
+ index: number;
1261
+ embedding: string | number[];
1262
+ }[];
1263
+ }>;
1264
+
1265
+ declare const BaseEmbeddingModelOptions: z.ZodObject<{
1266
+ apiKey: z.ZodString;
1267
+ proxyUrl: z.ZodOptional<z.ZodString>;
1268
+ }, "strip", z.ZodTypeAny, {
1269
+ apiKey: string;
1270
+ proxyUrl?: string | undefined;
1271
+ }, {
1272
+ apiKey: string;
1273
+ proxyUrl?: string | undefined;
1274
+ }>;
1275
+ type BaseEmbeddingModelOptionsType = z.infer<typeof BaseEmbeddingModelOptions>;
1276
+ declare class BaseEmbeddingModel implements EmbeddingModelV1<EmbeddingModelSchemaType> {
1277
+ readonly version: "v1";
1278
+ modelSchema: EmbeddingModelSchemaType;
1279
+ private readonly apiKey;
1280
+ private readonly baseUrl;
1281
+ constructor(modelSchema: EmbeddingModelSchemaType, options: BaseEmbeddingModelOptionsType);
1282
+ private validateConfig;
1283
+ private validateEmbeddingRequests;
1284
+ getDefaultBaseUrl: () => UrlType;
1285
+ getDefaultHeaders: () => HeadersType;
1286
+ getDefaultParams: () => ParamsType;
1287
+ getTokenCount: (requests: EmbeddingRequestsType) => number;
1288
+ transformConfig: (config: ConfigType, requests?: EmbeddingRequestsType) => ParamsType;
1289
+ transformEmbeddingRequests: (requests: EmbeddingRequestsType) => ParamsType;
1290
+ getGetEmbeddingsUrl: (config: ConfigType, requests: EmbeddingRequestsType) => UrlType;
1291
+ getGetEmbeddingsHeaders: (config: ConfigType, requests: EmbeddingRequestsType) => HeadersType;
1292
+ getGetEmbeddingsData: (config: ConfigType, requests: EmbeddingRequestsType) => ParamsType;
1293
+ transformGetEmbeddingsResponse: (response: any) => EmbeddingsType;
1294
+ }
1295
+
1296
+ declare const TextEmbeddingAda002Schema: {
1297
+ description: string;
1298
+ name: string;
1299
+ modalities: ["text" | "token", ...("text" | "token")[]];
1300
+ maxInputTokens: number;
1301
+ maxOutputTokens: number;
1302
+ config: {
1303
+ def: Record<string, {
1304
+ type: "multi-string";
1305
+ param: string;
1306
+ title: string;
1307
+ description: string;
1308
+ max: number;
1309
+ } | {
1310
+ type: "range";
1311
+ param: string;
1312
+ title: string;
1313
+ description: string;
1314
+ max: number;
1315
+ min: number;
1316
+ step: number;
1317
+ default: number;
1318
+ } | {
1319
+ type: "select-string";
1320
+ param: string;
1321
+ title: string;
1322
+ description: string;
1323
+ default: string;
1324
+ choices: string[];
1325
+ } | {
1326
+ type: "object-schema";
1327
+ param: string;
1328
+ title: string;
1329
+ description: string;
1330
+ objectSchema?: any;
1331
+ }>;
1332
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
1333
+ };
1334
+ };
1335
+ declare const TextEmbeddingAda002Options: z.ZodObject<{
1336
+ apiKey: z.ZodString;
1337
+ proxyUrl: z.ZodOptional<z.ZodString>;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ apiKey: string;
1340
+ proxyUrl?: string | undefined;
1341
+ }, {
1342
+ apiKey: string;
1343
+ proxyUrl?: string | undefined;
1344
+ }>;
1345
+ type TextEmbeddingAda002OptionsType = z.infer<typeof TextEmbeddingAda002Options>;
1346
+ declare class TextEmbeddingAda002 extends BaseEmbeddingModel {
1347
+ constructor(options: TextEmbeddingAda002OptionsType);
1348
+ }
1349
+
1350
+ declare const ProviderLiteral = "openai";
1351
+ declare class OpenAI<O extends Record<string, any> = Record<string, any>> implements ProviderV1<O> {
1352
+ readonly version: "v1";
1353
+ readonly name = "openai";
1354
+ private readonly chatModelFactories;
1355
+ private readonly embeddingModelFactories;
1356
+ chatModelLiterals(): string[];
1357
+ chatModel(name: string, options: O): ChatModelV1;
1358
+ chatModelSchema(name: string): ChatModelSchemaType;
1359
+ chatModelSchemas(): Record<string, ChatModelSchemaType>;
1360
+ embeddingModelLiterals(): string[];
1361
+ embeddingModel(name: string, options: O): EmbeddingModelV1;
1362
+ embeddingModelSchema(name: string): EmbeddingModelSchemaType;
1363
+ embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
1364
+ }
1365
+
1366
+ export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseConfigDef, BaseConfigSchema, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, BaseWordEmbeddingConfigDef, BaseWordEmbeddingConfigSchema, GPT4o, GPT4oOptions, type GPT4oOptionsType, GPT4oSchema, OpenAI, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAICompleteChatResponse, OpenAIConfigs, OpenAIEmbeddingModelModalities, OpenAIEmbeddingModelModalitiesEnum, OpenAIGetEmbeddingsResponse, OpenAIStreamChatResponse, OpenAIToolCallsCompleteChatResponse, OpenAIToolCallsStreamChatResponse, OpenAIWordEmbeddingConfigs, ProviderLiteral, ResponseSchemaConfigDef, ResponseSchemaConfigSchema, TextEmbeddingAda002, TextEmbeddingAda002Options, type TextEmbeddingAda002OptionsType, TextEmbeddingAda002Schema, dimensions, encodingFormat, frequencyPenalty, maxTokens, presencePenalty, responseFormat, seed, stop, temperature, toolChoice, topP };