@adaline/openai 0.15.0 → 0.16.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
@@ -12,9 +12,9 @@ declare const OpenAIChatModelConfigs: {
12
12
  title: string;
13
13
  description: string;
14
14
  max: number;
15
+ default: number;
15
16
  min: number;
16
17
  step: number;
17
- default: number;
18
18
  };
19
19
  readonly maxTokens: {
20
20
  type: "range";
@@ -22,9 +22,9 @@ declare const OpenAIChatModelConfigs: {
22
22
  title: string;
23
23
  description: string;
24
24
  max: number;
25
+ default: number;
25
26
  min: number;
26
27
  step: number;
27
- default: number;
28
28
  };
29
29
  readonly stop: {
30
30
  type: "multi-string";
@@ -39,9 +39,9 @@ declare const OpenAIChatModelConfigs: {
39
39
  title: string;
40
40
  description: string;
41
41
  max: number;
42
+ default: number;
42
43
  min: number;
43
44
  step: number;
44
- default: number;
45
45
  };
46
46
  readonly frequencyPenalty: {
47
47
  type: "range";
@@ -49,9 +49,9 @@ declare const OpenAIChatModelConfigs: {
49
49
  title: string;
50
50
  description: string;
51
51
  max: number;
52
+ default: number;
52
53
  min: number;
53
54
  step: number;
54
- default: number;
55
55
  };
56
56
  readonly presencePenalty: {
57
57
  type: "range";
@@ -59,9 +59,9 @@ declare const OpenAIChatModelConfigs: {
59
59
  title: string;
60
60
  description: string;
61
61
  max: number;
62
+ default: number;
62
63
  min: number;
63
64
  step: number;
64
- default: number;
65
65
  };
66
66
  readonly seed: {
67
67
  type: "range";
@@ -69,9 +69,9 @@ declare const OpenAIChatModelConfigs: {
69
69
  title: string;
70
70
  description: string;
71
71
  max: number;
72
+ default: number;
72
73
  min: number;
73
74
  step: number;
74
- default: number;
75
75
  };
76
76
  readonly logProbs: {
77
77
  type: "select-boolean";
@@ -86,9 +86,9 @@ declare const OpenAIChatModelConfigs: {
86
86
  title: string;
87
87
  description: string;
88
88
  max: number;
89
+ default: number;
89
90
  min: number;
90
91
  step: number;
91
- default: number;
92
92
  };
93
93
  readonly toolChoice: {
94
94
  type: "select-string";
@@ -150,9 +150,9 @@ declare const OpenAIChatModelConfigs: {
150
150
  title: string;
151
151
  description: string;
152
152
  max: number;
153
+ default: number;
153
154
  min: number;
154
155
  step: number;
155
- default: number;
156
156
  };
157
157
  maxTokens: {
158
158
  type: "range";
@@ -160,9 +160,9 @@ declare const OpenAIChatModelConfigs: {
160
160
  title: string;
161
161
  description: string;
162
162
  max: number;
163
+ default: number;
163
164
  min: number;
164
165
  step: number;
165
- default: number;
166
166
  };
167
167
  stop: {
168
168
  type: "multi-string";
@@ -177,9 +177,9 @@ declare const OpenAIChatModelConfigs: {
177
177
  title: string;
178
178
  description: string;
179
179
  max: number;
180
+ default: number;
180
181
  min: number;
181
182
  step: number;
182
- default: number;
183
183
  };
184
184
  frequencyPenalty: {
185
185
  type: "range";
@@ -187,9 +187,9 @@ declare const OpenAIChatModelConfigs: {
187
187
  title: string;
188
188
  description: string;
189
189
  max: number;
190
+ default: number;
190
191
  min: number;
191
192
  step: number;
192
- default: number;
193
193
  };
194
194
  presencePenalty: {
195
195
  type: "range";
@@ -197,9 +197,9 @@ declare const OpenAIChatModelConfigs: {
197
197
  title: string;
198
198
  description: string;
199
199
  max: number;
200
+ default: number;
200
201
  min: number;
201
202
  step: number;
202
- default: number;
203
203
  };
204
204
  seed: {
205
205
  type: "range";
@@ -207,9 +207,9 @@ declare const OpenAIChatModelConfigs: {
207
207
  title: string;
208
208
  description: string;
209
209
  max: number;
210
+ default: number;
210
211
  min: number;
211
212
  step: number;
212
- default: number;
213
213
  };
214
214
  logProbs: {
215
215
  type: "select-boolean";
@@ -224,9 +224,9 @@ declare const OpenAIChatModelConfigs: {
224
224
  title: string;
225
225
  description: string;
226
226
  max: number;
227
+ default: number;
227
228
  min: number;
228
229
  step: number;
229
- default: number;
230
230
  };
231
231
  toolChoice: {
232
232
  type: "select-string";
@@ -299,9 +299,9 @@ declare const OpenAIChatModelConfigs: {
299
299
  title: string;
300
300
  description: string;
301
301
  max: number;
302
+ default: number;
302
303
  min: number;
303
304
  step: number;
304
- default: number;
305
305
  };
306
306
  maxTokens: {
307
307
  type: "range";
@@ -309,9 +309,9 @@ declare const OpenAIChatModelConfigs: {
309
309
  title: string;
310
310
  description: string;
311
311
  max: number;
312
+ default: number;
312
313
  min: number;
313
314
  step: number;
314
- default: number;
315
315
  };
316
316
  stop: {
317
317
  type: "multi-string";
@@ -326,9 +326,9 @@ declare const OpenAIChatModelConfigs: {
326
326
  title: string;
327
327
  description: string;
328
328
  max: number;
329
+ default: number;
329
330
  min: number;
330
331
  step: number;
331
- default: number;
332
332
  };
333
333
  frequencyPenalty: {
334
334
  type: "range";
@@ -336,9 +336,9 @@ declare const OpenAIChatModelConfigs: {
336
336
  title: string;
337
337
  description: string;
338
338
  max: number;
339
+ default: number;
339
340
  min: number;
340
341
  step: number;
341
- default: number;
342
342
  };
343
343
  presencePenalty: {
344
344
  type: "range";
@@ -346,9 +346,9 @@ declare const OpenAIChatModelConfigs: {
346
346
  title: string;
347
347
  description: string;
348
348
  max: number;
349
+ default: number;
349
350
  min: number;
350
351
  step: number;
351
- default: number;
352
352
  };
353
353
  seed: {
354
354
  type: "range";
@@ -356,9 +356,9 @@ declare const OpenAIChatModelConfigs: {
356
356
  title: string;
357
357
  description: string;
358
358
  max: number;
359
+ default: number;
359
360
  min: number;
360
361
  step: number;
361
- default: number;
362
362
  };
363
363
  logProbs: {
364
364
  type: "select-boolean";
@@ -373,9 +373,9 @@ declare const OpenAIChatModelConfigs: {
373
373
  title: string;
374
374
  description: string;
375
375
  max: number;
376
+ default: number;
376
377
  min: number;
377
378
  step: number;
378
- default: number;
379
379
  };
380
380
  toolChoice: {
381
381
  type: "select-string";
@@ -444,9 +444,9 @@ declare const OpenAIChatModelConfigs: {
444
444
  title: string;
445
445
  description: string;
446
446
  max: number;
447
+ default: number;
447
448
  min: number;
448
449
  step: number;
449
- default: number;
450
450
  };
451
451
  maxTokens: {
452
452
  type: "range";
@@ -454,9 +454,9 @@ declare const OpenAIChatModelConfigs: {
454
454
  title: string;
455
455
  description: string;
456
456
  max: number;
457
+ default: number;
457
458
  min: number;
458
459
  step: number;
459
- default: number;
460
460
  };
461
461
  responseFormat: {
462
462
  type: "select-string";
@@ -486,9 +486,9 @@ declare const OpenAIChatModelConfigs: {
486
486
  title: string;
487
487
  description: string;
488
488
  max: number;
489
+ default: number;
489
490
  min: number;
490
491
  step: number;
491
- default: number;
492
492
  };
493
493
  frequencyPenalty: {
494
494
  type: "range";
@@ -496,9 +496,9 @@ declare const OpenAIChatModelConfigs: {
496
496
  title: string;
497
497
  description: string;
498
498
  max: number;
499
+ default: number;
499
500
  min: number;
500
501
  step: number;
501
- default: number;
502
502
  };
503
503
  presencePenalty: {
504
504
  type: "range";
@@ -506,9 +506,9 @@ declare const OpenAIChatModelConfigs: {
506
506
  title: string;
507
507
  description: string;
508
508
  max: number;
509
+ default: number;
509
510
  min: number;
510
511
  step: number;
511
- default: number;
512
512
  };
513
513
  seed: {
514
514
  type: "range";
@@ -516,9 +516,9 @@ declare const OpenAIChatModelConfigs: {
516
516
  title: string;
517
517
  description: string;
518
518
  max: number;
519
+ default: number;
519
520
  min: number;
520
521
  step: number;
521
- default: number;
522
522
  };
523
523
  logProbs: {
524
524
  type: "select-boolean";
@@ -533,9 +533,9 @@ declare const OpenAIChatModelConfigs: {
533
533
  title: string;
534
534
  description: string;
535
535
  max: number;
536
+ default: number;
536
537
  min: number;
537
538
  step: number;
538
- default: number;
539
539
  };
540
540
  toolChoice: {
541
541
  type: "select-string";
@@ -628,9 +628,9 @@ declare const OpenAIEmbeddingModelConfigs: {
628
628
  title: string;
629
629
  description: string;
630
630
  max: number;
631
+ default: number;
631
632
  min: number;
632
633
  step: number;
633
- default: number;
634
634
  };
635
635
  readonly encodingFormat: {
636
636
  type: "select-string";
@@ -696,9 +696,9 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
696
696
  title: string;
697
697
  description: string;
698
698
  max: number;
699
+ default: number;
699
700
  min: number;
700
701
  step: number;
701
- default: number;
702
702
  };
703
703
  readonly maxTokens: {
704
704
  type: "range";
@@ -706,9 +706,9 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
706
706
  title: string;
707
707
  description: string;
708
708
  max: number;
709
+ default: number;
709
710
  min: number;
710
711
  step: number;
711
- default: number;
712
712
  };
713
713
  readonly stop: {
714
714
  type: "multi-string";
@@ -723,9 +723,9 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
723
723
  title: string;
724
724
  description: string;
725
725
  max: number;
726
+ default: number;
726
727
  min: number;
727
728
  step: number;
728
- default: number;
729
729
  };
730
730
  readonly frequencyPenalty: {
731
731
  type: "range";
@@ -733,9 +733,9 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
733
733
  title: string;
734
734
  description: string;
735
735
  max: number;
736
+ default: number;
736
737
  min: number;
737
738
  step: number;
738
- default: number;
739
739
  };
740
740
  readonly presencePenalty: {
741
741
  type: "range";
@@ -743,9 +743,9 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
743
743
  title: string;
744
744
  description: string;
745
745
  max: number;
746
+ default: number;
746
747
  min: number;
747
748
  step: number;
748
- default: number;
749
749
  };
750
750
  readonly seed: {
751
751
  type: "range";
@@ -753,9 +753,9 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
753
753
  title: string;
754
754
  description: string;
755
755
  max: number;
756
+ default: number;
756
757
  min: number;
757
758
  step: number;
758
- default: number;
759
759
  };
760
760
  readonly logProbs: {
761
761
  type: "select-boolean";
@@ -770,9 +770,9 @@ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: nu
770
770
  title: string;
771
771
  description: string;
772
772
  max: number;
773
+ default: number;
773
774
  min: number;
774
775
  step: number;
775
- default: number;
776
776
  };
777
777
  readonly toolChoice: {
778
778
  type: "select-string";
@@ -791,9 +791,9 @@ declare const temperature: {
791
791
  title: string;
792
792
  description: string;
793
793
  max: number;
794
+ default: number;
794
795
  min: number;
795
796
  step: number;
796
- default: number;
797
797
  };
798
798
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
799
799
  };
@@ -804,9 +804,9 @@ declare const maxTokens: (maxOutputTokens: number) => {
804
804
  title: string;
805
805
  description: string;
806
806
  max: number;
807
+ default: number;
807
808
  min: number;
808
809
  step: number;
809
- default: number;
810
810
  };
811
811
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
812
812
  };
@@ -827,9 +827,9 @@ declare const topP: {
827
827
  title: string;
828
828
  description: string;
829
829
  max: number;
830
+ default: number;
830
831
  min: number;
831
832
  step: number;
832
- default: number;
833
833
  };
834
834
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
835
835
  };
@@ -840,9 +840,9 @@ declare const frequencyPenalty: {
840
840
  title: string;
841
841
  description: string;
842
842
  max: number;
843
+ default: number;
843
844
  min: number;
844
845
  step: number;
845
- default: number;
846
846
  };
847
847
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
848
848
  };
@@ -853,9 +853,9 @@ declare const presencePenalty: {
853
853
  title: string;
854
854
  description: string;
855
855
  max: number;
856
+ default: number;
856
857
  min: number;
857
858
  step: number;
858
- default: number;
859
859
  };
860
860
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
861
861
  };
@@ -866,9 +866,9 @@ declare const seed: {
866
866
  title: string;
867
867
  description: string;
868
868
  max: number;
869
+ default: number;
869
870
  min: number;
870
871
  step: number;
871
- default: number;
872
872
  };
873
873
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
874
874
  };
@@ -889,9 +889,9 @@ declare const topLogProbs: {
889
889
  title: string;
890
890
  description: string;
891
891
  max: number;
892
+ default: number;
892
893
  min: number;
893
894
  step: number;
894
- default: number;
895
895
  };
896
896
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
897
897
  };
@@ -922,9 +922,9 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
922
922
  title: string;
923
923
  description: string;
924
924
  max: number;
925
+ default: number;
925
926
  min: number;
926
927
  step: number;
927
- default: number;
928
928
  };
929
929
  maxTokens: {
930
930
  type: "range";
@@ -932,9 +932,9 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
932
932
  title: string;
933
933
  description: string;
934
934
  max: number;
935
+ default: number;
935
936
  min: number;
936
937
  step: number;
937
- default: number;
938
938
  };
939
939
  stop: {
940
940
  type: "multi-string";
@@ -949,9 +949,9 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
949
949
  title: string;
950
950
  description: string;
951
951
  max: number;
952
+ default: number;
952
953
  min: number;
953
954
  step: number;
954
- default: number;
955
955
  };
956
956
  frequencyPenalty: {
957
957
  type: "range";
@@ -959,9 +959,9 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
959
959
  title: string;
960
960
  description: string;
961
961
  max: number;
962
+ default: number;
962
963
  min: number;
963
964
  step: number;
964
- default: number;
965
965
  };
966
966
  presencePenalty: {
967
967
  type: "range";
@@ -969,9 +969,9 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
969
969
  title: string;
970
970
  description: string;
971
971
  max: number;
972
+ default: number;
972
973
  min: number;
973
974
  step: number;
974
- default: number;
975
975
  };
976
976
  seed: {
977
977
  type: "range";
@@ -979,9 +979,9 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
979
979
  title: string;
980
980
  description: string;
981
981
  max: number;
982
+ default: number;
982
983
  min: number;
983
984
  step: number;
984
- default: number;
985
985
  };
986
986
  logProbs: {
987
987
  type: "select-boolean";
@@ -996,9 +996,9 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
996
996
  title: string;
997
997
  description: string;
998
998
  max: number;
999
+ default: number;
999
1000
  min: number;
1000
1001
  step: number;
1001
- default: number;
1002
1002
  };
1003
1003
  toolChoice: {
1004
1004
  type: "select-string";
@@ -1070,9 +1070,9 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1070
1070
  title: string;
1071
1071
  description: string;
1072
1072
  max: number;
1073
+ default: number;
1073
1074
  min: number;
1074
1075
  step: number;
1075
- default: number;
1076
1076
  };
1077
1077
  maxTokens: {
1078
1078
  type: "range";
@@ -1080,9 +1080,9 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1080
1080
  title: string;
1081
1081
  description: string;
1082
1082
  max: number;
1083
+ default: number;
1083
1084
  min: number;
1084
1085
  step: number;
1085
- default: number;
1086
1086
  };
1087
1087
  stop: {
1088
1088
  type: "multi-string";
@@ -1097,9 +1097,9 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1097
1097
  title: string;
1098
1098
  description: string;
1099
1099
  max: number;
1100
+ default: number;
1100
1101
  min: number;
1101
1102
  step: number;
1102
- default: number;
1103
1103
  };
1104
1104
  frequencyPenalty: {
1105
1105
  type: "range";
@@ -1107,9 +1107,9 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1107
1107
  title: string;
1108
1108
  description: string;
1109
1109
  max: number;
1110
+ default: number;
1110
1111
  min: number;
1111
1112
  step: number;
1112
- default: number;
1113
1113
  };
1114
1114
  presencePenalty: {
1115
1115
  type: "range";
@@ -1117,9 +1117,9 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1117
1117
  title: string;
1118
1118
  description: string;
1119
1119
  max: number;
1120
+ default: number;
1120
1121
  min: number;
1121
1122
  step: number;
1122
- default: number;
1123
1123
  };
1124
1124
  seed: {
1125
1125
  type: "range";
@@ -1127,9 +1127,9 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1127
1127
  title: string;
1128
1128
  description: string;
1129
1129
  max: number;
1130
+ default: number;
1130
1131
  min: number;
1131
1132
  step: number;
1132
- default: number;
1133
1133
  };
1134
1134
  logProbs: {
1135
1135
  type: "select-boolean";
@@ -1144,9 +1144,9 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1144
1144
  title: string;
1145
1145
  description: string;
1146
1146
  max: number;
1147
+ default: number;
1147
1148
  min: number;
1148
1149
  step: number;
1149
- default: number;
1150
1150
  };
1151
1151
  toolChoice: {
1152
1152
  type: "select-string";
@@ -1214,9 +1214,9 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1214
1214
  title: string;
1215
1215
  description: string;
1216
1216
  max: number;
1217
+ default: number;
1217
1218
  min: number;
1218
1219
  step: number;
1219
- default: number;
1220
1220
  };
1221
1221
  maxTokens: {
1222
1222
  type: "range";
@@ -1224,9 +1224,9 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1224
1224
  title: string;
1225
1225
  description: string;
1226
1226
  max: number;
1227
+ default: number;
1227
1228
  min: number;
1228
1229
  step: number;
1229
- default: number;
1230
1230
  };
1231
1231
  responseFormat: {
1232
1232
  type: "select-string";
@@ -1256,9 +1256,9 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1256
1256
  title: string;
1257
1257
  description: string;
1258
1258
  max: number;
1259
+ default: number;
1259
1260
  min: number;
1260
1261
  step: number;
1261
- default: number;
1262
1262
  };
1263
1263
  frequencyPenalty: {
1264
1264
  type: "range";
@@ -1266,9 +1266,9 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1266
1266
  title: string;
1267
1267
  description: string;
1268
1268
  max: number;
1269
+ default: number;
1269
1270
  min: number;
1270
1271
  step: number;
1271
- default: number;
1272
1272
  };
1273
1273
  presencePenalty: {
1274
1274
  type: "range";
@@ -1276,9 +1276,9 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1276
1276
  title: string;
1277
1277
  description: string;
1278
1278
  max: number;
1279
+ default: number;
1279
1280
  min: number;
1280
1281
  step: number;
1281
- default: number;
1282
1282
  };
1283
1283
  seed: {
1284
1284
  type: "range";
@@ -1286,9 +1286,9 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1286
1286
  title: string;
1287
1287
  description: string;
1288
1288
  max: number;
1289
+ default: number;
1289
1290
  min: number;
1290
1291
  step: number;
1291
- default: number;
1292
1292
  };
1293
1293
  logProbs: {
1294
1294
  type: "select-boolean";
@@ -1303,9 +1303,9 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1303
1303
  title: string;
1304
1304
  description: string;
1305
1305
  max: number;
1306
+ default: number;
1306
1307
  min: number;
1307
1308
  step: number;
1308
- default: number;
1309
1309
  };
1310
1310
  toolChoice: {
1311
1311
  type: "select-string";
@@ -1405,9 +1405,9 @@ declare const dimensions: (maxDimensions: number) => {
1405
1405
  title: string;
1406
1406
  description: string;
1407
1407
  max: number;
1408
+ default: number;
1408
1409
  min: number;
1409
1410
  step: number;
1410
- default: number;
1411
1411
  };
1412
1412
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1413
1413
  };
@@ -1430,9 +1430,9 @@ declare const EmbeddingModelDimensionsConfigDef: (maxDimensions: number) => {
1430
1430
  title: string;
1431
1431
  description: string;
1432
1432
  max: number;
1433
+ default: number;
1433
1434
  min: number;
1434
1435
  step: number;
1435
- default: number;
1436
1436
  };
1437
1437
  readonly encodingFormat: {
1438
1438
  type: "select-string";
@@ -3632,18 +3632,21 @@ declare const OpenAIChatOSeriesRequest: z.ZodObject<z.objectUtil.extendShape<Omi
3632
3632
  type OpenAIChatOSeriesRequestType = z.infer<typeof OpenAIChatOSeriesRequest>;
3633
3633
 
3634
3634
  declare const BaseChatModelOptions: z.ZodObject<{
3635
+ modelName: z.ZodString;
3635
3636
  apiKey: z.ZodString;
3636
3637
  baseUrl: z.ZodString;
3637
3638
  completeChatUrl: z.ZodOptional<z.ZodString>;
3638
3639
  streamChatUrl: z.ZodOptional<z.ZodString>;
3639
3640
  organization: z.ZodOptional<z.ZodString>;
3640
3641
  }, "strip", z.ZodTypeAny, {
3642
+ modelName: string;
3641
3643
  apiKey: string;
3642
3644
  baseUrl: string;
3643
3645
  completeChatUrl?: string | undefined;
3644
3646
  streamChatUrl?: string | undefined;
3645
3647
  organization?: string | undefined;
3646
3648
  }, {
3649
+ modelName: string;
3647
3650
  apiKey: string;
3648
3651
  baseUrl: string;
3649
3652
  completeChatUrl?: string | undefined;
@@ -3654,6 +3657,7 @@ type BaseChatModelOptionsType = z.infer<typeof BaseChatModelOptions>;
3654
3657
  declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
3655
3658
  readonly version: "v1";
3656
3659
  modelSchema: ChatModelSchemaType;
3660
+ modelName: string;
3657
3661
  private readonly apiKey;
3658
3662
  private readonly baseUrl;
3659
3663
  private readonly streamChatUrl;
@@ -3724,50 +3728,53 @@ declare const GPT_3_5_Turbo_0125Schema: {
3724
3728
  description: string;
3725
3729
  max: number;
3726
3730
  } | {
3727
- type: "range";
3731
+ type: "object-schema";
3728
3732
  param: string;
3729
3733
  title: string;
3730
3734
  description: string;
3731
- max: number;
3732
- min: number;
3733
- step: number;
3734
- default: number;
3735
+ objectSchema?: any;
3735
3736
  } | {
3736
- type: "select-string";
3737
+ type: "range";
3737
3738
  param: string;
3738
3739
  title: string;
3739
3740
  description: string;
3740
- default: string | null;
3741
- choices: string[];
3741
+ max: number;
3742
+ default: number;
3743
+ min: number;
3744
+ step: number;
3742
3745
  } | {
3743
- type: "object-schema";
3746
+ type: "select-boolean";
3744
3747
  param: string;
3745
3748
  title: string;
3746
3749
  description: string;
3747
- objectSchema?: any;
3750
+ default: boolean | null;
3748
3751
  } | {
3749
- type: "select-boolean";
3752
+ type: "select-string";
3750
3753
  param: string;
3751
3754
  title: string;
3752
3755
  description: string;
3753
- default: boolean | null;
3756
+ default: string | null;
3757
+ choices: string[];
3754
3758
  }>;
3755
3759
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3756
3760
  };
3757
3761
  };
3758
3762
  declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
3763
+ modelName: z.ZodString;
3759
3764
  apiKey: z.ZodString;
3760
3765
  baseUrl: z.ZodString;
3761
3766
  completeChatUrl: z.ZodOptional<z.ZodString>;
3762
3767
  streamChatUrl: z.ZodOptional<z.ZodString>;
3763
3768
  organization: z.ZodOptional<z.ZodString>;
3764
3769
  }, "strip", z.ZodTypeAny, {
3770
+ modelName: string;
3765
3771
  apiKey: string;
3766
3772
  baseUrl: string;
3767
3773
  completeChatUrl?: string | undefined;
3768
3774
  streamChatUrl?: string | undefined;
3769
3775
  organization?: string | undefined;
3770
3776
  }, {
3777
+ modelName: string;
3771
3778
  apiKey: string;
3772
3779
  baseUrl: string;
3773
3780
  completeChatUrl?: string | undefined;
@@ -3795,50 +3802,53 @@ declare const GPT_3_5_Turbo_1106Schema: {
3795
3802
  description: string;
3796
3803
  max: number;
3797
3804
  } | {
3798
- type: "range";
3805
+ type: "object-schema";
3799
3806
  param: string;
3800
3807
  title: string;
3801
3808
  description: string;
3802
- max: number;
3803
- min: number;
3804
- step: number;
3805
- default: number;
3809
+ objectSchema?: any;
3806
3810
  } | {
3807
- type: "select-string";
3811
+ type: "range";
3808
3812
  param: string;
3809
3813
  title: string;
3810
3814
  description: string;
3811
- default: string | null;
3812
- choices: string[];
3815
+ max: number;
3816
+ default: number;
3817
+ min: number;
3818
+ step: number;
3813
3819
  } | {
3814
- type: "object-schema";
3820
+ type: "select-boolean";
3815
3821
  param: string;
3816
3822
  title: string;
3817
3823
  description: string;
3818
- objectSchema?: any;
3824
+ default: boolean | null;
3819
3825
  } | {
3820
- type: "select-boolean";
3826
+ type: "select-string";
3821
3827
  param: string;
3822
3828
  title: string;
3823
3829
  description: string;
3824
- default: boolean | null;
3830
+ default: string | null;
3831
+ choices: string[];
3825
3832
  }>;
3826
3833
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3827
3834
  };
3828
3835
  };
3829
3836
  declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
3837
+ modelName: z.ZodString;
3830
3838
  apiKey: z.ZodString;
3831
3839
  baseUrl: z.ZodString;
3832
3840
  completeChatUrl: z.ZodOptional<z.ZodString>;
3833
3841
  streamChatUrl: z.ZodOptional<z.ZodString>;
3834
3842
  organization: z.ZodOptional<z.ZodString>;
3835
3843
  }, "strip", z.ZodTypeAny, {
3844
+ modelName: string;
3836
3845
  apiKey: string;
3837
3846
  baseUrl: string;
3838
3847
  completeChatUrl?: string | undefined;
3839
3848
  streamChatUrl?: string | undefined;
3840
3849
  organization?: string | undefined;
3841
3850
  }, {
3851
+ modelName: string;
3842
3852
  apiKey: string;
3843
3853
  baseUrl: string;
3844
3854
  completeChatUrl?: string | undefined;
@@ -3866,50 +3876,53 @@ declare const GPT_3_5_TurboSchema: {
3866
3876
  description: string;
3867
3877
  max: number;
3868
3878
  } | {
3869
- type: "range";
3879
+ type: "object-schema";
3870
3880
  param: string;
3871
3881
  title: string;
3872
3882
  description: string;
3873
- max: number;
3874
- min: number;
3875
- step: number;
3876
- default: number;
3883
+ objectSchema?: any;
3877
3884
  } | {
3878
- type: "select-string";
3885
+ type: "range";
3879
3886
  param: string;
3880
3887
  title: string;
3881
3888
  description: string;
3882
- default: string | null;
3883
- choices: string[];
3889
+ max: number;
3890
+ default: number;
3891
+ min: number;
3892
+ step: number;
3884
3893
  } | {
3885
- type: "object-schema";
3894
+ type: "select-boolean";
3886
3895
  param: string;
3887
3896
  title: string;
3888
3897
  description: string;
3889
- objectSchema?: any;
3898
+ default: boolean | null;
3890
3899
  } | {
3891
- type: "select-boolean";
3900
+ type: "select-string";
3892
3901
  param: string;
3893
3902
  title: string;
3894
3903
  description: string;
3895
- default: boolean | null;
3904
+ default: string | null;
3905
+ choices: string[];
3896
3906
  }>;
3897
3907
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3898
3908
  };
3899
3909
  };
3900
3910
  declare const GPT_3_5_TurboOptions: z.ZodObject<{
3911
+ modelName: z.ZodString;
3901
3912
  apiKey: z.ZodString;
3902
3913
  baseUrl: z.ZodString;
3903
3914
  completeChatUrl: z.ZodOptional<z.ZodString>;
3904
3915
  streamChatUrl: z.ZodOptional<z.ZodString>;
3905
3916
  organization: z.ZodOptional<z.ZodString>;
3906
3917
  }, "strip", z.ZodTypeAny, {
3918
+ modelName: string;
3907
3919
  apiKey: string;
3908
3920
  baseUrl: string;
3909
3921
  completeChatUrl?: string | undefined;
3910
3922
  streamChatUrl?: string | undefined;
3911
3923
  organization?: string | undefined;
3912
3924
  }, {
3925
+ modelName: string;
3913
3926
  apiKey: string;
3914
3927
  baseUrl: string;
3915
3928
  completeChatUrl?: string | undefined;
@@ -3937,50 +3950,53 @@ declare const GPT_4_0125_PreviewSchema: {
3937
3950
  description: string;
3938
3951
  max: number;
3939
3952
  } | {
3940
- type: "range";
3953
+ type: "object-schema";
3941
3954
  param: string;
3942
3955
  title: string;
3943
3956
  description: string;
3944
- max: number;
3945
- min: number;
3946
- step: number;
3947
- default: number;
3957
+ objectSchema?: any;
3948
3958
  } | {
3949
- type: "select-string";
3959
+ type: "range";
3950
3960
  param: string;
3951
3961
  title: string;
3952
3962
  description: string;
3953
- default: string | null;
3954
- choices: string[];
3963
+ max: number;
3964
+ default: number;
3965
+ min: number;
3966
+ step: number;
3955
3967
  } | {
3956
- type: "object-schema";
3968
+ type: "select-boolean";
3957
3969
  param: string;
3958
3970
  title: string;
3959
3971
  description: string;
3960
- objectSchema?: any;
3972
+ default: boolean | null;
3961
3973
  } | {
3962
- type: "select-boolean";
3974
+ type: "select-string";
3963
3975
  param: string;
3964
3976
  title: string;
3965
3977
  description: string;
3966
- default: boolean | null;
3978
+ default: string | null;
3979
+ choices: string[];
3967
3980
  }>;
3968
3981
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3969
3982
  };
3970
3983
  };
3971
3984
  declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
3985
+ modelName: z.ZodString;
3972
3986
  apiKey: z.ZodString;
3973
3987
  baseUrl: z.ZodString;
3974
3988
  completeChatUrl: z.ZodOptional<z.ZodString>;
3975
3989
  streamChatUrl: z.ZodOptional<z.ZodString>;
3976
3990
  organization: z.ZodOptional<z.ZodString>;
3977
3991
  }, "strip", z.ZodTypeAny, {
3992
+ modelName: string;
3978
3993
  apiKey: string;
3979
3994
  baseUrl: string;
3980
3995
  completeChatUrl?: string | undefined;
3981
3996
  streamChatUrl?: string | undefined;
3982
3997
  organization?: string | undefined;
3983
3998
  }, {
3999
+ modelName: string;
3984
4000
  apiKey: string;
3985
4001
  baseUrl: string;
3986
4002
  completeChatUrl?: string | undefined;
@@ -4008,50 +4024,53 @@ declare const GPT_4_0613Schema: {
4008
4024
  description: string;
4009
4025
  max: number;
4010
4026
  } | {
4011
- type: "range";
4027
+ type: "object-schema";
4012
4028
  param: string;
4013
4029
  title: string;
4014
4030
  description: string;
4015
- max: number;
4016
- min: number;
4017
- step: number;
4018
- default: number;
4031
+ objectSchema?: any;
4019
4032
  } | {
4020
- type: "select-string";
4033
+ type: "range";
4021
4034
  param: string;
4022
4035
  title: string;
4023
4036
  description: string;
4024
- default: string | null;
4025
- choices: string[];
4037
+ max: number;
4038
+ default: number;
4039
+ min: number;
4040
+ step: number;
4026
4041
  } | {
4027
- type: "object-schema";
4042
+ type: "select-boolean";
4028
4043
  param: string;
4029
4044
  title: string;
4030
4045
  description: string;
4031
- objectSchema?: any;
4046
+ default: boolean | null;
4032
4047
  } | {
4033
- type: "select-boolean";
4048
+ type: "select-string";
4034
4049
  param: string;
4035
4050
  title: string;
4036
4051
  description: string;
4037
- default: boolean | null;
4052
+ default: string | null;
4053
+ choices: string[];
4038
4054
  }>;
4039
4055
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4040
4056
  };
4041
4057
  };
4042
4058
  declare const GPT_4_0613Options: z.ZodObject<{
4059
+ modelName: z.ZodString;
4043
4060
  apiKey: z.ZodString;
4044
4061
  baseUrl: z.ZodString;
4045
4062
  completeChatUrl: z.ZodOptional<z.ZodString>;
4046
4063
  streamChatUrl: z.ZodOptional<z.ZodString>;
4047
4064
  organization: z.ZodOptional<z.ZodString>;
4048
4065
  }, "strip", z.ZodTypeAny, {
4066
+ modelName: string;
4049
4067
  apiKey: string;
4050
4068
  baseUrl: string;
4051
4069
  completeChatUrl?: string | undefined;
4052
4070
  streamChatUrl?: string | undefined;
4053
4071
  organization?: string | undefined;
4054
4072
  }, {
4073
+ modelName: string;
4055
4074
  apiKey: string;
4056
4075
  baseUrl: string;
4057
4076
  completeChatUrl?: string | undefined;
@@ -4079,50 +4098,53 @@ declare const GPT_4_1106_PreviewSchema: {
4079
4098
  description: string;
4080
4099
  max: number;
4081
4100
  } | {
4082
- type: "range";
4101
+ type: "object-schema";
4083
4102
  param: string;
4084
4103
  title: string;
4085
4104
  description: string;
4086
- max: number;
4087
- min: number;
4088
- step: number;
4089
- default: number;
4105
+ objectSchema?: any;
4090
4106
  } | {
4091
- type: "select-string";
4107
+ type: "range";
4092
4108
  param: string;
4093
4109
  title: string;
4094
4110
  description: string;
4095
- default: string | null;
4096
- choices: string[];
4111
+ max: number;
4112
+ default: number;
4113
+ min: number;
4114
+ step: number;
4097
4115
  } | {
4098
- type: "object-schema";
4116
+ type: "select-boolean";
4099
4117
  param: string;
4100
4118
  title: string;
4101
4119
  description: string;
4102
- objectSchema?: any;
4120
+ default: boolean | null;
4103
4121
  } | {
4104
- type: "select-boolean";
4122
+ type: "select-string";
4105
4123
  param: string;
4106
4124
  title: string;
4107
4125
  description: string;
4108
- default: boolean | null;
4126
+ default: string | null;
4127
+ choices: string[];
4109
4128
  }>;
4110
4129
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4111
4130
  };
4112
4131
  };
4113
4132
  declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
4133
+ modelName: z.ZodString;
4114
4134
  apiKey: z.ZodString;
4115
4135
  baseUrl: z.ZodString;
4116
4136
  completeChatUrl: z.ZodOptional<z.ZodString>;
4117
4137
  streamChatUrl: z.ZodOptional<z.ZodString>;
4118
4138
  organization: z.ZodOptional<z.ZodString>;
4119
4139
  }, "strip", z.ZodTypeAny, {
4140
+ modelName: string;
4120
4141
  apiKey: string;
4121
4142
  baseUrl: string;
4122
4143
  completeChatUrl?: string | undefined;
4123
4144
  streamChatUrl?: string | undefined;
4124
4145
  organization?: string | undefined;
4125
4146
  }, {
4147
+ modelName: string;
4126
4148
  apiKey: string;
4127
4149
  baseUrl: string;
4128
4150
  completeChatUrl?: string | undefined;
@@ -4150,50 +4172,53 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
4150
4172
  description: string;
4151
4173
  max: number;
4152
4174
  } | {
4153
- type: "range";
4175
+ type: "object-schema";
4154
4176
  param: string;
4155
4177
  title: string;
4156
4178
  description: string;
4157
- max: number;
4158
- min: number;
4159
- step: number;
4160
- default: number;
4179
+ objectSchema?: any;
4161
4180
  } | {
4162
- type: "select-string";
4181
+ type: "range";
4163
4182
  param: string;
4164
4183
  title: string;
4165
4184
  description: string;
4166
- default: string | null;
4167
- choices: string[];
4185
+ max: number;
4186
+ default: number;
4187
+ min: number;
4188
+ step: number;
4168
4189
  } | {
4169
- type: "object-schema";
4190
+ type: "select-boolean";
4170
4191
  param: string;
4171
4192
  title: string;
4172
4193
  description: string;
4173
- objectSchema?: any;
4194
+ default: boolean | null;
4174
4195
  } | {
4175
- type: "select-boolean";
4196
+ type: "select-string";
4176
4197
  param: string;
4177
4198
  title: string;
4178
4199
  description: string;
4179
- default: boolean | null;
4200
+ default: string | null;
4201
+ choices: string[];
4180
4202
  }>;
4181
4203
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4182
4204
  };
4183
4205
  };
4184
4206
  declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
4207
+ modelName: z.ZodString;
4185
4208
  apiKey: z.ZodString;
4186
4209
  baseUrl: z.ZodString;
4187
4210
  completeChatUrl: z.ZodOptional<z.ZodString>;
4188
4211
  streamChatUrl: z.ZodOptional<z.ZodString>;
4189
4212
  organization: z.ZodOptional<z.ZodString>;
4190
4213
  }, "strip", z.ZodTypeAny, {
4214
+ modelName: string;
4191
4215
  apiKey: string;
4192
4216
  baseUrl: string;
4193
4217
  completeChatUrl?: string | undefined;
4194
4218
  streamChatUrl?: string | undefined;
4195
4219
  organization?: string | undefined;
4196
4220
  }, {
4221
+ modelName: string;
4197
4222
  apiKey: string;
4198
4223
  baseUrl: string;
4199
4224
  completeChatUrl?: string | undefined;
@@ -4221,50 +4246,53 @@ declare const GPT_4_Turbo_PreviewSchema: {
4221
4246
  description: string;
4222
4247
  max: number;
4223
4248
  } | {
4224
- type: "range";
4249
+ type: "object-schema";
4225
4250
  param: string;
4226
4251
  title: string;
4227
4252
  description: string;
4228
- max: number;
4229
- min: number;
4230
- step: number;
4231
- default: number;
4253
+ objectSchema?: any;
4232
4254
  } | {
4233
- type: "select-string";
4255
+ type: "range";
4234
4256
  param: string;
4235
4257
  title: string;
4236
4258
  description: string;
4237
- default: string | null;
4238
- choices: string[];
4259
+ max: number;
4260
+ default: number;
4261
+ min: number;
4262
+ step: number;
4239
4263
  } | {
4240
- type: "object-schema";
4264
+ type: "select-boolean";
4241
4265
  param: string;
4242
4266
  title: string;
4243
4267
  description: string;
4244
- objectSchema?: any;
4268
+ default: boolean | null;
4245
4269
  } | {
4246
- type: "select-boolean";
4270
+ type: "select-string";
4247
4271
  param: string;
4248
4272
  title: string;
4249
4273
  description: string;
4250
- default: boolean | null;
4274
+ default: string | null;
4275
+ choices: string[];
4251
4276
  }>;
4252
4277
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4253
4278
  };
4254
4279
  };
4255
4280
  declare const GPT_4_Turbo_PreviewOptions: z.ZodObject<{
4281
+ modelName: z.ZodString;
4256
4282
  apiKey: z.ZodString;
4257
4283
  baseUrl: z.ZodString;
4258
4284
  completeChatUrl: z.ZodOptional<z.ZodString>;
4259
4285
  streamChatUrl: z.ZodOptional<z.ZodString>;
4260
4286
  organization: z.ZodOptional<z.ZodString>;
4261
4287
  }, "strip", z.ZodTypeAny, {
4288
+ modelName: string;
4262
4289
  apiKey: string;
4263
4290
  baseUrl: string;
4264
4291
  completeChatUrl?: string | undefined;
4265
4292
  streamChatUrl?: string | undefined;
4266
4293
  organization?: string | undefined;
4267
4294
  }, {
4295
+ modelName: string;
4268
4296
  apiKey: string;
4269
4297
  baseUrl: string;
4270
4298
  completeChatUrl?: string | undefined;
@@ -4292,50 +4320,53 @@ declare const GPT_4_TurboSchema: {
4292
4320
  description: string;
4293
4321
  max: number;
4294
4322
  } | {
4295
- type: "range";
4323
+ type: "object-schema";
4296
4324
  param: string;
4297
4325
  title: string;
4298
4326
  description: string;
4299
- max: number;
4300
- min: number;
4301
- step: number;
4302
- default: number;
4327
+ objectSchema?: any;
4303
4328
  } | {
4304
- type: "select-string";
4329
+ type: "range";
4305
4330
  param: string;
4306
4331
  title: string;
4307
4332
  description: string;
4308
- default: string | null;
4309
- choices: string[];
4333
+ max: number;
4334
+ default: number;
4335
+ min: number;
4336
+ step: number;
4310
4337
  } | {
4311
- type: "object-schema";
4338
+ type: "select-boolean";
4312
4339
  param: string;
4313
4340
  title: string;
4314
4341
  description: string;
4315
- objectSchema?: any;
4342
+ default: boolean | null;
4316
4343
  } | {
4317
- type: "select-boolean";
4344
+ type: "select-string";
4318
4345
  param: string;
4319
4346
  title: string;
4320
4347
  description: string;
4321
- default: boolean | null;
4348
+ default: string | null;
4349
+ choices: string[];
4322
4350
  }>;
4323
4351
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4324
4352
  };
4325
4353
  };
4326
4354
  declare const GPT_4_TurboOptions: z.ZodObject<{
4355
+ modelName: z.ZodString;
4327
4356
  apiKey: z.ZodString;
4328
4357
  baseUrl: z.ZodString;
4329
4358
  completeChatUrl: z.ZodOptional<z.ZodString>;
4330
4359
  streamChatUrl: z.ZodOptional<z.ZodString>;
4331
4360
  organization: z.ZodOptional<z.ZodString>;
4332
4361
  }, "strip", z.ZodTypeAny, {
4362
+ modelName: string;
4333
4363
  apiKey: string;
4334
4364
  baseUrl: string;
4335
4365
  completeChatUrl?: string | undefined;
4336
4366
  streamChatUrl?: string | undefined;
4337
4367
  organization?: string | undefined;
4338
4368
  }, {
4369
+ modelName: string;
4339
4370
  apiKey: string;
4340
4371
  baseUrl: string;
4341
4372
  completeChatUrl?: string | undefined;
@@ -4363,50 +4394,53 @@ declare const GPT_4Schema: {
4363
4394
  description: string;
4364
4395
  max: number;
4365
4396
  } | {
4366
- type: "range";
4397
+ type: "object-schema";
4367
4398
  param: string;
4368
4399
  title: string;
4369
4400
  description: string;
4370
- max: number;
4371
- min: number;
4372
- step: number;
4373
- default: number;
4401
+ objectSchema?: any;
4374
4402
  } | {
4375
- type: "select-string";
4403
+ type: "range";
4376
4404
  param: string;
4377
4405
  title: string;
4378
4406
  description: string;
4379
- default: string | null;
4380
- choices: string[];
4407
+ max: number;
4408
+ default: number;
4409
+ min: number;
4410
+ step: number;
4381
4411
  } | {
4382
- type: "object-schema";
4412
+ type: "select-boolean";
4383
4413
  param: string;
4384
4414
  title: string;
4385
4415
  description: string;
4386
- objectSchema?: any;
4416
+ default: boolean | null;
4387
4417
  } | {
4388
- type: "select-boolean";
4418
+ type: "select-string";
4389
4419
  param: string;
4390
4420
  title: string;
4391
4421
  description: string;
4392
- default: boolean | null;
4422
+ default: string | null;
4423
+ choices: string[];
4393
4424
  }>;
4394
4425
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4395
4426
  };
4396
4427
  };
4397
4428
  declare const GPT_4Options: z.ZodObject<{
4429
+ modelName: z.ZodString;
4398
4430
  apiKey: z.ZodString;
4399
4431
  baseUrl: z.ZodString;
4400
4432
  completeChatUrl: z.ZodOptional<z.ZodString>;
4401
4433
  streamChatUrl: z.ZodOptional<z.ZodString>;
4402
4434
  organization: z.ZodOptional<z.ZodString>;
4403
4435
  }, "strip", z.ZodTypeAny, {
4436
+ modelName: string;
4404
4437
  apiKey: string;
4405
4438
  baseUrl: string;
4406
4439
  completeChatUrl?: string | undefined;
4407
4440
  streamChatUrl?: string | undefined;
4408
4441
  organization?: string | undefined;
4409
4442
  }, {
4443
+ modelName: string;
4410
4444
  apiKey: string;
4411
4445
  baseUrl: string;
4412
4446
  completeChatUrl?: string | undefined;
@@ -4434,50 +4468,53 @@ declare const GPT_4o_2024_08_06Schema: {
4434
4468
  description: string;
4435
4469
  max: number;
4436
4470
  } | {
4437
- type: "range";
4471
+ type: "object-schema";
4438
4472
  param: string;
4439
4473
  title: string;
4440
4474
  description: string;
4441
- max: number;
4442
- min: number;
4443
- step: number;
4444
- default: number;
4475
+ objectSchema?: any;
4445
4476
  } | {
4446
- type: "select-string";
4477
+ type: "range";
4447
4478
  param: string;
4448
4479
  title: string;
4449
4480
  description: string;
4450
- default: string | null;
4451
- choices: string[];
4481
+ max: number;
4482
+ default: number;
4483
+ min: number;
4484
+ step: number;
4452
4485
  } | {
4453
- type: "object-schema";
4486
+ type: "select-boolean";
4454
4487
  param: string;
4455
4488
  title: string;
4456
4489
  description: string;
4457
- objectSchema?: any;
4490
+ default: boolean | null;
4458
4491
  } | {
4459
- type: "select-boolean";
4492
+ type: "select-string";
4460
4493
  param: string;
4461
4494
  title: string;
4462
4495
  description: string;
4463
- default: boolean | null;
4496
+ default: string | null;
4497
+ choices: string[];
4464
4498
  }>;
4465
4499
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4466
4500
  };
4467
4501
  };
4468
4502
  declare const GPT_4o_2024_08_06Options: z.ZodObject<{
4503
+ modelName: z.ZodString;
4469
4504
  apiKey: z.ZodString;
4470
4505
  baseUrl: z.ZodString;
4471
4506
  completeChatUrl: z.ZodOptional<z.ZodString>;
4472
4507
  streamChatUrl: z.ZodOptional<z.ZodString>;
4473
4508
  organization: z.ZodOptional<z.ZodString>;
4474
4509
  }, "strip", z.ZodTypeAny, {
4510
+ modelName: string;
4475
4511
  apiKey: string;
4476
4512
  baseUrl: string;
4477
4513
  completeChatUrl?: string | undefined;
4478
4514
  streamChatUrl?: string | undefined;
4479
4515
  organization?: string | undefined;
4480
4516
  }, {
4517
+ modelName: string;
4481
4518
  apiKey: string;
4482
4519
  baseUrl: string;
4483
4520
  completeChatUrl?: string | undefined;
@@ -4505,50 +4542,53 @@ declare const GPT_4o_MiniSchema: {
4505
4542
  description: string;
4506
4543
  max: number;
4507
4544
  } | {
4508
- type: "range";
4545
+ type: "object-schema";
4509
4546
  param: string;
4510
4547
  title: string;
4511
4548
  description: string;
4512
- max: number;
4513
- min: number;
4514
- step: number;
4515
- default: number;
4549
+ objectSchema?: any;
4516
4550
  } | {
4517
- type: "select-string";
4551
+ type: "range";
4518
4552
  param: string;
4519
4553
  title: string;
4520
4554
  description: string;
4521
- default: string | null;
4522
- choices: string[];
4555
+ max: number;
4556
+ default: number;
4557
+ min: number;
4558
+ step: number;
4523
4559
  } | {
4524
- type: "object-schema";
4560
+ type: "select-boolean";
4525
4561
  param: string;
4526
4562
  title: string;
4527
4563
  description: string;
4528
- objectSchema?: any;
4564
+ default: boolean | null;
4529
4565
  } | {
4530
- type: "select-boolean";
4566
+ type: "select-string";
4531
4567
  param: string;
4532
4568
  title: string;
4533
4569
  description: string;
4534
- default: boolean | null;
4570
+ default: string | null;
4571
+ choices: string[];
4535
4572
  }>;
4536
4573
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4537
4574
  };
4538
4575
  };
4539
4576
  declare const GPT_4o_MiniOptions: z.ZodObject<{
4577
+ modelName: z.ZodString;
4540
4578
  apiKey: z.ZodString;
4541
4579
  baseUrl: z.ZodString;
4542
4580
  completeChatUrl: z.ZodOptional<z.ZodString>;
4543
4581
  streamChatUrl: z.ZodOptional<z.ZodString>;
4544
4582
  organization: z.ZodOptional<z.ZodString>;
4545
4583
  }, "strip", z.ZodTypeAny, {
4584
+ modelName: string;
4546
4585
  apiKey: string;
4547
4586
  baseUrl: string;
4548
4587
  completeChatUrl?: string | undefined;
4549
4588
  streamChatUrl?: string | undefined;
4550
4589
  organization?: string | undefined;
4551
4590
  }, {
4591
+ modelName: string;
4552
4592
  apiKey: string;
4553
4593
  baseUrl: string;
4554
4594
  completeChatUrl?: string | undefined;
@@ -4576,50 +4616,53 @@ declare const GPT_4oSchema: {
4576
4616
  description: string;
4577
4617
  max: number;
4578
4618
  } | {
4579
- type: "range";
4619
+ type: "object-schema";
4580
4620
  param: string;
4581
4621
  title: string;
4582
4622
  description: string;
4583
- max: number;
4584
- min: number;
4585
- step: number;
4586
- default: number;
4623
+ objectSchema?: any;
4587
4624
  } | {
4588
- type: "select-string";
4625
+ type: "range";
4589
4626
  param: string;
4590
4627
  title: string;
4591
4628
  description: string;
4592
- default: string | null;
4593
- choices: string[];
4629
+ max: number;
4630
+ default: number;
4631
+ min: number;
4632
+ step: number;
4594
4633
  } | {
4595
- type: "object-schema";
4634
+ type: "select-boolean";
4596
4635
  param: string;
4597
4636
  title: string;
4598
4637
  description: string;
4599
- objectSchema?: any;
4638
+ default: boolean | null;
4600
4639
  } | {
4601
- type: "select-boolean";
4640
+ type: "select-string";
4602
4641
  param: string;
4603
4642
  title: string;
4604
4643
  description: string;
4605
- default: boolean | null;
4644
+ default: string | null;
4645
+ choices: string[];
4606
4646
  }>;
4607
4647
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4608
4648
  };
4609
4649
  };
4610
4650
  declare const GPT_4oOptions: z.ZodObject<{
4651
+ modelName: z.ZodString;
4611
4652
  apiKey: z.ZodString;
4612
4653
  baseUrl: z.ZodString;
4613
4654
  completeChatUrl: z.ZodOptional<z.ZodString>;
4614
4655
  streamChatUrl: z.ZodOptional<z.ZodString>;
4615
4656
  organization: z.ZodOptional<z.ZodString>;
4616
4657
  }, "strip", z.ZodTypeAny, {
4658
+ modelName: string;
4617
4659
  apiKey: string;
4618
4660
  baseUrl: string;
4619
4661
  completeChatUrl?: string | undefined;
4620
4662
  streamChatUrl?: string | undefined;
4621
4663
  organization?: string | undefined;
4622
4664
  }, {
4665
+ modelName: string;
4623
4666
  apiKey: string;
4624
4667
  baseUrl: string;
4625
4668
  completeChatUrl?: string | undefined;
@@ -4647,50 +4690,53 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
4647
4690
  description: string;
4648
4691
  max: number;
4649
4692
  } | {
4650
- type: "range";
4693
+ type: "object-schema";
4651
4694
  param: string;
4652
4695
  title: string;
4653
4696
  description: string;
4654
- max: number;
4655
- min: number;
4656
- step: number;
4657
- default: number;
4697
+ objectSchema?: any;
4658
4698
  } | {
4659
- type: "select-string";
4699
+ type: "range";
4660
4700
  param: string;
4661
4701
  title: string;
4662
4702
  description: string;
4663
- default: string | null;
4664
- choices: string[];
4703
+ max: number;
4704
+ default: number;
4705
+ min: number;
4706
+ step: number;
4665
4707
  } | {
4666
- type: "object-schema";
4708
+ type: "select-boolean";
4667
4709
  param: string;
4668
4710
  title: string;
4669
4711
  description: string;
4670
- objectSchema?: any;
4712
+ default: boolean | null;
4671
4713
  } | {
4672
- type: "select-boolean";
4714
+ type: "select-string";
4673
4715
  param: string;
4674
4716
  title: string;
4675
4717
  description: string;
4676
- default: boolean | null;
4718
+ default: string | null;
4719
+ choices: string[];
4677
4720
  }>;
4678
4721
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4679
4722
  };
4680
4723
  };
4681
4724
  declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
4725
+ modelName: z.ZodString;
4682
4726
  apiKey: z.ZodString;
4683
4727
  baseUrl: z.ZodString;
4684
4728
  completeChatUrl: z.ZodOptional<z.ZodString>;
4685
4729
  streamChatUrl: z.ZodOptional<z.ZodString>;
4686
4730
  organization: z.ZodOptional<z.ZodString>;
4687
4731
  }, "strip", z.ZodTypeAny, {
4732
+ modelName: string;
4688
4733
  apiKey: string;
4689
4734
  baseUrl: string;
4690
4735
  completeChatUrl?: string | undefined;
4691
4736
  streamChatUrl?: string | undefined;
4692
4737
  organization?: string | undefined;
4693
4738
  }, {
4739
+ modelName: string;
4694
4740
  apiKey: string;
4695
4741
  baseUrl: string;
4696
4742
  completeChatUrl?: string | undefined;
@@ -4718,50 +4764,53 @@ declare const GPT_4o_2024_05_13Schema: {
4718
4764
  description: string;
4719
4765
  max: number;
4720
4766
  } | {
4721
- type: "range";
4767
+ type: "object-schema";
4722
4768
  param: string;
4723
4769
  title: string;
4724
4770
  description: string;
4725
- max: number;
4726
- min: number;
4727
- step: number;
4728
- default: number;
4771
+ objectSchema?: any;
4729
4772
  } | {
4730
- type: "select-string";
4773
+ type: "range";
4731
4774
  param: string;
4732
4775
  title: string;
4733
4776
  description: string;
4734
- default: string | null;
4735
- choices: string[];
4777
+ max: number;
4778
+ default: number;
4779
+ min: number;
4780
+ step: number;
4736
4781
  } | {
4737
- type: "object-schema";
4782
+ type: "select-boolean";
4738
4783
  param: string;
4739
4784
  title: string;
4740
4785
  description: string;
4741
- objectSchema?: any;
4786
+ default: boolean | null;
4742
4787
  } | {
4743
- type: "select-boolean";
4788
+ type: "select-string";
4744
4789
  param: string;
4745
4790
  title: string;
4746
4791
  description: string;
4747
- default: boolean | null;
4792
+ default: string | null;
4793
+ choices: string[];
4748
4794
  }>;
4749
4795
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4750
4796
  };
