@adaline/openai 0.9.0 → 0.11.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/index.d.mts CHANGED
@@ -73,7 +73,24 @@ declare const OpenAIChatModelConfigs: {
73
73
  step: number;
74
74
  default: number;
75
75
  };
76
- readonly responseFormat: {
76
+ readonly logProbs: {
77
+ type: "select-boolean";
78
+ param: string;
79
+ title: string;
80
+ description: string;
81
+ default: boolean | null;
82
+ };
83
+ readonly topLogProbs: {
84
+ type: "range";
85
+ param: string;
86
+ title: string;
87
+ description: string;
88
+ max: number;
89
+ min: number;
90
+ step: number;
91
+ default: number;
92
+ };
93
+ readonly toolChoice: {
77
94
  type: "select-string";
78
95
  param: string;
79
96
  title: string;
@@ -81,14 +98,127 @@ declare const OpenAIChatModelConfigs: {
81
98
  default: string;
82
99
  choices: string[];
83
100
  };
84
- readonly logProbs: {
101
+ };
102
+ schema: zod.ZodObject<{
103
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
104
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
105
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
106
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
107
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
108
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
109
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
110
+ logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
111
+ topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
112
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
113
+ }, "strip", zod.ZodTypeAny, {
114
+ temperature?: number | undefined;
115
+ seed?: number | undefined;
116
+ stop?: string[] | undefined;
117
+ maxTokens?: number | undefined;
118
+ topP?: number | undefined;
119
+ frequencyPenalty?: number | undefined;
120
+ presencePenalty?: number | undefined;
121
+ logProbs?: boolean | null | undefined;
122
+ topLogProbs?: number | undefined;
123
+ toolChoice?: string | undefined;
124
+ }, {
125
+ temperature?: number | undefined;
126
+ seed?: number | undefined;
127
+ stop?: string[] | undefined;
128
+ maxTokens?: number | undefined;
129
+ topP?: number | undefined;
130
+ frequencyPenalty?: number | undefined;
131
+ presencePenalty?: number | undefined;
132
+ logProbs?: boolean | null | undefined;
133
+ topLogProbs?: number | undefined;
134
+ toolChoice?: string | undefined;
135
+ }>;
136
+ };
137
+ readonly responseFormat: (maxOutputTokens: number, maxSequences: number) => {
138
+ def: {
139
+ responseFormat: {
140
+ type: "select-string";
141
+ param: string;
142
+ title: string;
143
+ description: string;
144
+ default: string;
145
+ choices: string[];
146
+ };
147
+ temperature: {
148
+ type: "range";
149
+ param: string;
150
+ title: string;
151
+ description: string;
152
+ max: number;
153
+ min: number;
154
+ step: number;
155
+ default: number;
156
+ };
157
+ maxTokens: {
158
+ type: "range";
159
+ param: string;
160
+ title: string;
161
+ description: string;
162
+ max: number;
163
+ min: number;
164
+ step: number;
165
+ default: number;
166
+ };
167
+ stop: {
168
+ type: "multi-string";
169
+ param: string;
170
+ title: string;
171
+ description: string;
172
+ max: number;
173
+ };
174
+ topP: {
175
+ type: "range";
176
+ param: string;
177
+ title: string;
178
+ description: string;
179
+ max: number;
180
+ min: number;
181
+ step: number;
182
+ default: number;
183
+ };
184
+ frequencyPenalty: {
185
+ type: "range";
186
+ param: string;
187
+ title: string;
188
+ description: string;
189
+ max: number;
190
+ min: number;
191
+ step: number;
192
+ default: number;
193
+ };
194
+ presencePenalty: {
195
+ type: "range";
196
+ param: string;
197
+ title: string;
198
+ description: string;
199
+ max: number;
200
+ min: number;
201
+ step: number;
202
+ default: number;
203
+ };
204
+ seed: {
205
+ type: "range";
206
+ param: string;
207
+ title: string;
208
+ description: string;
209
+ max: number;
210
+ min: number;
211
+ step: number;
212
+ default: number;
213
+ };
214
+ logProbs: {
85
215
  type: "select-boolean";
86
216
  param: string;
87
217
  title: string;
88
218
  description: string;
89
219
  default: boolean | null;
90
220
  };
91
- readonly topLogProbs: {
221
+ topLogProbs: {
92
222
  type: "range";
93
223
  param: string;
94
224
  title: string;
@@ -98,7 +228,7 @@ declare const OpenAIChatModelConfigs: {
98
228
  step: number;
99
229
  default: number;
100
230
  };
101
- readonly toolChoice: {
231
+ toolChoice: {
102
232
  type: "select-string";
103
233
  param: string;
104
234
  title: string;
@@ -107,7 +237,7 @@ declare const OpenAIChatModelConfigs: {
107
237
  choices: string[];
108
238
  };
109
239
  };
110
- schema: zod.ZodObject<{
240
+ schema: zod.ZodObject<zod.objectUtil.extendShape<{
111
241
  temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
112
242
  maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
113
243
  stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
@@ -117,9 +247,10 @@ declare const OpenAIChatModelConfigs: {
117
247
  seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
118
248
  logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
119
249
  topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
120
- responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
121
250
  toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
122
- }, "strip", zod.ZodTypeAny, {
251
+ }, {
252
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
253
+ }>, "strip", zod.ZodTypeAny, {
123
254
  temperature?: number | undefined;
124
255
  seed?: number | undefined;
125
256
  stop?: string[] | undefined;
@@ -129,8 +260,8 @@ declare const OpenAIChatModelConfigs: {
129
260
  presencePenalty?: number | undefined;
130
261
  logProbs?: boolean | null | undefined;
131
262
  topLogProbs?: number | undefined;
132
- responseFormat?: string | undefined;
133
263
  toolChoice?: string | undefined;
264
+ responseFormat?: string | undefined;
134
265
  }, {
135
266
  temperature?: number | undefined;
136
267
  seed?: number | undefined;
@@ -141,8 +272,8 @@ declare const OpenAIChatModelConfigs: {
141
272
  presencePenalty?: number | undefined;
142
273
  logProbs?: boolean | null | undefined;
143
274
  topLogProbs?: number | undefined;
144
- responseFormat?: string | undefined;
145
275
  toolChoice?: string | undefined;
276
+ responseFormat?: string | undefined;
146
277
  }>;
147
278
  };
148
279
  readonly responseSchema: (maxOutputTokens: number, maxSequences: number) => {
@@ -265,7 +396,6 @@ declare const OpenAIChatModelConfigs: {
265
396
  seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
266
397
  logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
267
398
  topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
268
- responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
269
399
  toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
270
400
  }, {
271
401
  responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
@@ -287,8 +417,8 @@ declare const OpenAIChatModelConfigs: {
287
417
  presencePenalty?: number | undefined;
288
418
  logProbs?: boolean | null | undefined;
289
419
  topLogProbs?: number | undefined;
290
- responseFormat?: string | undefined;
291
420
  toolChoice?: string | undefined;
421
+ responseFormat?: string | undefined;
292
422
  }, {
293
423
  responseSchema: {
294
424
  [x: string]: any;
@@ -302,15 +432,33 @@ declare const OpenAIChatModelConfigs: {
302
432
  presencePenalty?: number | undefined;
303
433
  logProbs?: boolean | null | undefined;
304
434
  topLogProbs?: number | undefined;
305
- responseFormat?: string | undefined;
306
435
  toolChoice?: string | undefined;
436
+ responseFormat?: string | undefined;
307
437
  }>;
308
438
  };
309
- };
310
- declare const OpenAIEmbeddingModelConfigs: {
311
- readonly base: () => {
439
+ readonly oSeries: (maxOutputTokens: number, maxSequences: number) => {
312
440
  def: {
313
- readonly encodingFormat: {
441
+ temperature: {
442
+ type: "range";
443
+ param: string;
444
+ title: string;
445
+ description: string;
446
+ max: number;
447
+ min: number;
448
+ step: number;
449
+ default: number;
450
+ };
451
+ maxTokens: {
452
+ type: "range";
453
+ param: string;
454
+ title: string;
455
+ description: string;
456
+ max: number;
457
+ min: number;
458
+ step: number;
459
+ default: number;
460
+ };
461
+ responseFormat: {
314
462
  type: "select-string";
315
463
  param: string;
316
464
  title: string;
@@ -318,7 +466,68 @@ declare const OpenAIEmbeddingModelConfigs: {
318
466
  default: string;
319
467
  choices: string[];
320
468
  };
321
- readonly dimensions: {
469
+ responseSchema: {
470
+ type: "object-schema";
471
+ param: string;
472
+ title: string;
473
+ description: string;
474
+ objectSchema?: any;
475
+ };
476
+ stop: {
477
+ type: "multi-string";
478
+ param: string;
479
+ title: string;
480
+ description: string;
481
+ max: number;
482
+ };
483
+ topP: {
484
+ type: "range";
485
+ param: string;
486
+ title: string;
487
+ description: string;
488
+ max: number;
489
+ min: number;
490
+ step: number;
491
+ default: number;
492
+ };
493
+ frequencyPenalty: {
494
+ type: "range";
495
+ param: string;
496
+ title: string;
497
+ description: string;
498
+ max: number;
499
+ min: number;
500
+ step: number;
501
+ default: number;
502
+ };
503
+ presencePenalty: {
504
+ type: "range";
505
+ param: string;
506
+ title: string;
507
+ description: string;
508
+ max: number;
509
+ min: number;
510
+ step: number;
511
+ default: number;
512
+ };
513
+ seed: {
514
+ type: "range";
515
+ param: string;
516
+ title: string;
517
+ description: string;
518
+ max: number;
519
+ min: number;
520
+ step: number;
521
+ default: number;
522
+ };
523
+ logProbs: {
524
+ type: "select-boolean";
525
+ param: string;
526
+ title: string;
527
+ description: string;
528
+ default: boolean | null;
529
+ };
530
+ topLogProbs: {
322
531
  type: "range";
323
532
  param: string;
324
533
  title: string;
@@ -328,15 +537,119 @@ declare const OpenAIEmbeddingModelConfigs: {
328
537
  step: number;
329
538
  default: number;
330
539
  };
540
+ toolChoice: {
541
+ type: "select-string";
542
+ param: string;
543
+ title: string;
544
+ description: string;
545
+ default: string;
546
+ choices: string[];
547
+ };
331
548
  };
332
- schema: zod.ZodObject<{
333
- encodingFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
334
- dimensions: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
335
- }, "strip", zod.ZodTypeAny, {
336
- dimensions?: number | undefined;
337
- encodingFormat?: string | undefined;
338
- }, {
339
- dimensions?: number | undefined;
549
+ schema: zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
550
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
551
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
552
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
553
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
554
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
555
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
556
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
557
+ logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
558
+ topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
559
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
560
+ }, {
561
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
562
+ responseSchema: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
563
+ [x: string]: any;
564
+ }, {
565
+ [x: string]: any;
566
+ }>;
567
+ }>, {
568
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
569
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
570
+ }>, "strip", zod.ZodTypeAny, {
571
+ responseSchema: {
572
+ [x: string]: any;
573
+ };
574
+ temperature?: number | undefined;
575
+ seed?: number | undefined;
576
+ stop?: string[] | undefined;
577
+ maxTokens?: number | undefined;
578
+ topP?: number | undefined;
579
+ frequencyPenalty?: number | undefined;
580
+ presencePenalty?: number | undefined;
581
+ logProbs?: boolean | null | undefined;
582
+ topLogProbs?: number | undefined;
583
+ toolChoice?: string | undefined;
584
+ responseFormat?: string | undefined;
585
+ }, {
586
+ responseSchema: {
587
+ [x: string]: any;
588
+ };
589
+ temperature?: number | undefined;
590
+ seed?: number | undefined;
591
+ stop?: string[] | undefined;
592
+ maxTokens?: number | undefined;
593
+ topP?: number | undefined;
594
+ frequencyPenalty?: number | undefined;
595
+ presencePenalty?: number | undefined;
596
+ logProbs?: boolean | null | undefined;
597
+ topLogProbs?: number | undefined;
598
+ toolChoice?: string | undefined;
599
+ responseFormat?: string | undefined;
600
+ }>;
601
+ };
602
+ };
603
+ declare const OpenAIEmbeddingModelConfigs: {
604
+ readonly base: () => {
605
+ def: {
606
+ readonly encodingFormat: {
607
+ type: "select-string";
608
+ param: string;
609
+ title: string;
610
+ description: string;
611
+ default: string;
612
+ choices: string[];
613
+ };
614
+ };
615
+ schema: zod.ZodObject<{
616
+ encodingFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
617
+ }, "strip", zod.ZodTypeAny, {
618
+ encodingFormat?: string | undefined;
619
+ }, {
620
+ encodingFormat?: string | undefined;
621
+ }>;
622
+ };
623
+ readonly dimensions: (maxDimensions: number) => {
624
+ def: {
625
+ readonly dimensions: {
626
+ type: "range";
627
+ param: string;
628
+ title: string;
629
+ description: string;
630
+ max: number;
631
+ min: number;
632
+ step: number;
633
+ default: number;
634
+ };
635
+ readonly encodingFormat: {
636
+ type: "select-string";
637
+ param: string;
638
+ title: string;
639
+ description: string;
640
+ default: string;
641
+ choices: string[];
642
+ };
643
+ };
644
+ schema: zod.ZodObject<zod.objectUtil.extendShape<{
645
+ encodingFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
646
+ }, {
647
+ dimensions: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
648
+ }>, "strip", zod.ZodTypeAny, {
649
+ dimensions?: number | undefined;
650
+ encodingFormat?: string | undefined;
651
+ }, {
652
+ dimensions?: number | undefined;
340
653
  encodingFormat?: string | undefined;
341
654
  }>;
342
655
  };
@@ -352,7 +665,6 @@ declare const ChatModelBaseConfigSchema: (maxOutputTokens: number, maxSequences:
352
665
  seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
353
666
  logProbs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
354
667
  topLogProbs: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
355
- responseFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
356
668
  toolChoice: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
357
669
  }, "strip", z.ZodTypeAny, {
358
670
  temperature?: number | undefined;
@@ -364,7 +676,6 @@ declare const ChatModelBaseConfigSchema: (maxOutputTokens: number, maxSequences:
364
676
  presencePenalty?: number | undefined;
365
677
  logProbs?: boolean | null | undefined;
366
678
  topLogProbs?: number | undefined;
367
- responseFormat?: string | undefined;
368
679
  toolChoice?: string | undefined;
369
680
  }, {
370
681
  temperature?: number | undefined;
@@ -376,7 +687,6 @@ declare const ChatModelBaseConfigSchema: (maxOutputTokens: number, maxSequences:
376
687
  presencePenalty?: number | undefined;
377
688
  logProbs?: boolean | null | undefined;
378
689
  topLogProbs?: number | undefined;
379
- responseFormat?: string | undefined;
380
690
  toolChoice?: string | undefined;
381
691
  }>;
382
692
  declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: number) => {
@@ -447,14 +757,6 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
447
757
  step: number;
448
758
  default: number;
449
759
  };
450
- readonly responseFormat: {
451
- type: "select-string";
452
- param: string;
453
- title: string;
454
- description: string;
455
- default: string;
456
- choices: string[];
457
- };
458
760
  readonly logProbs: {
459
761
  type: "select-boolean";
460
762
  param: string;
@@ -593,7 +895,7 @@ declare const topLogProbs: {
593
895
  };
594
896
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
595
897
  };
596
- declare const responseFormat: {
898
+ declare const toolChoice: {
597
899
  def: {
598
900
  type: "select-string";
599
901
  param: string;
@@ -604,8 +906,101 @@ declare const responseFormat: {
604
906
  };
605
907
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
606
908
  };
607
- declare const toolChoice: {
608
- def: {
909
+
910
+ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSequences: number) => {
911
+ responseFormat: {
912
+ type: "select-string";
913
+ param: string;
914
+ title: string;
915
+ description: string;
916
+ default: string;
917
+ choices: string[];
918
+ };
919
+ temperature: {
920
+ type: "range";
921
+ param: string;
922
+ title: string;
923
+ description: string;
924
+ max: number;
925
+ min: number;
926
+ step: number;
927
+ default: number;
928
+ };
929
+ maxTokens: {
930
+ type: "range";
931
+ param: string;
932
+ title: string;
933
+ description: string;
934
+ max: number;
935
+ min: number;
936
+ step: number;
937
+ default: number;
938
+ };
939
+ stop: {
940
+ type: "multi-string";
941
+ param: string;
942
+ title: string;
943
+ description: string;
944
+ max: number;
945
+ };
946
+ topP: {
947
+ type: "range";
948
+ param: string;
949
+ title: string;
950
+ description: string;
951
+ max: number;
952
+ min: number;
953
+ step: number;
954
+ default: number;
955
+ };
956
+ frequencyPenalty: {
957
+ type: "range";
958
+ param: string;
959
+ title: string;
960
+ description: string;
961
+ max: number;
962
+ min: number;
963
+ step: number;
964
+ default: number;
965
+ };
966
+ presencePenalty: {
967
+ type: "range";
968
+ param: string;
969
+ title: string;
970
+ description: string;
971
+ max: number;
972
+ min: number;
973
+ step: number;
974
+ default: number;
975
+ };
976
+ seed: {
977
+ type: "range";
978
+ param: string;
979
+ title: string;
980
+ description: string;
981
+ max: number;
982
+ min: number;
983
+ step: number;
984
+ default: number;
985
+ };
986
+ logProbs: {
987
+ type: "select-boolean";
988
+ param: string;
989
+ title: string;
990
+ description: string;
991
+ default: boolean | null;
992
+ };
993
+ topLogProbs: {
994
+ type: "range";
995
+ param: string;
996
+ title: string;
997
+ description: string;
998
+ max: number;
999
+ min: number;
1000
+ step: number;
1001
+ default: number;
1002
+ };
1003
+ toolChoice: {
609
1004
  type: "select-string";
610
1005
  param: string;
611
1006
  title: string;
@@ -613,8 +1008,45 @@ declare const toolChoice: {
613
1008
  default: string;
614
1009
  choices: string[];
615
1010
  };
616
- schema: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
617
1011
  };
1012
+ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<{
1013
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1014
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1015
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
1016
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1017
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1018
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1019
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
1020
+ logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
1021
+ topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1022
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
1023
+ }, {
1024
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
1025
+ }>, "strip", zod.ZodTypeAny, {
1026
+ temperature?: number | undefined;
1027
+ seed?: number | undefined;
1028
+ stop?: string[] | undefined;
1029
+ maxTokens?: number | undefined;
1030
+ topP?: number | undefined;
1031
+ frequencyPenalty?: number | undefined;
1032
+ presencePenalty?: number | undefined;
1033
+ logProbs?: boolean | null | undefined;
1034
+ topLogProbs?: number | undefined;
1035
+ toolChoice?: string | undefined;
1036
+ responseFormat?: string | undefined;
1037
+ }, {
1038
+ temperature?: number | undefined;
1039
+ seed?: number | undefined;
1040
+ stop?: string[] | undefined;
1041
+ maxTokens?: number | undefined;
1042
+ topP?: number | undefined;
1043
+ frequencyPenalty?: number | undefined;
1044
+ presencePenalty?: number | undefined;
1045
+ logProbs?: boolean | null | undefined;
1046
+ topLogProbs?: number | undefined;
1047
+ toolChoice?: string | undefined;
1048
+ responseFormat?: string | undefined;
1049
+ }>;
618
1050
 
619
1051
  declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSequences: number) => {
620
1052
  responseFormat: {
@@ -735,7 +1167,6 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
735
1167
  seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
736
1168
  logProbs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
737
1169
  topLogProbs: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
738
- responseFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
739
1170
  toolChoice: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
740
1171
  }, {
741
1172
  responseFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
@@ -757,8 +1188,8 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
757
1188
  presencePenalty?: number | undefined;
758
1189
  logProbs?: boolean | null | undefined;
759
1190
  topLogProbs?: number | undefined;
760
- responseFormat?: string | undefined;
761
1191
  toolChoice?: string | undefined;
1192
+ responseFormat?: string | undefined;
762
1193
  }, {
763
1194
  responseSchema: {
764
1195
  [x: string]: any;
@@ -772,30 +1203,101 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
772
1203
  presencePenalty?: number | undefined;
773
1204
  logProbs?: boolean | null | undefined;
774
1205
  topLogProbs?: number | undefined;
775
- responseFormat?: string | undefined;
776
1206
  toolChoice?: string | undefined;
1207
+ responseFormat?: string | undefined;
777
1208
  }>;
778
1209
 
779
- declare const EmbeddingModelBaseConfigSchema: () => z.ZodObject<{
780
- encodingFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
781
- dimensions: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
782
- }, "strip", z.ZodTypeAny, {
783
- dimensions?: number | undefined;
784
- encodingFormat?: string | undefined;
785
- }, {
786
- dimensions?: number | undefined;
787
- encodingFormat?: string | undefined;
788
- }>;
789
- declare const EmbeddingModelBaseConfigDef: () => {
790
- readonly encodingFormat: {
791
- type: "select-string";
1210
+ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences: number) => {
1211
+ temperature: {
1212
+ type: "range";
792
1213
  param: string;
793
1214
  title: string;
794
1215
  description: string;
795
- default: string;
796
- choices: string[];
1216
+ max: number;
1217
+ min: number;
1218
+ step: number;
1219
+ default: number;
797
1220
  };
798
- readonly dimensions: {
1221
+ maxTokens: {
1222
+ type: "range";
1223
+ param: string;
1224
+ title: string;
1225
+ description: string;
1226
+ max: number;
1227
+ min: number;
1228
+ step: number;
1229
+ default: number;
1230
+ };
1231
+ responseFormat: {
1232
+ type: "select-string";
1233
+ param: string;
1234
+ title: string;
1235
+ description: string;
1236
+ default: string;
1237
+ choices: string[];
1238
+ };
1239
+ responseSchema: {
1240
+ type: "object-schema";
1241
+ param: string;
1242
+ title: string;
1243
+ description: string;
1244
+ objectSchema?: any;
1245
+ };
1246
+ stop: {
1247
+ type: "multi-string";
1248
+ param: string;
1249
+ title: string;
1250
+ description: string;
1251
+ max: number;
1252
+ };
1253
+ topP: {
1254
+ type: "range";
1255
+ param: string;
1256
+ title: string;
1257
+ description: string;
1258
+ max: number;
1259
+ min: number;
1260
+ step: number;
1261
+ default: number;
1262
+ };
1263
+ frequencyPenalty: {
1264
+ type: "range";
1265
+ param: string;
1266
+ title: string;
1267
+ description: string;
1268
+ max: number;
1269
+ min: number;
1270
+ step: number;
1271
+ default: number;
1272
+ };
1273
+ presencePenalty: {
1274
+ type: "range";
1275
+ param: string;
1276
+ title: string;
1277
+ description: string;
1278
+ max: number;
1279
+ min: number;
1280
+ step: number;
1281
+ default: number;
1282
+ };
1283
+ seed: {
1284
+ type: "range";
1285
+ param: string;
1286
+ title: string;
1287
+ description: string;
1288
+ max: number;
1289
+ min: number;
1290
+ step: number;
1291
+ default: number;
1292
+ };
1293
+ logProbs: {
1294
+ type: "select-boolean";
1295
+ param: string;
1296
+ title: string;
1297
+ description: string;
1298
+ default: boolean | null;
1299
+ };
1300
+ topLogProbs: {
799
1301
  type: "range";
800
1302
  param: string;
801
1303
  title: string;
@@ -805,6 +1307,84 @@ declare const EmbeddingModelBaseConfigDef: () => {
805
1307
  step: number;
806
1308
  default: number;
807
1309
  };
1310
+ toolChoice: {
1311
+ type: "select-string";
1312
+ param: string;
1313
+ title: string;
1314
+ description: string;
1315
+ default: string;
1316
+ choices: string[];
1317
+ };
1318
+ };
1319
+ declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
1320
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1321
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1322
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
1323
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1324
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1325
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1326
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
1327
+ logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
1328
+ topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1329
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
1330
+ }, {
1331
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
1332
+ responseSchema: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
1333
+ [x: string]: any;
1334
+ }, {
1335
+ [x: string]: any;
1336
+ }>;
1337
+ }>, {
1338
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1339
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1340
+ }>, "strip", zod.ZodTypeAny, {
1341
+ responseSchema: {
1342
+ [x: string]: any;
1343
+ };
1344
+ temperature?: number | undefined;
1345
+ seed?: number | undefined;
1346
+ stop?: string[] | undefined;
1347
+ maxTokens?: number | undefined;
1348
+ topP?: number | undefined;
1349
+ frequencyPenalty?: number | undefined;
1350
+ presencePenalty?: number | undefined;
1351
+ logProbs?: boolean | null | undefined;
1352
+ topLogProbs?: number | undefined;
1353
+ toolChoice?: string | undefined;
1354
+ responseFormat?: string | undefined;
1355
+ }, {
1356
+ responseSchema: {
1357
+ [x: string]: any;
1358
+ };
1359
+ temperature?: number | undefined;
1360
+ seed?: number | undefined;
1361
+ stop?: string[] | undefined;
1362
+ maxTokens?: number | undefined;
1363
+ topP?: number | undefined;
1364
+ frequencyPenalty?: number | undefined;
1365
+ presencePenalty?: number | undefined;
1366
+ logProbs?: boolean | null | undefined;
1367
+ topLogProbs?: number | undefined;
1368
+ toolChoice?: string | undefined;
1369
+ responseFormat?: string | undefined;
1370
+ }>;
1371
+
1372
+ declare const EmbeddingModelBaseConfigSchema: () => z.ZodObject<{
1373
+ encodingFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ encodingFormat?: string | undefined;
1376
+ }, {
1377
+ encodingFormat?: string | undefined;
1378
+ }>;
1379
+ declare const EmbeddingModelBaseConfigDef: () => {
1380
+ readonly encodingFormat: {
1381
+ type: "select-string";
1382
+ param: string;
1383
+ title: string;
1384
+ description: string;
1385
+ default: string;
1386
+ choices: string[];
1387
+ };
808
1388
  };
809
1389
 
810
1390
  declare const encodingFormat: {
@@ -818,7 +1398,7 @@ declare const encodingFormat: {
818
1398
  };
819
1399
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodEnum<[string, ...string[]]>>>;
820
1400
  };
821
- declare const dimensions: {
1401
+ declare const dimensions: (maxDimensions: number) => {
822
1402
  def: {
823
1403
  type: "range";
824
1404
  param: string;
@@ -832,6 +1412,38 @@ declare const dimensions: {
832
1412
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
833
1413
  };
834
1414
 
1415
+ declare const EmbeddingModelDimensionsConfigSchema: (maxDimensions: number) => z.ZodObject<z.objectUtil.extendShape<{
1416
+ encodingFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
1417
+ }, {
1418
+ dimensions: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1419
+ }>, "strip", z.ZodTypeAny, {
1420
+ dimensions?: number | undefined;
1421
+ encodingFormat?: string | undefined;
1422
+ }, {
1423
+ dimensions?: number | undefined;
1424
+ encodingFormat?: string | undefined;
1425
+ }>;
1426
+ declare const EmbeddingModelDimensionsConfigDef: (maxDimensions: number) => {
1427
+ readonly dimensions: {
1428
+ type: "range";
1429
+ param: string;
1430
+ title: string;
1431
+ description: string;
1432
+ max: number;
1433
+ min: number;
1434
+ step: number;
1435
+ default: number;
1436
+ };
1437
+ readonly encodingFormat: {
1438
+ type: "select-string";
1439
+ param: string;
1440
+ title: string;
1441
+ description: string;
1442
+ default: string;
1443
+ choices: string[];
1444
+ };
1445
+ };
1446
+
835
1447
  declare const OpenAIChatModelRoles: z.ZodEnum<["system", "user", "assistant", "tool"]>;
836
1448
  declare const OpenAIChatModelRolesMap: {
837
1449
  readonly system: "system";
@@ -839,9 +1451,18 @@ declare const OpenAIChatModelRolesMap: {
839
1451
  readonly assistant: "assistant";
840
1452
  readonly tool: "tool";
841
1453
  };
1454
+ declare const OpenAIChatModelOSSeriesRoles: z.ZodEnum<["user", "assistant"]>;
1455
+ declare const OpenAIChatModelOSSeriesRolesMap: {
1456
+ readonly user: "user";
1457
+ readonly assistant: "assistant";
1458
+ };
842
1459
 
843
1460
  declare const OpenAIChatModelModalities: ChatModelSchemaType["modalities"];
844
1461
  declare const OpenAIChatModelModalitiesEnum: z.ZodEnum<["text", "image", "tool-call", "tool-response"]>;
1462
+ declare const OpenAIChatModelTextModalities: ChatModelSchemaType["modalities"];
1463
+ declare const OpenAIChatModelTextModalitiesEnum: z.ZodEnum<["text"]>;
1464
+ declare const OpenAIChatModelTextToolModalities: ChatModelSchemaType["modalities"];
1465
+ declare const OpenAIChatModelTextToolModalitiesEnum: z.ZodEnum<["text", "tool-call", "tool-response"]>;
845
1466
 
846
1467
  declare const OpenAIToolCallsCompleteChatResponse: z.ZodArray<z.ZodObject<{
847
1468
  id: z.ZodString;
@@ -876,7 +1497,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
876
1497
  object: z.ZodLiteral<"chat.completion">;
877
1498
  created: z.ZodNumber;
878
1499
  model: z.ZodString;
879
- system_fingerprint: z.ZodString;
1500
+ system_fingerprint: z.ZodNullable<z.ZodString>;
880
1501
  choices: z.ZodArray<z.ZodObject<{
881
1502
  index: z.ZodNumber;
882
1503
  message: z.ZodObject<{
@@ -936,7 +1557,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
936
1557
  id: string;
937
1558
  }[] | undefined;
938
1559
  }>;
939
- logprobs: z.ZodNullable<z.ZodObject<{
1560
+ logprobs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
940
1561
  content: z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
941
1562
  token: z.ZodString;
942
1563
  logprob: z.ZodNumber;
@@ -1053,10 +1674,25 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1053
1674
  logprob: number;
1054
1675
  bytes: number[] | null;
1055
1676
  }[] | null;
1056
- }>>;
1677
+ }>>>;
1057
1678
  finish_reason: z.ZodString;
1058
1679
  }, "strip", z.ZodTypeAny, {
1059
- logprobs: {
1680
+ message: {
1681
+ role: string;
1682
+ content?: string | null | undefined;
1683
+ refusal?: string | null | undefined;
1684
+ tool_calls?: {
1685
+ function: {
1686
+ name: string;
1687
+ arguments: string;
1688
+ };
1689
+ type: "function";
1690
+ id: string;
1691
+ }[] | undefined;
1692
+ };
1693
+ index: number;
1694
+ finish_reason: string;
1695
+ logprobs?: {
1060
1696
  content: {
1061
1697
  top_logprobs: {
1062
1698
  token: string;
@@ -1077,7 +1713,8 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1077
1713
  logprob: number;
1078
1714
  bytes: number[] | null;
1079
1715
  }[] | null;
1080
- } | null;
1716
+ } | null | undefined;
1717
+ }, {
1081
1718
  message: {
1082
1719
  role: string;
1083
1720
  content?: string | null | undefined;
@@ -1093,8 +1730,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1093
1730
  };
1094
1731
  index: number;
1095
1732
  finish_reason: string;
1096
- }, {
1097
- logprobs: {
1733
+ logprobs?: {
1098
1734
  content: {
1099
1735
  top_logprobs: {
1100
1736
  token: string;
@@ -1115,22 +1751,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1115
1751
  logprob: number;
1116
1752
  bytes: number[] | null;
1117
1753
  }[] | null;
1118
- } | null;
1119
- message: {
1120
- role: string;
1121
- content?: string | null | undefined;
1122
- refusal?: string | null | undefined;
1123
- tool_calls?: {
1124
- function: {
1125
- name: string;
1126
- arguments: string;
1127
- };
1128
- type: "function";
1129
- id: string;
1130
- }[] | undefined;
1131
- };
1132
- index: number;
1133
- finish_reason: string;
1754
+ } | null | undefined;
1134
1755
  }>, "many">;
1135
1756
  usage: z.ZodObject<{
1136
1757
  prompt_tokens: z.ZodNumber;
@@ -1148,28 +1769,6 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1148
1769
  }, "strip", z.ZodTypeAny, {
1149
1770
  object: "chat.completion";
1150
1771
  choices: {
1151
- logprobs: {
1152
- content: {
1153
- top_logprobs: {
1154
- token: string;
1155
- logprob: number;
1156
- bytes: number[] | null;
1157
- }[];
1158
- token: string;
1159
- logprob: number;
1160
- bytes: number[] | null;
1161
- }[] | null;
1162
- refusal: {
1163
- top_logprobs: {
1164
- token: string;
1165
- logprob: number;
1166
- bytes: number[] | null;
1167
- }[];
1168
- token: string;
1169
- logprob: number;
1170
- bytes: number[] | null;
1171
- }[] | null;
1172
- } | null;
1173
1772
  message: {
1174
1773
  role: string;
1175
1774
  content?: string | null | undefined;
@@ -1185,20 +1784,7 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1185
1784
  };
1186
1785
  index: number;
1187
1786
  finish_reason: string;
1188
- }[];
1189
- id: string;
1190
- created: number;
1191
- model: string;
1192
- system_fingerprint: string;
1193
- usage: {
1194
- prompt_tokens: number;
1195
- completion_tokens: number;
1196
- total_tokens: number;
1197
- };
1198
- }, {
1199
- object: "chat.completion";
1200
- choices: {
1201
- logprobs: {
1787
+ logprobs?: {
1202
1788
  content: {
1203
1789
  top_logprobs: {
1204
1790
  token: string;
@@ -1219,8 +1805,21 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1219
1805
  logprob: number;
1220
1806
  bytes: number[] | null;
1221
1807
  }[] | null;
1222
- } | null;
1223
- message: {
1808
+ } | null | undefined;
1809
+ }[];
1810
+ id: string;
1811
+ created: number;
1812
+ model: string;
1813
+ system_fingerprint: string | null;
1814
+ usage: {
1815
+ prompt_tokens: number;
1816
+ completion_tokens: number;
1817
+ total_tokens: number;
1818
+ };
1819
+ }, {
1820
+ object: "chat.completion";
1821
+ choices: {
1822
+ message: {
1224
1823
  role: string;
1225
1824
  content?: string | null | undefined;
1226
1825
  refusal?: string | null | undefined;
@@ -1235,11 +1834,33 @@ declare const OpenAICompleteChatResponse: z.ZodObject<{
1235
1834
  };
1236
1835
  index: number;
1237
1836
  finish_reason: string;
1837
+ logprobs?: {
1838
+ content: {
1839
+ top_logprobs: {
1840
+ token: string;
1841
+ logprob: number;
1842
+ bytes: number[] | null;
1843
+ }[];
1844
+ token: string;
1845
+ logprob: number;
1846
+ bytes: number[] | null;
1847
+ }[] | null;
1848
+ refusal: {
1849
+ top_logprobs: {
1850
+ token: string;
1851
+ logprob: number;
1852
+ bytes: number[] | null;
1853
+ }[];
1854
+ token: string;
1855
+ logprob: number;
1856
+ bytes: number[] | null;
1857
+ }[] | null;
1858
+ } | null | undefined;
1238
1859
  }[];
1239
1860
  id: string;
1240
1861
  created: number;
1241
1862
  model: string;
1242
- system_fingerprint: string;
1863
+ system_fingerprint: string | null;
1243
1864
  usage: {
1244
1865
  prompt_tokens: number;
1245
1866
  completion_tokens: number;
@@ -1912,7 +2533,7 @@ declare const OpenAIChatRequestUserMessage: z.ZodObject<{
1912
2533
  role: "user";
1913
2534
  }>;
1914
2535
  type OpenAIChatRequestUserMessageType = z.infer<typeof OpenAIChatRequestUserMessage>;
1915
- declare const OpenAIChatRequestAssistantMessage: z.ZodEffects<z.ZodObject<{
2536
+ declare const OpenAIChatRequestAssistantMessage: z.ZodObject<{
1916
2537
  role: z.ZodLiteral<"assistant">;
1917
2538
  content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1918
2539
  text: z.ZodString;
@@ -1980,34 +2601,6 @@ declare const OpenAIChatRequestAssistantMessage: z.ZodEffects<z.ZodObject<{
1980
2601
  type: "function";
1981
2602
  id: string;
1982
2603
  }[] | undefined;
1983
- }>, {
1984
- role: "assistant";
1985
- content?: string | {
1986
- type: "text";
1987
- text: string;
1988
- }[] | undefined;
1989
- tool_calls?: {
1990
- function: {
1991
- name: string;
1992
- arguments: string;
1993
- };
1994
- type: "function";
1995
- id: string;
1996
- }[] | undefined;
1997
- }, {
1998
- role: "assistant";
1999
- content?: string | {
2000
- type: "text";
2001
- text: string;
2002
- }[] | undefined;
2003
- tool_calls?: {
2004
- function: {
2005
- name: string;
2006
- arguments: string;
2007
- };
2008
- type: "function";
2009
- id: string;
2010
- }[] | undefined;
2011
2604
  }>;
2012
2605
  type OpenAIChatRequestAssistantMessageType = z.infer<typeof OpenAIChatRequestAssistantMessage>;
2013
2606
  declare const OpenAIChatRequestToolMessage: z.ZodObject<{
@@ -2108,7 +2701,7 @@ declare const OpenAIChatRequestMessage: z.ZodUnion<[z.ZodObject<{
2108
2701
  };
2109
2702
  })[];
2110
2703
  role: "user";
2111
- }>, z.ZodEffects<z.ZodObject<{
2704
+ }>, z.ZodObject<{
2112
2705
  role: z.ZodLiteral<"assistant">;
2113
2706
  content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
2114
2707
  text: z.ZodString;
@@ -2176,34 +2769,6 @@ declare const OpenAIChatRequestMessage: z.ZodUnion<[z.ZodObject<{
2176
2769
  type: "function";
2177
2770
  id: string;
2178
2771
  }[] | undefined;
2179
- }>, {
2180
- role: "assistant";
2181
- content?: string | {
2182
- type: "text";
2183
- text: string;
2184
- }[] | undefined;
2185
- tool_calls?: {
2186
- function: {
2187
- name: string;
2188
- arguments: string;
2189
- };
2190
- type: "function";
2191
- id: string;
2192
- }[] | undefined;
2193
- }, {
2194
- role: "assistant";
2195
- content?: string | {
2196
- type: "text";
2197
- text: string;
2198
- }[] | undefined;
2199
- tool_calls?: {
2200
- function: {
2201
- name: string;
2202
- arguments: string;
2203
- };
2204
- type: "function";
2205
- id: string;
2206
- }[] | undefined;
2207
2772
  }>, z.ZodObject<{
2208
2773
  role: z.ZodLiteral<"tool">;
2209
2774
  tool_call_id: z.ZodString;
@@ -2218,7 +2783,7 @@ declare const OpenAIChatRequestMessage: z.ZodUnion<[z.ZodObject<{
2218
2783
  tool_call_id: string;
2219
2784
  }>]>;
2220
2785
  type OpenAIChatRequestMessageType = z.infer<typeof OpenAIChatRequestMessage>;
2221
- declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2786
+ declare const OpenAIChatRequest: z.ZodObject<{
2222
2787
  model: z.ZodOptional<z.ZodString>;
2223
2788
  messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2224
2789
  role: z.ZodLiteral<"system">;
@@ -2304,7 +2869,7 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2304
2869
  };
2305
2870
  })[];
2306
2871
  role: "user";
2307
- }>, z.ZodEffects<z.ZodObject<{
2872
+ }>, z.ZodObject<{
2308
2873
  role: z.ZodLiteral<"assistant">;
2309
2874
  content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
2310
2875
  text: z.ZodString;
@@ -2372,34 +2937,6 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2372
2937
  type: "function";
2373
2938
  id: string;
2374
2939
  }[] | undefined;
2375
- }>, {
2376
- role: "assistant";
2377
- content?: string | {
2378
- type: "text";
2379
- text: string;
2380
- }[] | undefined;
2381
- tool_calls?: {
2382
- function: {
2383
- name: string;
2384
- arguments: string;
2385
- };
2386
- type: "function";
2387
- id: string;
2388
- }[] | undefined;
2389
- }, {
2390
- role: "assistant";
2391
- content?: string | {
2392
- type: "text";
2393
- text: string;
2394
- }[] | undefined;
2395
- tool_calls?: {
2396
- function: {
2397
- name: string;
2398
- arguments: string;
2399
- };
2400
- type: "function";
2401
- id: string;
2402
- }[] | undefined;
2403
2940
  }>, z.ZodObject<{
2404
2941
  role: z.ZodLiteral<"tool">;
2405
2942
  tool_call_id: z.ZodString;
@@ -2563,6 +3100,14 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2563
3100
  seed?: number | null | undefined;
2564
3101
  logprobs?: boolean | null | undefined;
2565
3102
  top_logprobs?: number | null | undefined;
3103
+ tool_choice?: "auto" | "required" | "none" | {
3104
+ function: {
3105
+ name: string;
3106
+ };
3107
+ type: "function";
3108
+ } | undefined;
3109
+ max_tokens?: number | null | undefined;
3110
+ stop?: string | string[] | null | undefined;
2566
3111
  response_format?: {
2567
3112
  type: "text" | "json_object";
2568
3113
  } | {
@@ -2574,14 +3119,6 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2574
3119
  schema?: any;
2575
3120
  };
2576
3121
  } | undefined;
2577
- tool_choice?: "auto" | "required" | "none" | {
2578
- function: {
2579
- name: string;
2580
- };
2581
- type: "function";
2582
- } | undefined;
2583
- max_tokens?: number | null | undefined;
2584
- stop?: string | string[] | null | undefined;
2585
3122
  model?: string | undefined;
2586
3123
  tools?: {
2587
3124
  function: {
@@ -2637,6 +3174,14 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2637
3174
  seed?: number | null | undefined;
2638
3175
  logprobs?: boolean | null | undefined;
2639
3176
  top_logprobs?: number | null | undefined;
3177
+ tool_choice?: "auto" | "required" | "none" | {
3178
+ function: {
3179
+ name: string;
3180
+ };
3181
+ type: "function";
3182
+ } | undefined;
3183
+ max_tokens?: number | null | undefined;
3184
+ stop?: string | string[] | null | undefined;
2640
3185
  response_format?: {
2641
3186
  type: "text" | "json_object";
2642
3187
  } | {
@@ -2648,14 +3193,6 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2648
3193
  schema?: any;
2649
3194
  };
2650
3195
  } | undefined;
2651
- tool_choice?: "auto" | "required" | "none" | {
2652
- function: {
2653
- name: string;
2654
- };
2655
- type: "function";
2656
- } | undefined;
2657
- max_tokens?: number | null | undefined;
2658
- stop?: string | string[] | null | undefined;
2659
3196
  model?: string | undefined;
2660
3197
  tools?: {
2661
3198
  function: {
@@ -2666,14 +3203,72 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2666
3203
  };
2667
3204
  type: "function";
2668
3205
  }[] | undefined;
2669
- }>, {
2670
- messages: ({
3206
+ }>;
3207
+ type OpenAIChatRequestType = z.infer<typeof OpenAIChatRequest>;
3208
+
3209
+ declare const OpenAIChatOSeriesRequest: z.ZodObject<z.objectUtil.extendShape<Omit<{
3210
+ model: z.ZodOptional<z.ZodString>;
3211
+ messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3212
+ role: z.ZodLiteral<"system">;
3213
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
3214
+ text: z.ZodString;
3215
+ type: z.ZodLiteral<"text">;
3216
+ }, "strip", z.ZodTypeAny, {
3217
+ type: "text";
3218
+ text: string;
3219
+ }, {
3220
+ type: "text";
3221
+ text: string;
3222
+ }>, "many">]>;
3223
+ }, "strip", z.ZodTypeAny, {
2671
3224
  content: string | {
2672
3225
  type: "text";
2673
3226
  text: string;
2674
3227
  }[];
2675
3228
  role: "system";
2676
- } | {
3229
+ }, {
3230
+ content: string | {
3231
+ type: "text";
3232
+ text: string;
3233
+ }[];
3234
+ role: "system";
3235
+ }>, z.ZodObject<{
3236
+ role: z.ZodLiteral<"user">;
3237
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
3238
+ text: z.ZodString;
3239
+ type: z.ZodLiteral<"text">;
3240
+ }, "strip", z.ZodTypeAny, {
3241
+ type: "text";
3242
+ text: string;
3243
+ }, {
3244
+ type: "text";
3245
+ text: string;
3246
+ }>, z.ZodObject<{
3247
+ type: z.ZodLiteral<"image_url">;
3248
+ image_url: z.ZodObject<{
3249
+ url: z.ZodString;
3250
+ detail: z.ZodOptional<z.ZodEnum<["low", "high", "auto"]>>;
3251
+ }, "strip", z.ZodTypeAny, {
3252
+ url: string;
3253
+ detail?: "auto" | "low" | "high" | undefined;
3254
+ }, {
3255
+ url: string;
3256
+ detail?: "auto" | "low" | "high" | undefined;
3257
+ }>;
3258
+ }, "strip", z.ZodTypeAny, {
3259
+ type: "image_url";
3260
+ image_url: {
3261
+ url: string;
3262
+ detail?: "auto" | "low" | "high" | undefined;
3263
+ };
3264
+ }, {
3265
+ type: "image_url";
3266
+ image_url: {
3267
+ url: string;
3268
+ detail?: "auto" | "low" | "high" | undefined;
3269
+ };
3270
+ }>]>, "many">]>;
3271
+ }, "strip", z.ZodTypeAny, {
2677
3272
  content: string | ({
2678
3273
  type: "text";
2679
3274
  text: string;
@@ -2685,13 +3280,232 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2685
3280
  };
2686
3281
  })[];
2687
3282
  role: "user";
2688
- } | {
2689
- role: "assistant";
2690
- content?: string | {
3283
+ }, {
3284
+ content: string | ({
2691
3285
  type: "text";
2692
3286
  text: string;
2693
- }[] | undefined;
2694
- tool_calls?: {
3287
+ } | {
3288
+ type: "image_url";
3289
+ image_url: {
3290
+ url: string;
3291
+ detail?: "auto" | "low" | "high" | undefined;
3292
+ };
3293
+ })[];
3294
+ role: "user";
3295
+ }>, z.ZodObject<{
3296
+ role: z.ZodLiteral<"assistant">;
3297
+ content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
3298
+ text: z.ZodString;
3299
+ type: z.ZodLiteral<"text">;
3300
+ }, "strip", z.ZodTypeAny, {
3301
+ type: "text";
3302
+ text: string;
3303
+ }, {
3304
+ type: "text";
3305
+ text: string;
3306
+ }>, "many">]>>;
3307
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
3308
+ id: z.ZodString;
3309
+ type: z.ZodLiteral<"function">;
3310
+ function: z.ZodObject<{
3311
+ name: z.ZodString;
3312
+ arguments: z.ZodString;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ name: string;
3315
+ arguments: string;
3316
+ }, {
3317
+ name: string;
3318
+ arguments: string;
3319
+ }>;
3320
+ }, "strip", z.ZodTypeAny, {
3321
+ function: {
3322
+ name: string;
3323
+ arguments: string;
3324
+ };
3325
+ type: "function";
3326
+ id: string;
3327
+ }, {
3328
+ function: {
3329
+ name: string;
3330
+ arguments: string;
3331
+ };
3332
+ type: "function";
3333
+ id: string;
3334
+ }>, "many">>;
3335
+ }, "strip", z.ZodTypeAny, {
3336
+ role: "assistant";
3337
+ content?: string | {
3338
+ type: "text";
3339
+ text: string;
3340
+ }[] | undefined;
3341
+ tool_calls?: {
3342
+ function: {
3343
+ name: string;
3344
+ arguments: string;
3345
+ };
3346
+ type: "function";
3347
+ id: string;
3348
+ }[] | undefined;
3349
+ }, {
3350
+ role: "assistant";
3351
+ content?: string | {
3352
+ type: "text";
3353
+ text: string;
3354
+ }[] | undefined;
3355
+ tool_calls?: {
3356
+ function: {
3357
+ name: string;
3358
+ arguments: string;
3359
+ };
3360
+ type: "function";
3361
+ id: string;
3362
+ }[] | undefined;
3363
+ }>, z.ZodObject<{
3364
+ role: z.ZodLiteral<"tool">;
3365
+ tool_call_id: z.ZodString;
3366
+ content: z.ZodString;
3367
+ }, "strip", z.ZodTypeAny, {
3368
+ content: string;
3369
+ role: "tool";
3370
+ tool_call_id: string;
3371
+ }, {
3372
+ content: string;
3373
+ role: "tool";
3374
+ tool_call_id: string;
3375
+ }>]>, "many">;
3376
+ frequency_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3377
+ logprobs: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3378
+ top_logprobs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3379
+ max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3380
+ presence_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3381
+ response_format: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
3382
+ type: z.ZodEnum<["text", "json_object"]>;
3383
+ }, "strip", z.ZodTypeAny, {
3384
+ type: "text" | "json_object";
3385
+ }, {
3386
+ type: "text" | "json_object";
3387
+ }>, z.ZodObject<{
3388
+ type: z.ZodLiteral<"json_schema">;
3389
+ json_schema: z.ZodObject<{
3390
+ name: z.ZodString;
3391
+ description: z.ZodOptional<z.ZodString>;
3392
+ strict: z.ZodOptional<z.ZodBoolean>;
3393
+ schema: z.ZodAny;
3394
+ }, "strip", z.ZodTypeAny, {
3395
+ name: string;
3396
+ description?: string | undefined;
3397
+ strict?: boolean | undefined;
3398
+ schema?: any;
3399
+ }, {
3400
+ name: string;
3401
+ description?: string | undefined;
3402
+ strict?: boolean | undefined;
3403
+ schema?: any;
3404
+ }>;
3405
+ }, "strip", z.ZodTypeAny, {
3406
+ type: "json_schema";
3407
+ json_schema: {
3408
+ name: string;
3409
+ description?: string | undefined;
3410
+ strict?: boolean | undefined;
3411
+ schema?: any;
3412
+ };
3413
+ }, {
3414
+ type: "json_schema";
3415
+ json_schema: {
3416
+ name: string;
3417
+ description?: string | undefined;
3418
+ strict?: boolean | undefined;
3419
+ schema?: any;
3420
+ };
3421
+ }>]>>;
3422
+ seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3423
+ stop: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
3424
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3425
+ top_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3426
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
3427
+ type: z.ZodLiteral<"function">;
3428
+ function: z.ZodObject<{
3429
+ name: z.ZodString;
3430
+ description: z.ZodOptional<z.ZodString>;
3431
+ strict: z.ZodOptional<z.ZodBoolean>;
3432
+ parameters: z.ZodAny;
3433
+ }, "strip", z.ZodTypeAny, {
3434
+ name: string;
3435
+ description?: string | undefined;
3436
+ strict?: boolean | undefined;
3437
+ parameters?: any;
3438
+ }, {
3439
+ name: string;
3440
+ description?: string | undefined;
3441
+ strict?: boolean | undefined;
3442
+ parameters?: any;
3443
+ }>;
3444
+ }, "strip", z.ZodTypeAny, {
3445
+ function: {
3446
+ name: string;
3447
+ description?: string | undefined;
3448
+ strict?: boolean | undefined;
3449
+ parameters?: any;
3450
+ };
3451
+ type: "function";
3452
+ }, {
3453
+ function: {
3454
+ name: string;
3455
+ description?: string | undefined;
3456
+ strict?: boolean | undefined;
3457
+ parameters?: any;
3458
+ };
3459
+ type: "function";
3460
+ }>, "many">>;
3461
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "auto", "required"]>, z.ZodObject<{
3462
+ type: z.ZodLiteral<"function">;
3463
+ function: z.ZodObject<{
3464
+ name: z.ZodString;
3465
+ }, "strip", z.ZodTypeAny, {
3466
+ name: string;
3467
+ }, {
3468
+ name: string;
3469
+ }>;
3470
+ }, "strip", z.ZodTypeAny, {
3471
+ function: {
3472
+ name: string;
3473
+ };
3474
+ type: "function";
3475
+ }, {
3476
+ function: {
3477
+ name: string;
3478
+ };
3479
+ type: "function";
3480
+ }>]>>;
3481
+ }, "max_tokens">, {
3482
+ max_completion_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3483
+ }>, "strip", z.ZodTypeAny, {
3484
+ messages: ({
3485
+ content: string | {
3486
+ type: "text";
3487
+ text: string;
3488
+ }[];
3489
+ role: "system";
3490
+ } | {
3491
+ content: string | ({
3492
+ type: "text";
3493
+ text: string;
3494
+ } | {
3495
+ type: "image_url";
3496
+ image_url: {
3497
+ url: string;
3498
+ detail?: "auto" | "low" | "high" | undefined;
3499
+ };
3500
+ })[];
3501
+ role: "user";
3502
+ } | {
3503
+ role: "assistant";
3504
+ content?: string | {
3505
+ type: "text";
3506
+ text: string;
3507
+ }[] | undefined;
3508
+ tool_calls?: {
2695
3509
  function: {
2696
3510
  name: string;
2697
3511
  arguments: string;
@@ -2711,6 +3525,13 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2711
3525
  seed?: number | null | undefined;
2712
3526
  logprobs?: boolean | null | undefined;
2713
3527
  top_logprobs?: number | null | undefined;
3528
+ tool_choice?: "auto" | "required" | "none" | {
3529
+ function: {
3530
+ name: string;
3531
+ };
3532
+ type: "function";
3533
+ } | undefined;
3534
+ stop?: string | string[] | null | undefined;
2714
3535
  response_format?: {
2715
3536
  type: "text" | "json_object";
2716
3537
  } | {
@@ -2722,14 +3543,7 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2722
3543
  schema?: any;
2723
3544
  };
2724
3545
  } | undefined;
2725
- tool_choice?: "auto" | "required" | "none" | {
2726
- function: {
2727
- name: string;
2728
- };
2729
- type: "function";
2730
- } | undefined;
2731
- max_tokens?: number | null | undefined;
2732
- stop?: string | string[] | null | undefined;
3546
+ max_completion_tokens?: number | null | undefined;
2733
3547
  model?: string | undefined;
2734
3548
  tools?: {
2735
3549
  function: {
@@ -2785,6 +3599,13 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2785
3599
  seed?: number | null | undefined;
2786
3600
  logprobs?: boolean | null | undefined;
2787
3601
  top_logprobs?: number | null | undefined;
3602
+ tool_choice?: "auto" | "required" | "none" | {
3603
+ function: {
3604
+ name: string;
3605
+ };
3606
+ type: "function";
3607
+ } | undefined;
3608
+ stop?: string | string[] | null | undefined;
2788
3609
  response_format?: {
2789
3610
  type: "text" | "json_object";
2790
3611
  } | {
@@ -2796,14 +3617,7 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2796
3617
  schema?: any;
2797
3618
  };
2798
3619
  } | undefined;
2799
- tool_choice?: "auto" | "required" | "none" | {
2800
- function: {
2801
- name: string;
2802
- };
2803
- type: "function";
2804
- } | undefined;
2805
- max_tokens?: number | null | undefined;
2806
- stop?: string | string[] | null | undefined;
3620
+ max_completion_tokens?: number | null | undefined;
2807
3621
  model?: string | undefined;
2808
3622
  tools?: {
2809
3623
  function: {
@@ -2815,7 +3629,7 @@ declare const OpenAIChatRequest: z.ZodEffects<z.ZodObject<{
2815
3629
  type: "function";
2816
3630
  }[] | undefined;
2817
3631
  }>;
2818
- type OpenAIChatRequestType = z.infer<typeof OpenAIChatRequest>;
3632
+ type OpenAIChatOSeriesRequestType = z.infer<typeof OpenAIChatOSeriesRequest>;
2819
3633
 
2820
3634
  declare const BaseChatModelOptions: z.ZodObject<{
2821
3635
  apiKey: z.ZodString;
@@ -2876,11 +3690,30 @@ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
2876
3690
  }>;
2877
3691
  }
2878
3692
 
2879
- declare const GPT4oSchema: {
3693
+ declare class BaseOSeriesChatModel extends BaseChatModel {
3694
+ constructor(modelSchema: ChatModelSchemaType, options: BaseChatModelOptionsType);
3695
+ transformModelRequest(request: OpenAIChatOSeriesRequestType): {
3696
+ modelName: string | undefined;
3697
+ config: ConfigType;
3698
+ messages: MessageType[];
3699
+ tools: ToolType[] | undefined;
3700
+ };
3701
+ transformTools(tools: ToolType[]): ParamsType;
3702
+ getStreamChatUrl(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<UrlType>;
3703
+ getStreamChatHeaders(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<HeadersType>;
3704
+ getStreamChatData(config: ConfigType, messages: MessageType[], tools?: ToolType[]): Promise<ParamsType>;
3705
+ transformStreamChatResponseChunk(chunk: string, buffer: string): AsyncGenerator<{
3706
+ partialResponse: PartialChatResponseType;
3707
+ buffer: string;
3708
+ }>;
3709
+ }
3710
+
3711
+ declare const GPT_3_5_Turbo_0125Literal = "gpt-3.5-turbo-0125";
3712
+ declare const GPT_3_5_Turbo_0125Schema: {
2880
3713
  description: string;
2881
3714
  name: string;
2882
3715
  roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2883
- modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
3716
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2884
3717
  maxInputTokens: number;
2885
3718
  maxOutputTokens: number;
2886
3719
  config: {
@@ -2922,7 +3755,7 @@ declare const GPT4oSchema: {
2922
3755
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2923
3756
  };
2924
3757
  };
2925
- declare const GPT4oOptions: z.ZodObject<{
3758
+ declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
2926
3759
  apiKey: z.ZodString;
2927
3760
  baseUrl: z.ZodString;
2928
3761
  completeChatUrl: z.ZodOptional<z.ZodString>;
@@ -2941,33 +3774,1027 @@ declare const GPT4oOptions: z.ZodObject<{
2941
3774
  streamChatUrl?: string | undefined;
2942
3775
  organization?: string | undefined;
2943
3776
  }>;
2944
- type GPT4oOptionsType = z.infer<typeof GPT4oOptions>;
2945
- declare class GPT4o extends BaseChatModel {
2946
- constructor(options: GPT4oOptionsType);
3777
+ type GPT_3_5_Turbo_0125OptionsType = z.infer<typeof GPT_3_5_Turbo_0125Options>;
3778
+ declare class GPT_3_5_Turbo_0125 extends BaseChatModel {
3779
+ constructor(options: GPT_3_5_Turbo_0125OptionsType);
2947
3780
  }
2948
3781
 
2949
- declare const OpenAIEmbeddingModelModalities: EmbeddingModelSchemaType["modalities"];
2950
- declare const OpenAIEmbeddingModelModalitiesEnum: z.ZodEnum<["text", "token"]>;
2951
-
2952
- declare const OpenAIGetEmbeddingsResponse: z.ZodObject<{
2953
- object: z.ZodLiteral<"list">;
2954
- model: z.ZodString;
2955
- data: z.ZodArray<z.ZodObject<{
2956
- index: z.ZodNumber;
2957
- object: z.ZodLiteral<"embedding">;
2958
- embedding: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodString]>;
2959
- }, "strip", z.ZodTypeAny, {
2960
- object: "embedding";
2961
- index: number;
2962
- embedding: string | number[];
2963
- }, {
2964
- object: "embedding";
2965
- index: number;
2966
- embedding: string | number[];
2967
- }>, "many">;
2968
- usage: z.ZodObject<{
2969
- prompt_tokens: z.ZodNumber;
2970
- total_tokens: z.ZodNumber;
3782
+ declare const GPT_3_5_Turbo_1106Literal = "gpt-3.5-turbo-1106";
3783
+ declare const GPT_3_5_Turbo_1106Schema: {
3784
+ description: string;
3785
+ name: string;
3786
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
3787
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
3788
+ maxInputTokens: number;
3789
+ maxOutputTokens: number;
3790
+ config: {
3791
+ def: Record<string, {
3792
+ type: "multi-string";
3793
+ param: string;
3794
+ title: string;
3795
+ description: string;
3796
+ max: number;
3797
+ } | {
3798
+ type: "range";
3799
+ param: string;
3800
+ title: string;
3801
+ description: string;
3802
+ max: number;
3803
+ min: number;
3804
+ step: number;
3805
+ default: number;
3806
+ } | {
3807
+ type: "select-string";
3808
+ param: string;
3809
+ title: string;
3810
+ description: string;
3811
+ default: string;
3812
+ choices: string[];
3813
+ } | {
3814
+ type: "object-schema";
3815
+ param: string;
3816
+ title: string;
3817
+ description: string;
3818
+ objectSchema?: any;
3819
+ } | {
3820
+ type: "select-boolean";
3821
+ param: string;
3822
+ title: string;
3823
+ description: string;
3824
+ default: boolean | null;
3825
+ }>;
3826
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3827
+ };
3828
+ };
3829
+ declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
3830
+ apiKey: z.ZodString;
3831
+ baseUrl: z.ZodString;
3832
+ completeChatUrl: z.ZodOptional<z.ZodString>;
3833
+ streamChatUrl: z.ZodOptional<z.ZodString>;
3834
+ organization: z.ZodOptional<z.ZodString>;
3835
+ }, "strip", z.ZodTypeAny, {
3836
+ apiKey: string;
3837
+ baseUrl: string;
3838
+ completeChatUrl?: string | undefined;
3839
+ streamChatUrl?: string | undefined;
3840
+ organization?: string | undefined;
3841
+ }, {
3842
+ apiKey: string;
3843
+ baseUrl: string;
3844
+ completeChatUrl?: string | undefined;
3845
+ streamChatUrl?: string | undefined;
3846
+ organization?: string | undefined;
3847
+ }>;
3848
+ type GPT_3_5_Turbo_1106OptionsType = z.infer<typeof GPT_3_5_Turbo_1106Options>;
3849
+ declare class GPT_3_5_Turbo_1106 extends BaseChatModel {
3850
+ constructor(options: GPT_3_5_Turbo_1106OptionsType);
3851
+ }
3852
+
3853
+ declare const GPT_3_5_TurboLiteral = "gpt-3.5-turbo";
3854
+ declare const GPT_3_5_TurboSchema: {
3855
+ description: string;
3856
+ name: string;
3857
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
3858
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
3859
+ maxInputTokens: number;
3860
+ maxOutputTokens: number;
3861
+ config: {
3862
+ def: Record<string, {
3863
+ type: "multi-string";
3864
+ param: string;
3865
+ title: string;
3866
+ description: string;
3867
+ max: number;
3868
+ } | {
3869
+ type: "range";
3870
+ param: string;
3871
+ title: string;
3872
+ description: string;
3873
+ max: number;
3874
+ min: number;
3875
+ step: number;
3876
+ default: number;
3877
+ } | {
3878
+ type: "select-string";
3879
+ param: string;
3880
+ title: string;
3881
+ description: string;
3882
+ default: string;
3883
+ choices: string[];
3884
+ } | {
3885
+ type: "object-schema";
3886
+ param: string;
3887
+ title: string;
3888
+ description: string;
3889
+ objectSchema?: any;
3890
+ } | {
3891
+ type: "select-boolean";
3892
+ param: string;
3893
+ title: string;
3894
+ description: string;
3895
+ default: boolean | null;
3896
+ }>;
3897
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3898
+ };
3899
+ };
3900
+ declare const GPT_3_5_TurboOptions: z.ZodObject<{
3901
+ apiKey: z.ZodString;
3902
+ baseUrl: z.ZodString;
3903
+ completeChatUrl: z.ZodOptional<z.ZodString>;
3904
+ streamChatUrl: z.ZodOptional<z.ZodString>;
3905
+ organization: z.ZodOptional<z.ZodString>;
3906
+ }, "strip", z.ZodTypeAny, {
3907
+ apiKey: string;
3908
+ baseUrl: string;
3909
+ completeChatUrl?: string | undefined;
3910
+ streamChatUrl?: string | undefined;
3911
+ organization?: string | undefined;
3912
+ }, {
3913
+ apiKey: string;
3914
+ baseUrl: string;
3915
+ completeChatUrl?: string | undefined;
3916
+ streamChatUrl?: string | undefined;
3917
+ organization?: string | undefined;
3918
+ }>;
3919
+ type GPT_3_5_TurboOptionsType = z.infer<typeof GPT_3_5_TurboOptions>;
3920
+ declare class GPT_3_5_Turbo extends BaseChatModel {
3921
+ constructor(options: GPT_3_5_TurboOptionsType);
3922
+ }
3923
+
3924
+ declare const GPT_4_0125_PreviewLiteral = "gpt-4-0125-preview";
3925
+ declare const GPT_4_0125_PreviewSchema: {
3926
+ description: string;
3927
+ name: string;
3928
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
3929
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
3930
+ maxInputTokens: number;
3931
+ maxOutputTokens: number;
3932
+ config: {
3933
+ def: Record<string, {
3934
+ type: "multi-string";
3935
+ param: string;
3936
+ title: string;
3937
+ description: string;
3938
+ max: number;
3939
+ } | {
3940
+ type: "range";
3941
+ param: string;
3942
+ title: string;
3943
+ description: string;
3944
+ max: number;
3945
+ min: number;
3946
+ step: number;
3947
+ default: number;
3948
+ } | {
3949
+ type: "select-string";
3950
+ param: string;
3951
+ title: string;
3952
+ description: string;
3953
+ default: string;
3954
+ choices: string[];
3955
+ } | {
3956
+ type: "object-schema";
3957
+ param: string;
3958
+ title: string;
3959
+ description: string;
3960
+ objectSchema?: any;
3961
+ } | {
3962
+ type: "select-boolean";
3963
+ param: string;
3964
+ title: string;
3965
+ description: string;
3966
+ default: boolean | null;
3967
+ }>;
3968
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3969
+ };
3970
+ };
3971
+ declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
3972
+ apiKey: z.ZodString;
3973
+ baseUrl: z.ZodString;
3974
+ completeChatUrl: z.ZodOptional<z.ZodString>;
3975
+ streamChatUrl: z.ZodOptional<z.ZodString>;
3976
+ organization: z.ZodOptional<z.ZodString>;
3977
+ }, "strip", z.ZodTypeAny, {
3978
+ apiKey: string;
3979
+ baseUrl: string;
3980
+ completeChatUrl?: string | undefined;
3981
+ streamChatUrl?: string | undefined;
3982
+ organization?: string | undefined;
3983
+ }, {
3984
+ apiKey: string;
3985
+ baseUrl: string;
3986
+ completeChatUrl?: string | undefined;
3987
+ streamChatUrl?: string | undefined;
3988
+ organization?: string | undefined;
3989
+ }>;
3990
+ type GPT_4_0125_PreviewOptionsType = z.infer<typeof GPT_4_0125_PreviewOptions>;
3991
+ declare class GPT_4_0125_Preview extends BaseChatModel {
3992
+ constructor(options: GPT_4_0125_PreviewOptionsType);
3993
+ }
3994
+
3995
+ declare const GPT_4_0613Literal = "gpt-4-0613";
3996
+ declare const GPT_4_0613Schema: {
3997
+ description: string;
3998
+ name: string;
3999
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4000
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
4001
+ maxInputTokens: number;
4002
+ maxOutputTokens: number;
4003
+ config: {
4004
+ def: Record<string, {
4005
+ type: "multi-string";
4006
+ param: string;
4007
+ title: string;
4008
+ description: string;
4009
+ max: number;
4010
+ } | {
4011
+ type: "range";
4012
+ param: string;
4013
+ title: string;
4014
+ description: string;
4015
+ max: number;
4016
+ min: number;
4017
+ step: number;
4018
+ default: number;
4019
+ } | {
4020
+ type: "select-string";
4021
+ param: string;
4022
+ title: string;
4023
+ description: string;
4024
+ default: string;
4025
+ choices: string[];
4026
+ } | {
4027
+ type: "object-schema";
4028
+ param: string;
4029
+ title: string;
4030
+ description: string;
4031
+ objectSchema?: any;
4032
+ } | {
4033
+ type: "select-boolean";
4034
+ param: string;
4035
+ title: string;
4036
+ description: string;
4037
+ default: boolean | null;
4038
+ }>;
4039
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4040
+ };
4041
+ };
4042
+ declare const GPT_4_0613Options: z.ZodObject<{
4043
+ apiKey: z.ZodString;
4044
+ baseUrl: z.ZodString;
4045
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4046
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4047
+ organization: z.ZodOptional<z.ZodString>;
4048
+ }, "strip", z.ZodTypeAny, {
4049
+ apiKey: string;
4050
+ baseUrl: string;
4051
+ completeChatUrl?: string | undefined;
4052
+ streamChatUrl?: string | undefined;
4053
+ organization?: string | undefined;
4054
+ }, {
4055
+ apiKey: string;
4056
+ baseUrl: string;
4057
+ completeChatUrl?: string | undefined;
4058
+ streamChatUrl?: string | undefined;
4059
+ organization?: string | undefined;
4060
+ }>;
4061
+ type GPT_4_0613OptionsType = z.infer<typeof GPT_4_0613Options>;
4062
+ declare class GPT_4_0613 extends BaseChatModel {
4063
+ constructor(options: GPT_4_0613OptionsType);
4064
+ }
4065
+
4066
+ declare const GPT_4_1106_PreviewLiteral = "gpt-4-1106-preview";
4067
+ declare const GPT_4_1106_PreviewSchema: {
4068
+ description: string;
4069
+ name: string;
4070
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4071
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
4072
+ maxInputTokens: number;
4073
+ maxOutputTokens: number;
4074
+ config: {
4075
+ def: Record<string, {
4076
+ type: "multi-string";
4077
+ param: string;
4078
+ title: string;
4079
+ description: string;
4080
+ max: number;
4081
+ } | {
4082
+ type: "range";
4083
+ param: string;
4084
+ title: string;
4085
+ description: string;
4086
+ max: number;
4087
+ min: number;
4088
+ step: number;
4089
+ default: number;
4090
+ } | {
4091
+ type: "select-string";
4092
+ param: string;
4093
+ title: string;
4094
+ description: string;
4095
+ default: string;
4096
+ choices: string[];
4097
+ } | {
4098
+ type: "object-schema";
4099
+ param: string;
4100
+ title: string;
4101
+ description: string;
4102
+ objectSchema?: any;
4103
+ } | {
4104
+ type: "select-boolean";
4105
+ param: string;
4106
+ title: string;
4107
+ description: string;
4108
+ default: boolean | null;
4109
+ }>;
4110
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4111
+ };
4112
+ };
4113
+ declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
4114
+ apiKey: z.ZodString;
4115
+ baseUrl: z.ZodString;
4116
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4117
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4118
+ organization: z.ZodOptional<z.ZodString>;
4119
+ }, "strip", z.ZodTypeAny, {
4120
+ apiKey: string;
4121
+ baseUrl: string;
4122
+ completeChatUrl?: string | undefined;
4123
+ streamChatUrl?: string | undefined;
4124
+ organization?: string | undefined;
4125
+ }, {
4126
+ apiKey: string;
4127
+ baseUrl: string;
4128
+ completeChatUrl?: string | undefined;
4129
+ streamChatUrl?: string | undefined;
4130
+ organization?: string | undefined;
4131
+ }>;
4132
+ type GPT_4_1106_PreviewOptionsType = z.infer<typeof GPT_4_1106_PreviewOptions>;
4133
+ declare class GPT_4_1106_Preview extends BaseChatModel {
4134
+ constructor(options: GPT_4_1106_PreviewOptionsType);
4135
+ }
4136
+
4137
+ declare const GPT_4_Turbo_2024_04_09Literal = "gpt-4-turbo-2024-04-09";
4138
+ declare const GPT_4_Turbo_2024_04_09Schema: {
4139
+ description: string;
4140
+ name: string;
4141
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4142
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
4143
+ maxInputTokens: number;
4144
+ maxOutputTokens: number;
4145
+ config: {
4146
+ def: Record<string, {
4147
+ type: "multi-string";
4148
+ param: string;
4149
+ title: string;
4150
+ description: string;
4151
+ max: number;
4152
+ } | {
4153
+ type: "range";
4154
+ param: string;
4155
+ title: string;
4156
+ description: string;
4157
+ max: number;
4158
+ min: number;
4159
+ step: number;
4160
+ default: number;
4161
+ } | {
4162
+ type: "select-string";
4163
+ param: string;
4164
+ title: string;
4165
+ description: string;
4166
+ default: string;
4167
+ choices: string[];
4168
+ } | {
4169
+ type: "object-schema";
4170
+ param: string;
4171
+ title: string;
4172
+ description: string;
4173
+ objectSchema?: any;
4174
+ } | {
4175
+ type: "select-boolean";
4176
+ param: string;
4177
+ title: string;
4178
+ description: string;
4179
+ default: boolean | null;
4180
+ }>;
4181
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4182
+ };
4183
+ };
4184
+ declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
4185
+ apiKey: z.ZodString;
4186
+ baseUrl: z.ZodString;
4187
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4188
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4189
+ organization: z.ZodOptional<z.ZodString>;
4190
+ }, "strip", z.ZodTypeAny, {
4191
+ apiKey: string;
4192
+ baseUrl: string;
4193
+ completeChatUrl?: string | undefined;
4194
+ streamChatUrl?: string | undefined;
4195
+ organization?: string | undefined;
4196
+ }, {
4197
+ apiKey: string;
4198
+ baseUrl: string;
4199
+ completeChatUrl?: string | undefined;
4200
+ streamChatUrl?: string | undefined;
4201
+ organization?: string | undefined;
4202
+ }>;
4203
+ type GPT_4_Turbo_2024_04_09OptionsType = z.infer<typeof GPT_4_Turbo_2024_04_09Options>;
4204
+ declare class GPT_4_Turbo_2024_04_09 extends BaseChatModel {
4205
+ constructor(options: GPT_4_Turbo_2024_04_09OptionsType);
4206
+ }
4207
+
4208
+ declare const GPT_4_Turbo_PreviewLiteral = "gpt-4-turbo-preview";
4209
+ declare const GPT_4_Turbo_PreviewSchema: {
4210
+ description: string;
4211
+ name: string;
4212
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4213
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
4214
+ maxInputTokens: number;
4215
+ maxOutputTokens: number;
4216
+ config: {
4217
+ def: Record<string, {
4218
+ type: "multi-string";
4219
+ param: string;
4220
+ title: string;
4221
+ description: string;
4222
+ max: number;
4223
+ } | {
4224
+ type: "range";
4225
+ param: string;
4226
+ title: string;
4227
+ description: string;
4228
+ max: number;
4229
+ min: number;
4230
+ step: number;
4231
+ default: number;
4232
+ } | {
4233
+ type: "select-string";
4234
+ param: string;
4235
+ title: string;
4236
+ description: string;
4237
+ default: string;
4238
+ choices: string[];
4239
+ } | {
4240
+ type: "object-schema";
4241
+ param: string;
4242
+ title: string;
4243
+ description: string;
4244
+ objectSchema?: any;
4245
+ } | {
4246
+ type: "select-boolean";
4247
+ param: string;
4248
+ title: string;
4249
+ description: string;
4250
+ default: boolean | null;
4251
+ }>;
4252
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4253
+ };
4254
+ };
4255
+ declare const GPT_4_Turbo_PreviewOptions: z.ZodObject<{
4256
+ apiKey: z.ZodString;
4257
+ baseUrl: z.ZodString;
4258
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4259
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4260
+ organization: z.ZodOptional<z.ZodString>;
4261
+ }, "strip", z.ZodTypeAny, {
4262
+ apiKey: string;
4263
+ baseUrl: string;
4264
+ completeChatUrl?: string | undefined;
4265
+ streamChatUrl?: string | undefined;
4266
+ organization?: string | undefined;
4267
+ }, {
4268
+ apiKey: string;
4269
+ baseUrl: string;
4270
+ completeChatUrl?: string | undefined;
4271
+ streamChatUrl?: string | undefined;
4272
+ organization?: string | undefined;
4273
+ }>;
4274
+ type GPT_4_Turbo_PreviewOptionsType = z.infer<typeof GPT_4_Turbo_PreviewOptions>;
4275
+ declare class GPT_4_Turbo_Preview extends BaseChatModel {
4276
+ constructor(options: GPT_4_Turbo_PreviewOptionsType);
4277
+ }
4278
+
4279
+ declare const GPT_4_TurboLiteral = "gpt-4-turbo";
4280
+ declare const GPT_4_TurboSchema: {
4281
+ description: string;
4282
+ name: string;
4283
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4284
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
4285
+ maxInputTokens: number;
4286
+ maxOutputTokens: number;
4287
+ config: {
4288
+ def: Record<string, {
4289
+ type: "multi-string";
4290
+ param: string;
4291
+ title: string;
4292
+ description: string;
4293
+ max: number;
4294
+ } | {
4295
+ type: "range";
4296
+ param: string;
4297
+ title: string;
4298
+ description: string;
4299
+ max: number;
4300
+ min: number;
4301
+ step: number;
4302
+ default: number;
4303
+ } | {
4304
+ type: "select-string";
4305
+ param: string;
4306
+ title: string;
4307
+ description: string;
4308
+ default: string;
4309
+ choices: string[];
4310
+ } | {
4311
+ type: "object-schema";
4312
+ param: string;
4313
+ title: string;
4314
+ description: string;
4315
+ objectSchema?: any;
4316
+ } | {
4317
+ type: "select-boolean";
4318
+ param: string;
4319
+ title: string;
4320
+ description: string;
4321
+ default: boolean | null;
4322
+ }>;
4323
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4324
+ };
4325
+ };
4326
+ declare const GPT_4_TurboOptions: z.ZodObject<{
4327
+ apiKey: z.ZodString;
4328
+ baseUrl: z.ZodString;
4329
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4330
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4331
+ organization: z.ZodOptional<z.ZodString>;
4332
+ }, "strip", z.ZodTypeAny, {
4333
+ apiKey: string;
4334
+ baseUrl: string;
4335
+ completeChatUrl?: string | undefined;
4336
+ streamChatUrl?: string | undefined;
4337
+ organization?: string | undefined;
4338
+ }, {
4339
+ apiKey: string;
4340
+ baseUrl: string;
4341
+ completeChatUrl?: string | undefined;
4342
+ streamChatUrl?: string | undefined;
4343
+ organization?: string | undefined;
4344
+ }>;
4345
+ type GPT_4_TurboOptionsType = z.infer<typeof GPT_4_TurboOptions>;
4346
+ declare class GPT_4_Turbo extends BaseChatModel {
4347
+ constructor(options: GPT_4_TurboOptionsType);
4348
+ }
4349
+
4350
+ declare const GPT_4Literal = "gpt-4";
4351
+ declare const GPT_4Schema: {
4352
+ description: string;
4353
+ name: string;
4354
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4355
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
4356
+ maxInputTokens: number;
4357
+ maxOutputTokens: number;
4358
+ config: {
4359
+ def: Record<string, {
4360
+ type: "multi-string";
4361
+ param: string;
4362
+ title: string;
4363
+ description: string;
4364
+ max: number;
4365
+ } | {
4366
+ type: "range";
4367
+ param: string;
4368
+ title: string;
4369
+ description: string;
4370
+ max: number;
4371
+ min: number;
4372
+ step: number;
4373
+ default: number;
4374
+ } | {
4375
+ type: "select-string";
4376
+ param: string;
4377
+ title: string;
4378
+ description: string;
4379
+ default: string;
4380
+ choices: string[];
4381
+ } | {
4382
+ type: "object-schema";
4383
+ param: string;
4384
+ title: string;
4385
+ description: string;
4386
+ objectSchema?: any;
4387
+ } | {
4388
+ type: "select-boolean";
4389
+ param: string;
4390
+ title: string;
4391
+ description: string;
4392
+ default: boolean | null;
4393
+ }>;
4394
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4395
+ };
4396
+ };
4397
+ declare const GPT_4Options: z.ZodObject<{
4398
+ apiKey: z.ZodString;
4399
+ baseUrl: z.ZodString;
4400
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4401
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4402
+ organization: z.ZodOptional<z.ZodString>;
4403
+ }, "strip", z.ZodTypeAny, {
4404
+ apiKey: string;
4405
+ baseUrl: string;
4406
+ completeChatUrl?: string | undefined;
4407
+ streamChatUrl?: string | undefined;
4408
+ organization?: string | undefined;
4409
+ }, {
4410
+ apiKey: string;
4411
+ baseUrl: string;
4412
+ completeChatUrl?: string | undefined;
4413
+ streamChatUrl?: string | undefined;
4414
+ organization?: string | undefined;
4415
+ }>;
4416
+ type GPT_4OptionsType = z.infer<typeof GPT_4Options>;
4417
+ declare class GPT_4 extends BaseChatModel {
4418
+ constructor(options: GPT_4OptionsType);
4419
+ }
4420
+
4421
+ declare const GPT_4o_2024_08_06Literal = "gpt-4o-2024-08-06";
4422
+ declare const GPT_4o_2024_08_06Schema: {
4423
+ description: string;
4424
+ name: string;
4425
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4426
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
4427
+ maxInputTokens: number;
4428
+ maxOutputTokens: number;
4429
+ config: {
4430
+ def: Record<string, {
4431
+ type: "multi-string";
4432
+ param: string;
4433
+ title: string;
4434
+ description: string;
4435
+ max: number;
4436
+ } | {
4437
+ type: "range";
4438
+ param: string;
4439
+ title: string;
4440
+ description: string;
4441
+ max: number;
4442
+ min: number;
4443
+ step: number;
4444
+ default: number;
4445
+ } | {
4446
+ type: "select-string";
4447
+ param: string;
4448
+ title: string;
4449
+ description: string;
4450
+ default: string;
4451
+ choices: string[];
4452
+ } | {
4453
+ type: "object-schema";
4454
+ param: string;
4455
+ title: string;
4456
+ description: string;
4457
+ objectSchema?: any;
4458
+ } | {
4459
+ type: "select-boolean";
4460
+ param: string;
4461
+ title: string;
4462
+ description: string;
4463
+ default: boolean | null;
4464
+ }>;
4465
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4466
+ };
4467
+ };
4468
+ declare const GPT_4o_2024_08_06Options: z.ZodObject<{
4469
+ apiKey: z.ZodString;
4470
+ baseUrl: z.ZodString;
4471
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4472
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4473
+ organization: z.ZodOptional<z.ZodString>;
4474
+ }, "strip", z.ZodTypeAny, {
4475
+ apiKey: string;
4476
+ baseUrl: string;
4477
+ completeChatUrl?: string | undefined;
4478
+ streamChatUrl?: string | undefined;
4479
+ organization?: string | undefined;
4480
+ }, {
4481
+ apiKey: string;
4482
+ baseUrl: string;
4483
+ completeChatUrl?: string | undefined;
4484
+ streamChatUrl?: string | undefined;
4485
+ organization?: string | undefined;
4486
+ }>;
4487
+ type GPT_4o_2024_08_06OptionsType = z.infer<typeof GPT_4o_2024_08_06Options>;
4488
+ declare class GPT_4o_2024_08_06 extends BaseChatModel {
4489
+ constructor(options: GPT_4o_2024_08_06OptionsType);
4490
+ }
4491
+
4492
+ declare const GPT_4o_MiniLiteral = "gpt-4o-mini";
4493
+ declare const GPT_4o_MiniSchema: {
4494
+ description: string;
4495
+ name: string;
4496
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4497
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
4498
+ maxInputTokens: number;
4499
+ maxOutputTokens: number;
4500
+ config: {
4501
+ def: Record<string, {
4502
+ type: "multi-string";
4503
+ param: string;
4504
+ title: string;
4505
+ description: string;
4506
+ max: number;
4507
+ } | {
4508
+ type: "range";
4509
+ param: string;
4510
+ title: string;
4511
+ description: string;
4512
+ max: number;
4513
+ min: number;
4514
+ step: number;
4515
+ default: number;
4516
+ } | {
4517
+ type: "select-string";
4518
+ param: string;
4519
+ title: string;
4520
+ description: string;
4521
+ default: string;
4522
+ choices: string[];
4523
+ } | {
4524
+ type: "object-schema";
4525
+ param: string;
4526
+ title: string;
4527
+ description: string;
4528
+ objectSchema?: any;
4529
+ } | {
4530
+ type: "select-boolean";
4531
+ param: string;
4532
+ title: string;
4533
+ description: string;
4534
+ default: boolean | null;
4535
+ }>;
4536
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4537
+ };
4538
+ };
4539
+ declare const GPT_4o_MiniOptions: z.ZodObject<{
4540
+ apiKey: z.ZodString;
4541
+ baseUrl: z.ZodString;
4542
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4543
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4544
+ organization: z.ZodOptional<z.ZodString>;
4545
+ }, "strip", z.ZodTypeAny, {
4546
+ apiKey: string;
4547
+ baseUrl: string;
4548
+ completeChatUrl?: string | undefined;
4549
+ streamChatUrl?: string | undefined;
4550
+ organization?: string | undefined;
4551
+ }, {
4552
+ apiKey: string;
4553
+ baseUrl: string;
4554
+ completeChatUrl?: string | undefined;
4555
+ streamChatUrl?: string | undefined;
4556
+ organization?: string | undefined;
4557
+ }>;
4558
+ type GPT_4o_MiniOptionsType = z.infer<typeof GPT_4o_MiniOptions>;
4559
+ declare class GPT_4o_Mini extends BaseChatModel {
4560
+ constructor(options: GPT_4o_MiniOptionsType);
4561
+ }
4562
+
4563
+ declare const GPT_4oLiteral = "gpt-4o";
4564
+ declare const GPT_4oSchema: {
4565
+ description: string;
4566
+ name: string;
4567
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
4568
+ modalities: ["text" | "image" | "tool-call" | "tool-response", ...("text" | "image" | "tool-call" | "tool-response")[]];
4569
+ maxInputTokens: number;
4570
+ maxOutputTokens: number;
4571
+ config: {
4572
+ def: Record<string, {
4573
+ type: "multi-string";
4574
+ param: string;
4575
+ title: string;
4576
+ description: string;
4577
+ max: number;
4578
+ } | {
4579
+ type: "range";
4580
+ param: string;
4581
+ title: string;
4582
+ description: string;
4583
+ max: number;
4584
+ min: number;
4585
+ step: number;
4586
+ default: number;
4587
+ } | {
4588
+ type: "select-string";
4589
+ param: string;
4590
+ title: string;
4591
+ description: string;
4592
+ default: string;
4593
+ choices: string[];
4594
+ } | {
4595
+ type: "object-schema";
4596
+ param: string;
4597
+ title: string;
4598
+ description: string;
4599
+ objectSchema?: any;
4600
+ } | {
4601
+ type: "select-boolean";
4602
+ param: string;
4603
+ title: string;
4604
+ description: string;
4605
+ default: boolean | null;
4606
+ }>;
4607
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4608
+ };
4609
+ };
4610
+ declare const GPT_4oOptions: z.ZodObject<{
4611
+ apiKey: z.ZodString;
4612
+ baseUrl: z.ZodString;
4613
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4614
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4615
+ organization: z.ZodOptional<z.ZodString>;
4616
+ }, "strip", z.ZodTypeAny, {
4617
+ apiKey: string;
4618
+ baseUrl: string;
4619
+ completeChatUrl?: string | undefined;
4620
+ streamChatUrl?: string | undefined;
4621
+ organization?: string | undefined;
4622
+ }, {
4623
+ apiKey: string;
4624
+ baseUrl: string;
4625
+ completeChatUrl?: string | undefined;
4626
+ streamChatUrl?: string | undefined;
4627
+ organization?: string | undefined;
4628
+ }>;
4629
+ type GPT_4oOptionsType = z.infer<typeof GPT_4oOptions>;
4630
+ declare class GPT_4o extends BaseChatModel {
4631
+ constructor(options: GPT_4oOptionsType);
4632
+ }
4633
+
4634
+ declare const O1_MiniLiteral = "o1-mini";
4635
+ declare const O1_MiniSchema: {
4636
+ description: string;
4637
+ name: string;
4638
+ roles: Partial<Record<"user" | "assistant", string | undefined>>;
4639
+ modalities: ["text", ..."text"[]];
4640
+ maxInputTokens: number;
4641
+ maxOutputTokens: number;
4642
+ config: {
4643
+ def: Record<string, {
4644
+ type: "multi-string";
4645
+ param: string;
4646
+ title: string;
4647
+ description: string;
4648
+ max: number;
4649
+ } | {
4650
+ type: "range";
4651
+ param: string;
4652
+ title: string;
4653
+ description: string;
4654
+ max: number;
4655
+ min: number;
4656
+ step: number;
4657
+ default: number;
4658
+ } | {
4659
+ type: "select-string";
4660
+ param: string;
4661
+ title: string;
4662
+ description: string;
4663
+ default: string;
4664
+ choices: string[];
4665
+ } | {
4666
+ type: "object-schema";
4667
+ param: string;
4668
+ title: string;
4669
+ description: string;
4670
+ objectSchema?: any;
4671
+ } | {
4672
+ type: "select-boolean";
4673
+ param: string;
4674
+ title: string;
4675
+ description: string;
4676
+ default: boolean | null;
4677
+ }>;
4678
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4679
+ };
4680
+ };
4681
+ declare const O1_MiniOptions: z.ZodObject<{
4682
+ apiKey: z.ZodString;
4683
+ baseUrl: z.ZodString;
4684
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4685
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4686
+ organization: z.ZodOptional<z.ZodString>;
4687
+ }, "strip", z.ZodTypeAny, {
4688
+ apiKey: string;
4689
+ baseUrl: string;
4690
+ completeChatUrl?: string | undefined;
4691
+ streamChatUrl?: string | undefined;
4692
+ organization?: string | undefined;
4693
+ }, {
4694
+ apiKey: string;
4695
+ baseUrl: string;
4696
+ completeChatUrl?: string | undefined;
4697
+ streamChatUrl?: string | undefined;
4698
+ organization?: string | undefined;
4699
+ }>;
4700
+ type O1_MiniOptionsType = z.infer<typeof O1_MiniOptions>;
4701
+ declare class O1_Mini extends BaseOSeriesChatModel {
4702
+ constructor(options: O1_MiniOptionsType);
4703
+ }
4704
+
4705
+ declare const O1_PreviewLiteral = "o1-preview";
4706
+ declare const O1_PreviewSchema: {
4707
+ description: string;
4708
+ name: string;
4709
+ roles: Partial<Record<"user" | "assistant", string | undefined>>;
4710
+ modalities: ["text", ..."text"[]];
4711
+ maxInputTokens: number;
4712
+ maxOutputTokens: number;
4713
+ config: {
4714
+ def: Record<string, {
4715
+ type: "multi-string";
4716
+ param: string;
4717
+ title: string;
4718
+ description: string;
4719
+ max: number;
4720
+ } | {
4721
+ type: "range";
4722
+ param: string;
4723
+ title: string;
4724
+ description: string;
4725
+ max: number;
4726
+ min: number;
4727
+ step: number;
4728
+ default: number;
4729
+ } | {
4730
+ type: "select-string";
4731
+ param: string;
4732
+ title: string;
4733
+ description: string;
4734
+ default: string;
4735
+ choices: string[];
4736
+ } | {
4737
+ type: "object-schema";
4738
+ param: string;
4739
+ title: string;
4740
+ description: string;
4741
+ objectSchema?: any;
4742
+ } | {
4743
+ type: "select-boolean";
4744
+ param: string;
4745
+ title: string;
4746
+ description: string;
4747
+ default: boolean | null;
4748
+ }>;
4749
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4750
+ };
4751
+ };
4752
+ declare const O1_PreviewOptions: z.ZodObject<{
4753
+ apiKey: z.ZodString;
4754
+ baseUrl: z.ZodString;
4755
+ completeChatUrl: z.ZodOptional<z.ZodString>;
4756
+ streamChatUrl: z.ZodOptional<z.ZodString>;
4757
+ organization: z.ZodOptional<z.ZodString>;
4758
+ }, "strip", z.ZodTypeAny, {
4759
+ apiKey: string;
4760
+ baseUrl: string;
4761
+ completeChatUrl?: string | undefined;
4762
+ streamChatUrl?: string | undefined;
4763
+ organization?: string | undefined;
4764
+ }, {
4765
+ apiKey: string;
4766
+ baseUrl: string;
4767
+ completeChatUrl?: string | undefined;
4768
+ streamChatUrl?: string | undefined;
4769
+ organization?: string | undefined;
4770
+ }>;
4771
+ type O1_PreviewOptionsType = z.infer<typeof O1_PreviewOptions>;
4772
+ declare class O1_Preview extends BaseOSeriesChatModel {
4773
+ constructor(options: O1_PreviewOptionsType);
4774
+ }
4775
+
4776
+ declare const OpenAIEmbeddingModelModalities: EmbeddingModelSchemaType["modalities"];
4777
+ declare const OpenAIEmbeddingModelModalitiesEnum: z.ZodEnum<["text", "token"]>;
4778
+
4779
+ declare const OpenAIGetEmbeddingsResponse: z.ZodObject<{
4780
+ object: z.ZodLiteral<"list">;
4781
+ model: z.ZodString;
4782
+ data: z.ZodArray<z.ZodObject<{
4783
+ index: z.ZodNumber;
4784
+ object: z.ZodLiteral<"embedding">;
4785
+ embedding: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodString]>;
4786
+ }, "strip", z.ZodTypeAny, {
4787
+ object: "embedding";
4788
+ index: number;
4789
+ embedding: string | number[];
4790
+ }, {
4791
+ object: "embedding";
4792
+ index: number;
4793
+ embedding: string | number[];
4794
+ }>, "many">;
4795
+ usage: z.ZodObject<{
4796
+ prompt_tokens: z.ZodNumber;
4797
+ total_tokens: z.ZodNumber;
2971
4798
  }, "strip", z.ZodTypeAny, {
2972
4799
  prompt_tokens: number;
2973
4800
  total_tokens: number;
@@ -3063,7 +4890,136 @@ declare class BaseEmbeddingModel implements EmbeddingModelV1<EmbeddingModelSchem
3063
4890
  transformGetEmbeddingsResponse(response: any): EmbeddingResponseType;
3064
4891
  }
3065
4892
 
3066
- declare const TextEmbeddingAda002Schema: {
4893
+ declare const Text_Embedding_Ada002Literal = "text-embedding-ada-002";
4894
+ declare const Text_Embedding_Ada002Schema: {
4895
+ description: string;
4896
+ name: string;
4897
+ modalities: ["text" | "token", ...("text" | "token")[]];
4898
+ maxInputTokens: number;
4899
+ maxOutputTokens: number;
4900
+ config: {
4901
+ def: Record<string, {
4902
+ type: "multi-string";
4903
+ param: string;
4904
+ title: string;
4905
+ description: string;
4906
+ max: number;
4907
+ } | {
4908
+ type: "range";
4909
+ param: string;
4910
+ title: string;
4911
+ description: string;
4912
+ max: number;
4913
+ min: number;
4914
+ step: number;
4915
+ default: number;
4916
+ } | {
4917
+ type: "select-string";
4918
+ param: string;
4919
+ title: string;
4920
+ description: string;
4921
+ default: string;
4922
+ choices: string[];
4923
+ } | {
4924
+ type: "object-schema";
4925
+ param: string;
4926
+ title: string;
4927
+ description: string;
4928
+ objectSchema?: any;
4929
+ } | {
4930
+ type: "select-boolean";
4931
+ param: string;
4932
+ title: string;
4933
+ description: string;
4934
+ default: boolean | null;
4935
+ }>;
4936
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4937
+ };
4938
+ };
4939
+ declare const Text_Embedding_Ada002_Options: z.ZodObject<{
4940
+ apiKey: z.ZodString;
4941
+ baseUrl: z.ZodString;
4942
+ getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
4943
+ }, "strip", z.ZodTypeAny, {
4944
+ apiKey: string;
4945
+ baseUrl: string;
4946
+ getEmbeddingsUrl?: string | undefined;
4947
+ }, {
4948
+ apiKey: string;
4949
+ baseUrl: string;
4950
+ getEmbeddingsUrl?: string | undefined;
4951
+ }>;
4952
+ type Text_Embedding_Ada002_OptionsType = z.infer<typeof Text_Embedding_Ada002_Options>;
4953
+ declare class Text_Embedding_Ada002 extends BaseEmbeddingModel {
4954
+ constructor(options: Text_Embedding_Ada002_OptionsType);
4955
+ }
4956
+
4957
+ declare const Text_Embedding_3_SmallLiteral = "text-embedding-3-small";
4958
+ declare const Text_Embedding_3_SmallSchema: {
4959
+ description: string;
4960
+ name: string;
4961
+ modalities: ["text" | "token", ...("text" | "token")[]];
4962
+ maxInputTokens: number;
4963
+ maxOutputTokens: number;
4964
+ config: {
4965
+ def: Record<string, {
4966
+ type: "multi-string";
4967
+ param: string;
4968
+ title: string;
4969
+ description: string;
4970
+ max: number;
4971
+ } | {
4972
+ type: "range";
4973
+ param: string;
4974
+ title: string;
4975
+ description: string;
4976
+ max: number;
4977
+ min: number;
4978
+ step: number;
4979
+ default: number;
4980
+ } | {
4981
+ type: "select-string";
4982
+ param: string;
4983
+ title: string;
4984
+ description: string;
4985
+ default: string;
4986
+ choices: string[];
4987
+ } | {
4988
+ type: "object-schema";
4989
+ param: string;
4990
+ title: string;
4991
+ description: string;
4992
+ objectSchema?: any;
4993
+ } | {
4994
+ type: "select-boolean";
4995
+ param: string;
4996
+ title: string;
4997
+ description: string;
4998
+ default: boolean | null;
4999
+ }>;
5000
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5001
+ };
5002
+ };
5003
+ declare const Text_Embedding_3_Small_Options: z.ZodObject<{
5004
+ apiKey: z.ZodString;
5005
+ baseUrl: z.ZodString;
5006
+ getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5007
+ }, "strip", z.ZodTypeAny, {
5008
+ apiKey: string;
5009
+ baseUrl: string;
5010
+ getEmbeddingsUrl?: string | undefined;
5011
+ }, {
5012
+ apiKey: string;
5013
+ baseUrl: string;
5014
+ getEmbeddingsUrl?: string | undefined;
5015
+ }>;
5016
+ type Text_Embedding_3_Small_OptionsType = z.infer<typeof Text_Embedding_3_Small_Options>;
5017
+ declare class Text_Embedding_3_Small extends BaseEmbeddingModel {
5018
+ constructor(options: Text_Embedding_3_Small_OptionsType);
5019
+ }
5020
+
5021
+ declare const Text_Embedding_3_LargeLiteral = "text-embedding-3-large";
5022
+ declare const Text_Embedding_3_LargeSchema: {
3067
5023
  description: string;
3068
5024
  name: string;
3069
5025
  modalities: ["text" | "token", ...("text" | "token")[]];
@@ -3108,7 +5064,7 @@ declare const TextEmbeddingAda002Schema: {
3108
5064
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3109
5065
  };
3110
5066
  };
3111
- declare const TextEmbeddingAda002Options: z.ZodObject<{
5067
+ declare const Text_Embedding_3_Large_Options: z.ZodObject<{
3112
5068
  apiKey: z.ZodString;
3113
5069
  baseUrl: z.ZodString;
3114
5070
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
@@ -3121,9 +5077,9 @@ declare const TextEmbeddingAda002Options: z.ZodObject<{
3121
5077
  baseUrl: string;
3122
5078
  getEmbeddingsUrl?: string | undefined;
3123
5079
  }>;
3124
- type TextEmbeddingAda002OptionsType = z.infer<typeof TextEmbeddingAda002Options>;
3125
- declare class TextEmbeddingAda002 extends BaseEmbeddingModel {
3126
- constructor(options: TextEmbeddingAda002OptionsType);
5080
+ type Text_Embedding_3_Large_OptionsType = z.infer<typeof Text_Embedding_3_Large_Options>;
5081
+ declare class Text_Embedding_3_Large extends BaseEmbeddingModel {
5082
+ constructor(options: Text_Embedding_3_Large_OptionsType);
3127
5083
  }
3128
5084
 
3129
5085
  declare const ProviderLiteral = "openai";
@@ -3143,4 +5099,4 @@ declare class OpenAI<O extends Record<string, any> = Record<string, any>> implem
3143
5099
  embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
3144
5100
  }
3145
5101
 
3146
- export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelResponseSchemaConfigDef, ChatModelResponseSchemaConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, GPT4o, GPT4oOptions, type GPT4oOptionsType, GPT4oSchema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatRequest, OpenAIChatRequestAssistantMessage, type OpenAIChatRequestAssistantMessageType, OpenAIChatRequestImageContent, type OpenAIChatRequestImageContentType, OpenAIChatRequestMessage, type OpenAIChatRequestMessageType, OpenAIChatRequestResponseFormat, type OpenAIChatRequestResponseFormatType, OpenAIChatRequestSystemMessage, type OpenAIChatRequestSystemMessageType, OpenAIChatRequestTextContent, type OpenAIChatRequestTextContentType, OpenAIChatRequestTool, OpenAIChatRequestToolCallContent, type OpenAIChatRequestToolCallContentType, OpenAIChatRequestToolChoiceEnum, type OpenAIChatRequestToolChoiceEnumType, OpenAIChatRequestToolChoiceFunction, type OpenAIChatRequestToolChoiceFunctionType, OpenAIChatRequestToolMessage, type OpenAIChatRequestToolMessageType, type OpenAIChatRequestToolType, type OpenAIChatRequestType, OpenAIChatRequestUserMessage, type OpenAIChatRequestUserMessageType, OpenAICompleteChatResponse, type OpenAICompleteChatResponseType, OpenAIEmbeddingModelConfigs, OpenAIEmbeddingModelModalities, OpenAIEmbeddingModelModalitiesEnum, OpenAIEmbeddingRequest, OpenAIEmbeddingRequestInput, type OpenAIEmbeddingRequestInputType, type OpenAIEmbeddingRequestType, OpenAIGetEmbeddingsResponse, OpenAIStreamChatResponse, type OpenAIStreamChatResponseType, OpenAIToolCallsCompleteChatResponse, OpenAIToolCallsStreamChatResponse, ProviderLiteral, TextEmbeddingAda002, TextEmbeddingAda002Options, type TextEmbeddingAda002OptionsType, TextEmbeddingAda002Schema, dimensions, encodingFormat, frequencyPenalty, logProbs, maxTokens, presencePenalty, responseFormat, seed, stop, temperature, toolChoice, topLogProbs, topP };
5102
+ export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, BaseOSeriesChatModel, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelOSeriesConfigDef, ChatModelOSeriesConfigSchema, ChatModelResponseFormatConfigDef, ChatModelResponseFormatConfigSchema, ChatModelResponseSchemaConfigDef, ChatModelResponseSchemaConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, EmbeddingModelDimensionsConfigDef, EmbeddingModelDimensionsConfigSchema, GPT_3_5_Turbo, GPT_3_5_TurboLiteral, GPT_3_5_TurboOptions, type GPT_3_5_TurboOptionsType, GPT_3_5_TurboSchema, GPT_3_5_Turbo_0125, GPT_3_5_Turbo_0125Literal, GPT_3_5_Turbo_0125Options, type GPT_3_5_Turbo_0125OptionsType, GPT_3_5_Turbo_0125Schema, GPT_3_5_Turbo_1106, GPT_3_5_Turbo_1106Literal, GPT_3_5_Turbo_1106Options, type GPT_3_5_Turbo_1106OptionsType, GPT_3_5_Turbo_1106Schema, GPT_4, GPT_4Literal, GPT_4Options, type GPT_4OptionsType, GPT_4Schema, GPT_4_0125_Preview, GPT_4_0125_PreviewLiteral, GPT_4_0125_PreviewOptions, type GPT_4_0125_PreviewOptionsType, GPT_4_0125_PreviewSchema, GPT_4_0613, GPT_4_0613Literal, GPT_4_0613Options, type GPT_4_0613OptionsType, GPT_4_0613Schema, GPT_4_1106_Preview, GPT_4_1106_PreviewLiteral, GPT_4_1106_PreviewOptions, type GPT_4_1106_PreviewOptionsType, GPT_4_1106_PreviewSchema, GPT_4_Turbo, GPT_4_TurboLiteral, GPT_4_TurboOptions, type GPT_4_TurboOptionsType, GPT_4_TurboSchema, GPT_4_Turbo_2024_04_09, GPT_4_Turbo_2024_04_09Literal, GPT_4_Turbo_2024_04_09Options, type GPT_4_Turbo_2024_04_09OptionsType, GPT_4_Turbo_2024_04_09Schema, GPT_4_Turbo_Preview, GPT_4_Turbo_PreviewLiteral, GPT_4_Turbo_PreviewOptions, type GPT_4_Turbo_PreviewOptionsType, GPT_4_Turbo_PreviewSchema, GPT_4o, GPT_4oLiteral, GPT_4oOptions, type GPT_4oOptionsType, GPT_4oSchema, GPT_4o_2024_08_06, GPT_4o_2024_08_06Literal, GPT_4o_2024_08_06Options, type GPT_4o_2024_08_06OptionsType, GPT_4o_2024_08_06Schema, GPT_4o_Mini, GPT_4o_MiniLiteral, GPT_4o_MiniOptions, type GPT_4o_MiniOptionsType, GPT_4o_MiniSchema, O1_Mini, O1_MiniLiteral, O1_MiniOptions, type O1_MiniOptionsType, O1_MiniSchema, O1_Preview, O1_PreviewLiteral, O1_PreviewOptions, type O1_PreviewOptionsType, O1_PreviewSchema, OpenAI, OpenAIChatModelConfigs, OpenAIChatModelModalities, OpenAIChatModelModalitiesEnum, OpenAIChatModelOSSeriesRoles, OpenAIChatModelOSSeriesRolesMap, OpenAIChatModelRoles, OpenAIChatModelRolesMap, OpenAIChatModelTextModalities, OpenAIChatModelTextModalitiesEnum, OpenAIChatModelTextToolModalities, OpenAIChatModelTextToolModalitiesEnum, OpenAIChatOSeriesRequest, type OpenAIChatOSeriesRequestType, OpenAIChatRequest, OpenAIChatRequestAssistantMessage, type OpenAIChatRequestAssistantMessageType, OpenAIChatRequestImageContent, type OpenAIChatRequestImageContentType, OpenAIChatRequestMessage, type OpenAIChatRequestMessageType, OpenAIChatRequestResponseFormat, type OpenAIChatRequestResponseFormatType, OpenAIChatRequestSystemMessage, type OpenAIChatRequestSystemMessageType, OpenAIChatRequestTextContent, type OpenAIChatRequestTextContentType, OpenAIChatRequestTool, OpenAIChatRequestToolCallContent, type OpenAIChatRequestToolCallContentType, OpenAIChatRequestToolChoiceEnum, type OpenAIChatRequestToolChoiceEnumType, OpenAIChatRequestToolChoiceFunction, type OpenAIChatRequestToolChoiceFunctionType, OpenAIChatRequestToolMessage, type OpenAIChatRequestToolMessageType, type OpenAIChatRequestToolType, type OpenAIChatRequestType, OpenAIChatRequestUserMessage, type OpenAIChatRequestUserMessageType, OpenAICompleteChatResponse, type OpenAICompleteChatResponseType, OpenAIEmbeddingModelConfigs, OpenAIEmbeddingModelModalities, OpenAIEmbeddingModelModalitiesEnum, OpenAIEmbeddingRequest, OpenAIEmbeddingRequestInput, type OpenAIEmbeddingRequestInputType, type OpenAIEmbeddingRequestType, OpenAIGetEmbeddingsResponse, OpenAIStreamChatResponse, type OpenAIStreamChatResponseType, OpenAIToolCallsCompleteChatResponse, OpenAIToolCallsStreamChatResponse, ProviderLiteral, Text_Embedding_3_Large, Text_Embedding_3_LargeLiteral, Text_Embedding_3_LargeSchema, Text_Embedding_3_Large_Options, type Text_Embedding_3_Large_OptionsType, Text_Embedding_3_Small, Text_Embedding_3_SmallLiteral, Text_Embedding_3_SmallSchema, Text_Embedding_3_Small_Options, type Text_Embedding_3_Small_OptionsType, Text_Embedding_Ada002, Text_Embedding_Ada002Literal, Text_Embedding_Ada002Schema, Text_Embedding_Ada002_Options, type Text_Embedding_Ada002_OptionsType, dimensions, encodingFormat, frequencyPenalty, logProbs, maxTokens, presencePenalty, seed, stop, temperature, toolChoice, topLogProbs, topP };