4751
4797
  };
4752
4798
  declare const GPT_4o_2024_05_13Options: z.ZodObject<{
4799
+ modelName: z.ZodString;
4753
4800
  apiKey: z.ZodString;
4754
4801
  baseUrl: z.ZodString;
4755
4802
  completeChatUrl: z.ZodOptional<z.ZodString>;
4756
4803
  streamChatUrl: z.ZodOptional<z.ZodString>;
4757
4804
  organization: z.ZodOptional<z.ZodString>;
4758
4805
  }, "strip", z.ZodTypeAny, {
4806
+ modelName: string;
4759
4807
  apiKey: string;
4760
4808
  baseUrl: string;
4761
4809
  completeChatUrl?: string | undefined;
4762
4810
  streamChatUrl?: string | undefined;
4763
4811
  organization?: string | undefined;
4764
4812
  }, {
4813
+ modelName: string;
4765
4814
  apiKey: string;
4766
4815
  baseUrl: string;
4767
4816
  completeChatUrl?: string | undefined;
@@ -4789,50 +4838,53 @@ declare const O1_MiniSchema: {
4789
4838
  description: string;
4790
4839
  max: number;
4791
4840
  } | {
4792
- type: "range";
4841
+ type: "object-schema";
4793
4842
  param: string;
4794
4843
  title: string;
4795
4844
  description: string;
4796
- max: number;
4797
- min: number;
4798
- step: number;
4799
- default: number;
4845
+ objectSchema?: any;
4800
4846
  } | {
4801
- type: "select-string";
4847
+ type: "range";
4802
4848
  param: string;
4803
4849
  title: string;
4804
4850
  description: string;
4805
- default: string | null;
4806
- choices: string[];
4851
+ max: number;
4852
+ default: number;
4853
+ min: number;
4854
+ step: number;
4807
4855
  } | {
4808
- type: "object-schema";
4856
+ type: "select-boolean";
4809
4857
  param: string;
4810
4858
  title: string;
4811
4859
  description: string;
4812
- objectSchema?: any;
4860
+ default: boolean | null;
4813
4861
  } | {
4814
- type: "select-boolean";
4862
+ type: "select-string";
4815
4863
  param: string;
4816
4864
  title: string;
4817
4865
  description: string;
4818
- default: boolean | null;
4866
+ default: string | null;
4867
+ choices: string[];
4819
4868
  }>;
4820
4869
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4821
4870
  };
4822
4871
  };
4823
4872
  declare const O1_MiniOptions: z.ZodObject<{
4873
+ modelName: z.ZodString;
4824
4874
  apiKey: z.ZodString;
4825
4875
  baseUrl: z.ZodString;
4826
4876
  completeChatUrl: z.ZodOptional<z.ZodString>;
4827
4877
  streamChatUrl: z.ZodOptional<z.ZodString>;
4828
4878
  organization: z.ZodOptional<z.ZodString>;
4829
4879
  }, "strip", z.ZodTypeAny, {
4880
+ modelName: string;
4830
4881
  apiKey: string;
4831
4882
  baseUrl: string;
4832
4883
  completeChatUrl?: string | undefined;
4833
4884
  streamChatUrl?: string | undefined;
4834
4885
  organization?: string | undefined;
4835
4886
  }, {
4887
+ modelName: string;
4836
4888
  apiKey: string;
4837
4889
  baseUrl: string;
4838
4890
  completeChatUrl?: string | undefined;
@@ -4860,50 +4912,53 @@ declare const O1_PreviewSchema: {
4860
4912
  description: string;
4861
4913
  max: number;
4862
4914
  } | {
4863
- type: "range";
4915
+ type: "object-schema";
4864
4916
  param: string;
4865
4917
  title: string;
4866
4918
  description: string;
4867
- max: number;
4868
- min: number;
4869
- step: number;
4870
- default: number;
4919
+ objectSchema?: any;
4871
4920
  } | {
4872
- type: "select-string";
4921
+ type: "range";
4873
4922
  param: string;
4874
4923
  title: string;
4875
4924
  description: string;
4876
- default: string | null;
4877
- choices: string[];
4925
+ max: number;
4926
+ default: number;
4927
+ min: number;
4928
+ step: number;
4878
4929
  } | {
4879
- type: "object-schema";
4930
+ type: "select-boolean";
4880
4931
  param: string;
4881
4932
  title: string;
4882
4933
  description: string;
4883
- objectSchema?: any;
4934
+ default: boolean | null;
4884
4935
  } | {
4885
- type: "select-boolean";
4936
+ type: "select-string";
4886
4937
  param: string;
4887
4938
  title: string;
4888
4939
  description: string;
4889
- default: boolean | null;
4940
+ default: string | null;
4941
+ choices: string[];
4890
4942
  }>;
4891
4943
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4892
4944
  };
4893
4945
  };
4894
4946
  declare const O1_PreviewOptions: z.ZodObject<{
4947
+ modelName: z.ZodString;
4895
4948
  apiKey: z.ZodString;
4896
4949
  baseUrl: z.ZodString;
4897
4950
  completeChatUrl: z.ZodOptional<z.ZodString>;
4898
4951
  streamChatUrl: z.ZodOptional<z.ZodString>;
4899
4952
  organization: z.ZodOptional<z.ZodString>;
4900
4953
  }, "strip", z.ZodTypeAny, {
4954
+ modelName: string;
4901
4955
  apiKey: string;
4902
4956
  baseUrl: string;
4903
4957
  completeChatUrl?: string | undefined;
4904
4958
  streamChatUrl?: string | undefined;
4905
4959
  organization?: string | undefined;
4906
4960
  }, {
4961
+ modelName: string;
4907
4962
  apiKey: string;
4908
4963
  baseUrl: string;
4909
4964
  completeChatUrl?: string | undefined;
@@ -4991,14 +5046,17 @@ declare const OpenAIEmbeddingRequest: z.ZodObject<{
4991
5046
  type OpenAIEmbeddingRequestType = z.infer<typeof OpenAIEmbeddingRequest>;
4992
5047
 
4993
5048
  declare const BaseEmbeddingModelOptions: z.ZodObject<{
5049
+ modelName: z.ZodString;
4994
5050
  apiKey: z.ZodString;
4995
5051
  baseUrl: z.ZodString;
4996
5052
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
4997
5053
  }, "strip", z.ZodTypeAny, {
5054
+ modelName: string;
4998
5055
  apiKey: string;
4999
5056
  baseUrl: string;
5000
5057
  getEmbeddingsUrl?: string | undefined;
5001
5058
  }, {
5059
+ modelName: string;
5002
5060
  apiKey: string;
5003
5061
  baseUrl: string;
5004
5062
  getEmbeddingsUrl?: string | undefined;
@@ -5007,6 +5065,7 @@ type BaseEmbeddingModelOptionsType = z.infer<typeof BaseEmbeddingModelOptions>;
5007
5065
  declare class BaseEmbeddingModel implements EmbeddingModelV1<EmbeddingModelSchemaType> {
5008
5066
  readonly version: "v1";
5009
5067
  modelSchema: EmbeddingModelSchemaType;
5068
+ modelName: string;
5010
5069
  private readonly apiKey;
5011
5070
  private readonly baseUrl;
5012
5071
  private readonly getEmbeddingsUrl;
@@ -5047,46 +5106,49 @@ declare const Text_Embedding_Ada002Schema: {
5047
5106
  description: string;
5048
5107
  max: number;
5049
5108
  } | {
5050
- type: "range";
5109
+ type: "object-schema";
5051
5110
  param: string;
5052
5111
  title: string;
5053
5112
  description: string;
5054
- max: number;
5055
- min: number;
5056
- step: number;
5057
- default: number;
5113
+ objectSchema?: any;
5058
5114
  } | {
5059
- type: "select-string";
5115
+ type: "range";
5060
5116
  param: string;
5061
5117
  title: string;
5062
5118
  description: string;
5063
- default: string | null;
5064
- choices: string[];
5119
+ max: number;
5120
+ default: number;
5121
+ min: number;
5122
+ step: number;
5065
5123
  } | {
5066
- type: "object-schema";
5124
+ type: "select-boolean";
5067
5125
  param: string;
5068
5126
  title: string;
5069
5127
  description: string;
5070
- objectSchema?: any;
5128
+ default: boolean | null;
5071
5129
  } | {
5072
- type: "select-boolean";
5130
+ type: "select-string";
5073
5131
  param: string;
5074
5132
  title: string;
5075
5133
  description: string;
5076
- default: boolean | null;
5134
+ default: string | null;
5135
+ choices: string[];
5077
5136
  }>;
5078
5137
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5079
5138
  };
5080
5139
  };
5081
5140
  declare const Text_Embedding_Ada002_Options: z.ZodObject<{
5141
+ modelName: z.ZodString;
5082
5142
  apiKey: z.ZodString;
5083
5143
  baseUrl: z.ZodString;
5084
5144
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5085
5145
  }, "strip", z.ZodTypeAny, {
5146
+ modelName: string;
5086
5147
  apiKey: string;
5087
5148
  baseUrl: string;
5088
5149
  getEmbeddingsUrl?: string | undefined;
5089
5150
  }, {
5151
+ modelName: string;
5090
5152
  apiKey: string;
5091
5153
  baseUrl: string;
5092
5154
  getEmbeddingsUrl?: string | undefined;
@@ -5111,46 +5173,49 @@ declare const Text_Embedding_3_SmallSchema: {
5111
5173
  description: string;
5112
5174
  max: number;
5113
5175
  } | {
5114
- type: "range";
5176
+ type: "object-schema";
5115
5177
  param: string;
5116
5178
  title: string;
5117
5179
  description: string;
5118
- max: number;
5119
- min: number;
5120
- step: number;
5121
- default: number;
5180
+ objectSchema?: any;
5122
5181
  } | {
5123
- type: "select-string";
5182
+ type: "range";
5124
5183
  param: string;
5125
5184
  title: string;
5126
5185
  description: string;
5127
- default: string | null;
5128
- choices: string[];
5186
+ max: number;
5187
+ default: number;
5188
+ min: number;
5189
+ step: number;
5129
5190
  } | {
5130
- type: "object-schema";
5191
+ type: "select-boolean";
5131
5192
  param: string;
5132
5193
  title: string;
5133
5194
  description: string;
5134
- objectSchema?: any;
5195
+ default: boolean | null;
5135
5196
  } | {
5136
- type: "select-boolean";
5197
+ type: "select-string";
5137
5198
  param: string;
5138
5199
  title: string;
5139
5200
  description: string;
5140
- default: boolean | null;
5201
+ default: string | null;
5202
+ choices: string[];
5141
5203
  }>;
5142
5204
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5143
5205
  };
5144
5206
  };
5145
5207
  declare const Text_Embedding_3_Small_Options: z.ZodObject<{
5208
+ modelName: z.ZodString;
5146
5209
  apiKey: z.ZodString;
5147
5210
  baseUrl: z.ZodString;
5148
5211
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5149
5212
  }, "strip", z.ZodTypeAny, {
5213
+ modelName: string;
5150
5214
  apiKey: string;
5151
5215
  baseUrl: string;
5152
5216
  getEmbeddingsUrl?: string | undefined;
5153
5217
  }, {
5218
+ modelName: string;
5154
5219
  apiKey: string;
5155
5220
  baseUrl: string;
5156
5221
  getEmbeddingsUrl?: string | undefined;
@@ -5175,46 +5240,49 @@ declare const Text_Embedding_3_LargeSchema: {
5175
5240
  description: string;
5176
5241
  max: number;
5177
5242
  } | {
5178
- type: "range";
5243
+ type: "object-schema";
5179
5244
  param: string;
5180
5245
  title: string;
5181
5246
  description: string;
5182
- max: number;
5183
- min: number;
5184
- step: number;
5185
- default: number;
5247
+ objectSchema?: any;
5186
5248
  } | {
5187
- type: "select-string";
5249
+ type: "range";
5188
5250
  param: string;
5189
5251
  title: string;
5190
5252
  description: string;
5191
- default: string | null;
5192
- choices: string[];
5253
+ max: number;
5254
+ default: number;
5255
+ min: number;
5256
+ step: number;
5193
5257
  } | {
5194
- type: "object-schema";
5258
+ type: "select-boolean";
5195
5259
  param: string;
5196
5260
  title: string;
5197
5261
  description: string;
5198
- objectSchema?: any;
5262
+ default: boolean | null;
5199
5263
  } | {
5200
- type: "select-boolean";
5264
+ type: "select-string";
5201
5265
  param: string;
5202
5266
  title: string;
5203
5267
  description: string;
5204
- default: boolean | null;
5268
+ default: string | null;
5269
+ choices: string[];
5205
5270
  }>;
5206
5271
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5207
5272
  };
5208
5273
  };
5209
5274
  declare const Text_Embedding_3_Large_Options: z.ZodObject<{
5275
+ modelName: z.ZodString;
5210
5276
  apiKey: z.ZodString;
5211
5277
  baseUrl: z.ZodString;
5212
5278
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5213
5279
  }, "strip", z.ZodTypeAny, {
5280
+ modelName: string;
5214
5281
  apiKey: string;
5215
5282
  baseUrl: string;
5216
5283
  getEmbeddingsUrl?: string | undefined;
5217
5284
  }, {
5285
+ modelName: string;
5218
5286
  apiKey: string;
5219
5287
  baseUrl: string;
5220
5288
  getEmbeddingsUrl?: string | undefined;
@@ -5232,13 +5300,11 @@ declare class OpenAI<O extends Record<string, any> = Record<string, any>> implem
5232
5300
  private readonly chatModelFactories;
5233
5301
  private readonly embeddingModelFactories;
5234
5302
  chatModelLiterals(): string[];
5235
- chatModel(name: string, options: O): ChatModelV1;
5236
- chatModelSchema(name: string): ChatModelSchemaType;
5237
5303
  chatModelSchemas(): Record<string, ChatModelSchemaType>;
5304
+ chatModel(options: O): ChatModelV1;
5238
5305
  embeddingModelLiterals(): string[];
5239
- embeddingModel(name: string, options: O): EmbeddingModelV1;
5240
- embeddingModelSchema(name: string): EmbeddingModelSchemaType;
5241
5306
  embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
5307
+ embeddingModel(options: O): EmbeddingModelV1;
5242
5308
  }
5243
5309
 
5244
5310
  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_05_13, GPT_4o_2024_05_13Literal, GPT_4o_2024_05_13Options, type GPT_4o_2024_05_13OptionsType, GPT_4o_2024_05_13Schema, 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, GPT_4o_Mini_2024_07_18, GPT_4o_Mini_2024_07_18Literal, GPT_4o_Mini_2024_07_18Options, type GPT_4o_Mini_2024_07_18OptionsType, GPT_4o_Mini_2024_07_18Schema, 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 };