@adaline/openai 0.18.0 → 0.20.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
@@ -907,15 +907,7 @@ declare const toolChoice: {
907
907
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
908
908
  };
909
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 | null;
917
- choices: string[];
918
- };
910
+ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences: number) => {
919
911
  temperature: {
920
912
  type: "range";
921
913
  param: string;
@@ -936,6 +928,21 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
936
928
  min: number;
937
929
  step: number;
938
930
  };
931
+ responseFormat: {
932
+ type: "select-string";
933
+ param: string;
934
+ title: string;
935
+ description: string;
936
+ default: string | null;
937
+ choices: string[];
938
+ };
939
+ responseSchema: {
940
+ type: "object-schema";
941
+ param: string;
942
+ title: string;
943
+ description: string;
944
+ objectSchema?: any;
945
+ };
939
946
  stop: {
940
947
  type: "multi-string";
941
948
  param: string;
@@ -1009,7 +1016,7 @@ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSeq
1009
1016
  choices: string[];
1010
1017
  };
1011
1018
  };
1012
- declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<{
1019
+ declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
1013
1020
  temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1014
1021
  maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1015
1022
  stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
@@ -1022,6 +1029,14 @@ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, max
1022
1029
  toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
1023
1030
  }, {
1024
1031
  responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
1032
+ responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
1033
+ [x: string]: any;
1034
+ }, {
1035
+ [x: string]: any;
1036
+ }>>;
1037
+ }>, {
1038
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1039
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1025
1040
  }>, "strip", zod.ZodTypeAny, {
1026
1041
  temperature?: number | undefined;
1027
1042
  seed?: number | undefined;
@@ -1034,6 +1049,9 @@ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, max
1034
1049
  topLogProbs?: number | undefined;
1035
1050
  toolChoice?: string | null | undefined;
1036
1051
  responseFormat?: string | null | undefined;
1052
+ responseSchema?: {
1053
+ [x: string]: any;
1054
+ } | undefined;
1037
1055
  }, {
1038
1056
  temperature?: number | undefined;
1039
1057
  seed?: number | undefined;
@@ -1046,9 +1064,12 @@ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, max
1046
1064
  topLogProbs?: number | undefined;
1047
1065
  toolChoice?: string | null | undefined;
1048
1066
  responseFormat?: string | null | undefined;
1067
+ responseSchema?: {
1068
+ [x: string]: any;
1069
+ } | undefined;
1049
1070
  }>;
1050
1071
 
1051
- declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSequences: number) => {
1072
+ declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSequences: number) => {
1052
1073
  responseFormat: {
1053
1074
  type: "select-string";
1054
1075
  param: string;
@@ -1057,13 +1078,6 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1057
1078
  default: string | null;
1058
1079
  choices: string[];
1059
1080
  };
1060
- responseSchema: {
1061
- type: "object-schema";
1062
- param: string;
1063
- title: string;
1064
- description: string;
1065
- objectSchema?: any;
1066
- };
1067
1081
  temperature: {
1068
1082
  type: "range";
1069
1083
  param: string;
@@ -1157,25 +1171,20 @@ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSeq
1157
1171
  choices: string[];
1158
1172
  };
1159
1173
  };
1160
- declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, maxSequences: number) => z.ZodObject<z.objectUtil.extendShape<{
1161
- temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1162
- maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1163
- stop: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1164
- topP: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1165
- frequencyPenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1166
- presencePenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1167
- seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
1168
- logProbs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
1169
- topLogProbs: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1170
- toolChoice: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
1174
+ declare const ChatModelResponseFormatConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<{
1175
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1176
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1177
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
1178
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1179
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1180
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1181
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
1182
+ logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
1183
+ topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1184
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
1171
1185
  }, {
1172
- responseFormat: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
1173
- responseSchema: z.ZodOptional<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
1174
- [x: string]: any;
1175
- }, {
1176
- [x: string]: any;
1177
- }>>;
1178
- }>, "strip", z.ZodTypeAny, {
1186
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
1187
+ }>, "strip", zod.ZodTypeAny, {
1179
1188
  temperature?: number | undefined;
1180
1189
  seed?: number | undefined;
1181
1190
  stop?: string[] | undefined;
@@ -1187,9 +1196,6 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
1187
1196
  topLogProbs?: number | undefined;
1188
1197
  toolChoice?: string | null | undefined;
1189
1198
  responseFormat?: string | null | undefined;
1190
- responseSchema?: {
1191
- [x: string]: any;
1192
- } | undefined;
1193
1199
  }, {
1194
1200
  temperature?: number | undefined;
1195
1201
  seed?: number | undefined;
@@ -1202,12 +1208,24 @@ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, max
1202
1208
  topLogProbs?: number | undefined;
1203
1209
  toolChoice?: string | null | undefined;
1204
1210
  responseFormat?: string | null | undefined;
1205
- responseSchema?: {
1206
- [x: string]: any;
1207
- } | undefined;
1208
1211
  }>;
1209
1212
 
1210
- declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences: number) => {
1213
+ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSequences: number) => {
1214
+ responseFormat: {
1215
+ type: "select-string";
1216
+ param: string;
1217
+ title: string;
1218
+ description: string;
1219
+ default: string | null;
1220
+ choices: string[];
1221
+ };
1222
+ responseSchema: {
1223
+ type: "object-schema";
1224
+ param: string;
1225
+ title: string;
1226
+ description: string;
1227
+ objectSchema?: any;
1228
+ };
1211
1229
  temperature: {
1212
1230
  type: "range";
1213
1231
  param: string;
@@ -1228,21 +1246,6 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1228
1246
  min: number;
1229
1247
  step: number;
1230
1248
  };
1231
- responseFormat: {
1232
- type: "select-string";
1233
- param: string;
1234
- title: string;
1235
- description: string;
1236
- default: string | null;
1237
- choices: string[];
1238
- };
1239
- responseSchema: {
1240
- type: "object-schema";
1241
- param: string;
1242
- title: string;
1243
- description: string;
1244
- objectSchema?: any;
1245
- };
1246
1249
  stop: {
1247
1250
  type: "multi-string";
1248
1251
  param: string;
@@ -1316,7 +1319,7 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
1316
1319
  choices: string[];
1317
1320
  };
1318
1321
  };
1319
- declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<zod.objectUtil.extendShape<{
1322
+ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<{
1320
1323
  temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1321
1324
  maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1322
1325
  stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
@@ -1334,9 +1337,6 @@ declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequenc
1334
1337
  }, {
1335
1338
  [x: string]: any;
1336
1339
  }>>;
1337
- }>, {
1338
- temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1339
- maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1340
1340
  }>, "strip", zod.ZodTypeAny, {
1341
1341
  temperature?: number | undefined;
1342
1342
  seed?: number | undefined;
@@ -1412,11 +1412,11 @@ declare const dimensions: (maxDimensions: number) => {
1412
1412
  schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1413
1413
  };
1414
1414
 
1415
- declare const EmbeddingModelDimensionsConfigSchema: (maxDimensions: number) => z.ZodObject<z.objectUtil.extendShape<{
1416
- encodingFormat: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
1415
+ declare const EmbeddingModelDimensionsConfigSchema: (maxDimensions: number) => zod.ZodObject<zod.objectUtil.extendShape<{
1416
+ encodingFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
1417
1417
  }, {
1418
- dimensions: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1419
- }>, "strip", z.ZodTypeAny, {
1418
+ dimensions: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
1419
+ }>, "strip", zod.ZodTypeAny, {
1420
1420
  dimensions?: number | undefined;
1421
1421
  encodingFormat?: string | null | undefined;
1422
1422
  }, {
@@ -3634,21 +3634,21 @@ type OpenAIChatOSeriesRequestType = z.infer<typeof OpenAIChatOSeriesRequest>;
3634
3634
  declare const BaseChatModelOptions: z.ZodObject<{
3635
3635
  modelName: z.ZodString;
3636
3636
  apiKey: z.ZodString;
3637
- baseUrl: z.ZodString;
3637
+ baseUrl: z.ZodOptional<z.ZodString>;
3638
3638
  completeChatUrl: z.ZodOptional<z.ZodString>;
3639
3639
  streamChatUrl: z.ZodOptional<z.ZodString>;
3640
3640
  organization: z.ZodOptional<z.ZodString>;
3641
3641
  }, "strip", z.ZodTypeAny, {
3642
3642
  modelName: string;
3643
3643
  apiKey: string;
3644
- baseUrl: string;
3644
+ baseUrl?: string | undefined;
3645
3645
  completeChatUrl?: string | undefined;
3646
3646
  streamChatUrl?: string | undefined;
3647
3647
  organization?: string | undefined;
3648
3648
  }, {
3649
3649
  modelName: string;
3650
3650
  apiKey: string;
3651
- baseUrl: string;
3651
+ baseUrl?: string | undefined;
3652
3652
  completeChatUrl?: string | undefined;
3653
3653
  streamChatUrl?: string | undefined;
3654
3654
  organization?: string | undefined;
@@ -3762,21 +3762,21 @@ declare const GPT_3_5_Turbo_0125Schema: {
3762
3762
  declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
3763
3763
  modelName: z.ZodString;
3764
3764
  apiKey: z.ZodString;
3765
- baseUrl: z.ZodString;
3765
+ baseUrl: z.ZodOptional<z.ZodString>;
3766
3766
  completeChatUrl: z.ZodOptional<z.ZodString>;
3767
3767
  streamChatUrl: z.ZodOptional<z.ZodString>;
3768
3768
  organization: z.ZodOptional<z.ZodString>;
3769
3769
  }, "strip", z.ZodTypeAny, {
3770
3770
  modelName: string;
3771
3771
  apiKey: string;
3772
- baseUrl: string;
3772
+ baseUrl?: string | undefined;
3773
3773
  completeChatUrl?: string | undefined;
3774
3774
  streamChatUrl?: string | undefined;
3775
3775
  organization?: string | undefined;
3776
3776
  }, {
3777
3777
  modelName: string;
3778
3778
  apiKey: string;
3779
- baseUrl: string;
3779
+ baseUrl?: string | undefined;
3780
3780
  completeChatUrl?: string | undefined;
3781
3781
  streamChatUrl?: string | undefined;
3782
3782
  organization?: string | undefined;
@@ -3836,21 +3836,21 @@ declare const GPT_3_5_Turbo_1106Schema: {
3836
3836
  declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
3837
3837
  modelName: z.ZodString;
3838
3838
  apiKey: z.ZodString;
3839
- baseUrl: z.ZodString;
3839
+ baseUrl: z.ZodOptional<z.ZodString>;
3840
3840
  completeChatUrl: z.ZodOptional<z.ZodString>;
3841
3841
  streamChatUrl: z.ZodOptional<z.ZodString>;
3842
3842
  organization: z.ZodOptional<z.ZodString>;
3843
3843
  }, "strip", z.ZodTypeAny, {
3844
3844
  modelName: string;
3845
3845
  apiKey: string;
3846
- baseUrl: string;
3846
+ baseUrl?: string | undefined;
3847
3847
  completeChatUrl?: string | undefined;
3848
3848
  streamChatUrl?: string | undefined;
3849
3849
  organization?: string | undefined;
3850
3850
  }, {
3851
3851
  modelName: string;
3852
3852
  apiKey: string;
3853
- baseUrl: string;
3853
+ baseUrl?: string | undefined;
3854
3854
  completeChatUrl?: string | undefined;
3855
3855
  streamChatUrl?: string | undefined;
3856
3856
  organization?: string | undefined;
@@ -3910,21 +3910,21 @@ declare const GPT_3_5_TurboSchema: {
3910
3910
  declare const GPT_3_5_TurboOptions: z.ZodObject<{
3911
3911
  modelName: z.ZodString;
3912
3912
  apiKey: z.ZodString;
3913
- baseUrl: z.ZodString;
3913
+ baseUrl: z.ZodOptional<z.ZodString>;
3914
3914
  completeChatUrl: z.ZodOptional<z.ZodString>;
3915
3915
  streamChatUrl: z.ZodOptional<z.ZodString>;
3916
3916
  organization: z.ZodOptional<z.ZodString>;
3917
3917
  }, "strip", z.ZodTypeAny, {
3918
3918
  modelName: string;
3919
3919
  apiKey: string;
3920
- baseUrl: string;
3920
+ baseUrl?: string | undefined;
3921
3921
  completeChatUrl?: string | undefined;
3922
3922
  streamChatUrl?: string | undefined;
3923
3923
  organization?: string | undefined;
3924
3924
  }, {
3925
3925
  modelName: string;
3926
3926
  apiKey: string;
3927
- baseUrl: string;
3927
+ baseUrl?: string | undefined;
3928
3928
  completeChatUrl?: string | undefined;
3929
3929
  streamChatUrl?: string | undefined;
3930
3930
  organization?: string | undefined;
@@ -3984,21 +3984,21 @@ declare const GPT_4_0125_PreviewSchema: {
3984
3984
  declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
3985
3985
  modelName: z.ZodString;
3986
3986
  apiKey: z.ZodString;
3987
- baseUrl: z.ZodString;
3987
+ baseUrl: z.ZodOptional<z.ZodString>;
3988
3988
  completeChatUrl: z.ZodOptional<z.ZodString>;
3989
3989
  streamChatUrl: z.ZodOptional<z.ZodString>;
3990
3990
  organization: z.ZodOptional<z.ZodString>;
3991
3991
  }, "strip", z.ZodTypeAny, {
3992
3992
  modelName: string;
3993
3993
  apiKey: string;
3994
- baseUrl: string;
3994
+ baseUrl?: string | undefined;
3995
3995
  completeChatUrl?: string | undefined;
3996
3996
  streamChatUrl?: string | undefined;
3997
3997
  organization?: string | undefined;
3998
3998
  }, {
3999
3999
  modelName: string;
4000
4000
  apiKey: string;
4001
- baseUrl: string;
4001
+ baseUrl?: string | undefined;
4002
4002
  completeChatUrl?: string | undefined;
4003
4003
  streamChatUrl?: string | undefined;
4004
4004
  organization?: string | undefined;
@@ -4058,21 +4058,21 @@ declare const GPT_4_0613Schema: {
4058
4058
  declare const GPT_4_0613Options: z.ZodObject<{
4059
4059
  modelName: z.ZodString;
4060
4060
  apiKey: z.ZodString;
4061
- baseUrl: z.ZodString;
4061
+ baseUrl: z.ZodOptional<z.ZodString>;
4062
4062
  completeChatUrl: z.ZodOptional<z.ZodString>;
4063
4063
  streamChatUrl: z.ZodOptional<z.ZodString>;
4064
4064
  organization: z.ZodOptional<z.ZodString>;
4065
4065
  }, "strip", z.ZodTypeAny, {
4066
4066
  modelName: string;
4067
4067
  apiKey: string;
4068
- baseUrl: string;
4068
+ baseUrl?: string | undefined;
4069
4069
  completeChatUrl?: string | undefined;
4070
4070
  streamChatUrl?: string | undefined;
4071
4071
  organization?: string | undefined;
4072
4072
  }, {
4073
4073
  modelName: string;
4074
4074
  apiKey: string;
4075
- baseUrl: string;
4075
+ baseUrl?: string | undefined;
4076
4076
  completeChatUrl?: string | undefined;
4077
4077
  streamChatUrl?: string | undefined;
4078
4078
  organization?: string | undefined;
@@ -4132,21 +4132,21 @@ declare const GPT_4_1106_PreviewSchema: {
4132
4132
  declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
4133
4133
  modelName: z.ZodString;
4134
4134
  apiKey: z.ZodString;
4135
- baseUrl: z.ZodString;
4135
+ baseUrl: z.ZodOptional<z.ZodString>;
4136
4136
  completeChatUrl: z.ZodOptional<z.ZodString>;
4137
4137
  streamChatUrl: z.ZodOptional<z.ZodString>;
4138
4138
  organization: z.ZodOptional<z.ZodString>;
4139
4139
  }, "strip", z.ZodTypeAny, {
4140
4140
  modelName: string;
4141
4141
  apiKey: string;
4142
- baseUrl: string;
4142
+ baseUrl?: string | undefined;
4143
4143
  completeChatUrl?: string | undefined;
4144
4144
  streamChatUrl?: string | undefined;
4145
4145
  organization?: string | undefined;
4146
4146
  }, {
4147
4147
  modelName: string;
4148
4148
  apiKey: string;
4149
- baseUrl: string;
4149
+ baseUrl?: string | undefined;
4150
4150
  completeChatUrl?: string | undefined;
4151
4151
  streamChatUrl?: string | undefined;
4152
4152
  organization?: string | undefined;
@@ -4206,21 +4206,21 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
4206
4206
  declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
4207
4207
  modelName: z.ZodString;
4208
4208
  apiKey: z.ZodString;
4209
- baseUrl: z.ZodString;
4209
+ baseUrl: z.ZodOptional<z.ZodString>;
4210
4210
  completeChatUrl: z.ZodOptional<z.ZodString>;
4211
4211
  streamChatUrl: z.ZodOptional<z.ZodString>;
4212
4212
  organization: z.ZodOptional<z.ZodString>;
4213
4213
  }, "strip", z.ZodTypeAny, {
4214
4214
  modelName: string;
4215
4215
  apiKey: string;
4216
- baseUrl: string;
4216
+ baseUrl?: string | undefined;
4217
4217
  completeChatUrl?: string | undefined;
4218
4218
  streamChatUrl?: string | undefined;
4219
4219
  organization?: string | undefined;
4220
4220
  }, {
4221
4221
  modelName: string;
4222
4222
  apiKey: string;
4223
- baseUrl: string;
4223
+ baseUrl?: string | undefined;
4224
4224
  completeChatUrl?: string | undefined;
4225
4225
  streamChatUrl?: string | undefined;
4226
4226
  organization?: string | undefined;
@@ -4280,21 +4280,21 @@ declare const GPT_4_Turbo_PreviewSchema: {
4280
4280
  declare const GPT_4_Turbo_PreviewOptions: z.ZodObject<{
4281
4281
  modelName: z.ZodString;
4282
4282
  apiKey: z.ZodString;
4283
- baseUrl: z.ZodString;
4283
+ baseUrl: z.ZodOptional<z.ZodString>;
4284
4284
  completeChatUrl: z.ZodOptional<z.ZodString>;
4285
4285
  streamChatUrl: z.ZodOptional<z.ZodString>;
4286
4286
  organization: z.ZodOptional<z.ZodString>;
4287
4287
  }, "strip", z.ZodTypeAny, {
4288
4288
  modelName: string;
4289
4289
  apiKey: string;
4290
- baseUrl: string;
4290
+ baseUrl?: string | undefined;
4291
4291
  completeChatUrl?: string | undefined;
4292
4292
  streamChatUrl?: string | undefined;
4293
4293
  organization?: string | undefined;
4294
4294
  }, {
4295
4295
  modelName: string;
4296
4296
  apiKey: string;
4297
- baseUrl: string;
4297
+ baseUrl?: string | undefined;
4298
4298
  completeChatUrl?: string | undefined;
4299
4299
  streamChatUrl?: string | undefined;
4300
4300
  organization?: string | undefined;
@@ -4354,21 +4354,21 @@ declare const GPT_4_TurboSchema: {
4354
4354
  declare const GPT_4_TurboOptions: z.ZodObject<{
4355
4355
  modelName: z.ZodString;
4356
4356
  apiKey: z.ZodString;
4357
- baseUrl: z.ZodString;
4357
+ baseUrl: z.ZodOptional<z.ZodString>;
4358
4358
  completeChatUrl: z.ZodOptional<z.ZodString>;
4359
4359
  streamChatUrl: z.ZodOptional<z.ZodString>;
4360
4360
  organization: z.ZodOptional<z.ZodString>;
4361
4361
  }, "strip", z.ZodTypeAny, {
4362
4362
  modelName: string;
4363
4363
  apiKey: string;
4364
- baseUrl: string;
4364
+ baseUrl?: string | undefined;
4365
4365
  completeChatUrl?: string | undefined;
4366
4366
  streamChatUrl?: string | undefined;
4367
4367
  organization?: string | undefined;
4368
4368
  }, {
4369
4369
  modelName: string;
4370
4370
  apiKey: string;
4371
- baseUrl: string;
4371
+ baseUrl?: string | undefined;
4372
4372
  completeChatUrl?: string | undefined;
4373
4373
  streamChatUrl?: string | undefined;
4374
4374
  organization?: string | undefined;
@@ -4428,21 +4428,21 @@ declare const GPT_4Schema: {
4428
4428
  declare const GPT_4Options: z.ZodObject<{
4429
4429
  modelName: z.ZodString;
4430
4430
  apiKey: z.ZodString;
4431
- baseUrl: z.ZodString;
4431
+ baseUrl: z.ZodOptional<z.ZodString>;
4432
4432
  completeChatUrl: z.ZodOptional<z.ZodString>;
4433
4433
  streamChatUrl: z.ZodOptional<z.ZodString>;
4434
4434
  organization: z.ZodOptional<z.ZodString>;
4435
4435
  }, "strip", z.ZodTypeAny, {
4436
4436
  modelName: string;
4437
4437
  apiKey: string;
4438
- baseUrl: string;
4438
+ baseUrl?: string | undefined;
4439
4439
  completeChatUrl?: string | undefined;
4440
4440
  streamChatUrl?: string | undefined;
4441
4441
  organization?: string | undefined;
4442
4442
  }, {
4443
4443
  modelName: string;
4444
4444
  apiKey: string;
4445
- baseUrl: string;
4445
+ baseUrl?: string | undefined;
4446
4446
  completeChatUrl?: string | undefined;
4447
4447
  streamChatUrl?: string | undefined;
4448
4448
  organization?: string | undefined;
@@ -4502,21 +4502,21 @@ declare const GPT_4o_2024_08_06Schema: {
4502
4502
  declare const GPT_4o_2024_08_06Options: z.ZodObject<{
4503
4503
  modelName: z.ZodString;
4504
4504
  apiKey: z.ZodString;
4505
- baseUrl: z.ZodString;
4505
+ baseUrl: z.ZodOptional<z.ZodString>;
4506
4506
  completeChatUrl: z.ZodOptional<z.ZodString>;
4507
4507
  streamChatUrl: z.ZodOptional<z.ZodString>;
4508
4508
  organization: z.ZodOptional<z.ZodString>;
4509
4509
  }, "strip", z.ZodTypeAny, {
4510
4510
  modelName: string;
4511
4511
  apiKey: string;
4512
- baseUrl: string;
4512
+ baseUrl?: string | undefined;
4513
4513
  completeChatUrl?: string | undefined;
4514
4514
  streamChatUrl?: string | undefined;
4515
4515
  organization?: string | undefined;
4516
4516
  }, {
4517
4517
  modelName: string;
4518
4518
  apiKey: string;
4519
- baseUrl: string;
4519
+ baseUrl?: string | undefined;
4520
4520
  completeChatUrl?: string | undefined;
4521
4521
  streamChatUrl?: string | undefined;
4522
4522
  organization?: string | undefined;
@@ -4576,21 +4576,21 @@ declare const GPT_4o_MiniSchema: {
4576
4576
  declare const GPT_4o_MiniOptions: z.ZodObject<{
4577
4577
  modelName: z.ZodString;
4578
4578
  apiKey: z.ZodString;
4579
- baseUrl: z.ZodString;
4579
+ baseUrl: z.ZodOptional<z.ZodString>;
4580
4580
  completeChatUrl: z.ZodOptional<z.ZodString>;
4581
4581
  streamChatUrl: z.ZodOptional<z.ZodString>;
4582
4582
  organization: z.ZodOptional<z.ZodString>;
4583
4583
  }, "strip", z.ZodTypeAny, {
4584
4584
  modelName: string;
4585
4585
  apiKey: string;
4586
- baseUrl: string;
4586
+ baseUrl?: string | undefined;
4587
4587
  completeChatUrl?: string | undefined;
4588
4588
  streamChatUrl?: string | undefined;
4589
4589
  organization?: string | undefined;
4590
4590
  }, {
4591
4591
  modelName: string;
4592
4592
  apiKey: string;
4593
- baseUrl: string;
4593
+ baseUrl?: string | undefined;
4594
4594
  completeChatUrl?: string | undefined;
4595
4595
  streamChatUrl?: string | undefined;
4596
4596
  organization?: string | undefined;
@@ -4650,21 +4650,21 @@ declare const GPT_4oSchema: {
4650
4650
  declare const GPT_4oOptions: z.ZodObject<{
4651
4651
  modelName: z.ZodString;
4652
4652
  apiKey: z.ZodString;
4653
- baseUrl: z.ZodString;
4653
+ baseUrl: z.ZodOptional<z.ZodString>;
4654
4654
  completeChatUrl: z.ZodOptional<z.ZodString>;
4655
4655
  streamChatUrl: z.ZodOptional<z.ZodString>;
4656
4656
  organization: z.ZodOptional<z.ZodString>;
4657
4657
  }, "strip", z.ZodTypeAny, {
4658
4658
  modelName: string;
4659
4659
  apiKey: string;
4660
- baseUrl: string;
4660
+ baseUrl?: string | undefined;
4661
4661
  completeChatUrl?: string | undefined;
4662
4662
  streamChatUrl?: string | undefined;
4663
4663
  organization?: string | undefined;
4664
4664
  }, {
4665
4665
  modelName: string;
4666
4666
  apiKey: string;
4667
- baseUrl: string;
4667
+ baseUrl?: string | undefined;
4668
4668
  completeChatUrl?: string | undefined;
4669
4669
  streamChatUrl?: string | undefined;
4670
4670
  organization?: string | undefined;
@@ -4724,21 +4724,21 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
4724
4724
  declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
4725
4725
  modelName: z.ZodString;
4726
4726
  apiKey: z.ZodString;
4727
- baseUrl: z.ZodString;
4727
+ baseUrl: z.ZodOptional<z.ZodString>;
4728
4728
  completeChatUrl: z.ZodOptional<z.ZodString>;
4729
4729
  streamChatUrl: z.ZodOptional<z.ZodString>;
4730
4730
  organization: z.ZodOptional<z.ZodString>;
4731
4731
  }, "strip", z.ZodTypeAny, {
4732
4732
  modelName: string;
4733
4733
  apiKey: string;
4734
- baseUrl: string;
4734
+ baseUrl?: string | undefined;
4735
4735
  completeChatUrl?: string | undefined;
4736
4736
  streamChatUrl?: string | undefined;
4737
4737
  organization?: string | undefined;
4738
4738
  }, {
4739
4739
  modelName: string;
4740
4740
  apiKey: string;
4741
- baseUrl: string;
4741
+ baseUrl?: string | undefined;
4742
4742
  completeChatUrl?: string | undefined;
4743
4743
  streamChatUrl?: string | undefined;
4744
4744
  organization?: string | undefined;
@@ -4798,21 +4798,21 @@ declare const GPT_4o_2024_05_13Schema: {
4798
4798
  declare const GPT_4o_2024_05_13Options: z.ZodObject<{
4799
4799
  modelName: z.ZodString;
4800
4800
  apiKey: z.ZodString;
4801
- baseUrl: z.ZodString;
4801
+ baseUrl: z.ZodOptional<z.ZodString>;
4802
4802
  completeChatUrl: z.ZodOptional<z.ZodString>;
4803
4803
  streamChatUrl: z.ZodOptional<z.ZodString>;
4804
4804
  organization: z.ZodOptional<z.ZodString>;
4805
4805
  }, "strip", z.ZodTypeAny, {
4806
4806
  modelName: string;
4807
4807
  apiKey: string;
4808
- baseUrl: string;
4808
+ baseUrl?: string | undefined;
4809
4809
  completeChatUrl?: string | undefined;
4810
4810
  streamChatUrl?: string | undefined;
4811
4811
  organization?: string | undefined;
4812
4812
  }, {
4813
4813
  modelName: string;
4814
4814
  apiKey: string;
4815
- baseUrl: string;
4815
+ baseUrl?: string | undefined;
4816
4816
  completeChatUrl?: string | undefined;
4817
4817
  streamChatUrl?: string | undefined;
4818
4818
  organization?: string | undefined;
@@ -4872,21 +4872,21 @@ declare const O1_MiniSchema: {
4872
4872
  declare const O1_MiniOptions: z.ZodObject<{
4873
4873
  modelName: z.ZodString;
4874
4874
  apiKey: z.ZodString;
4875
- baseUrl: z.ZodString;
4875
+ baseUrl: z.ZodOptional<z.ZodString>;
4876
4876
  completeChatUrl: z.ZodOptional<z.ZodString>;
4877
4877
  streamChatUrl: z.ZodOptional<z.ZodString>;
4878
4878
  organization: z.ZodOptional<z.ZodString>;
4879
4879
  }, "strip", z.ZodTypeAny, {
4880
4880
  modelName: string;
4881
4881
  apiKey: string;
4882
- baseUrl: string;
4882
+ baseUrl?: string | undefined;
4883
4883
  completeChatUrl?: string | undefined;
4884
4884
  streamChatUrl?: string | undefined;
4885
4885
  organization?: string | undefined;
4886
4886
  }, {
4887
4887
  modelName: string;
4888
4888
  apiKey: string;
4889
- baseUrl: string;
4889
+ baseUrl?: string | undefined;
4890
4890
  completeChatUrl?: string | undefined;
4891
4891
  streamChatUrl?: string | undefined;
4892
4892
  organization?: string | undefined;
@@ -4946,21 +4946,21 @@ declare const O1_PreviewSchema: {
4946
4946
  declare const O1_PreviewOptions: z.ZodObject<{
4947
4947
  modelName: z.ZodString;
4948
4948
  apiKey: z.ZodString;
4949
- baseUrl: z.ZodString;
4949
+ baseUrl: z.ZodOptional<z.ZodString>;
4950
4950
  completeChatUrl: z.ZodOptional<z.ZodString>;
4951
4951
  streamChatUrl: z.ZodOptional<z.ZodString>;
4952
4952
  organization: z.ZodOptional<z.ZodString>;
4953
4953
  }, "strip", z.ZodTypeAny, {
4954
4954
  modelName: string;
4955
4955
  apiKey: string;
4956
- baseUrl: string;
4956
+ baseUrl?: string | undefined;
4957
4957
  completeChatUrl?: string | undefined;
4958
4958
  streamChatUrl?: string | undefined;
4959
4959
  organization?: string | undefined;
4960
4960
  }, {
4961
4961
  modelName: string;
4962
4962
  apiKey: string;
4963
- baseUrl: string;
4963
+ baseUrl?: string | undefined;
4964
4964
  completeChatUrl?: string | undefined;
4965
4965
  streamChatUrl?: string | undefined;
4966
4966
  organization?: string | undefined;
@@ -5048,17 +5048,17 @@ type OpenAIEmbeddingRequestType = z.infer<typeof OpenAIEmbeddingRequest>;
5048
5048
  declare const BaseEmbeddingModelOptions: z.ZodObject<{
5049
5049
  modelName: z.ZodString;
5050
5050
  apiKey: z.ZodString;
5051
- baseUrl: z.ZodString;
5051
+ baseUrl: z.ZodOptional<z.ZodString>;
5052
5052
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5053
5053
  }, "strip", z.ZodTypeAny, {
5054
5054
  modelName: string;
5055
5055
  apiKey: string;
5056
- baseUrl: string;
5056
+ baseUrl?: string | undefined;
5057
5057
  getEmbeddingsUrl?: string | undefined;
5058
5058
  }, {
5059
5059
  modelName: string;
5060
5060
  apiKey: string;
5061
- baseUrl: string;
5061
+ baseUrl?: string | undefined;
5062
5062
  getEmbeddingsUrl?: string | undefined;
5063
5063
  }>;
5064
5064
  type BaseEmbeddingModelOptionsType = z.infer<typeof BaseEmbeddingModelOptions>;
@@ -5140,17 +5140,17 @@ declare const Text_Embedding_Ada002Schema: {
5140
5140
  declare const Text_Embedding_Ada002_Options: z.ZodObject<{
5141
5141
  modelName: z.ZodString;
5142
5142
  apiKey: z.ZodString;
5143
- baseUrl: z.ZodString;
5143
+ baseUrl: z.ZodOptional<z.ZodString>;
5144
5144
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5145
5145
  }, "strip", z.ZodTypeAny, {
5146
5146
  modelName: string;
5147
5147
  apiKey: string;
5148
- baseUrl: string;
5148
+ baseUrl?: string | undefined;
5149
5149
  getEmbeddingsUrl?: string | undefined;
5150
5150
  }, {
5151
5151
  modelName: string;
5152
5152
  apiKey: string;
5153
- baseUrl: string;
5153
+ baseUrl?: string | undefined;
5154
5154
  getEmbeddingsUrl?: string | undefined;
5155
5155
  }>;
5156
5156
  type Text_Embedding_Ada002_OptionsType = z.infer<typeof Text_Embedding_Ada002_Options>;
@@ -5207,17 +5207,17 @@ declare const Text_Embedding_3_SmallSchema: {
5207
5207
  declare const Text_Embedding_3_Small_Options: z.ZodObject<{
5208
5208
  modelName: z.ZodString;
5209
5209
  apiKey: z.ZodString;
5210
- baseUrl: z.ZodString;
5210
+ baseUrl: z.ZodOptional<z.ZodString>;
5211
5211
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5212
5212
  }, "strip", z.ZodTypeAny, {
5213
5213
  modelName: string;
5214
5214
  apiKey: string;
5215
- baseUrl: string;
5215
+ baseUrl?: string | undefined;
5216
5216
  getEmbeddingsUrl?: string | undefined;
5217
5217
  }, {
5218
5218
  modelName: string;
5219
5219
  apiKey: string;
5220
- baseUrl: string;
5220
+ baseUrl?: string | undefined;
5221
5221
  getEmbeddingsUrl?: string | undefined;
5222
5222
  }>;
5223
5223
  type Text_Embedding_3_Small_OptionsType = z.infer<typeof Text_Embedding_3_Small_Options>;
@@ -5274,17 +5274,17 @@ declare const Text_Embedding_3_LargeSchema: {
5274
5274
  declare const Text_Embedding_3_Large_Options: z.ZodObject<{
5275
5275
  modelName: z.ZodString;
5276
5276
  apiKey: z.ZodString;
5277
- baseUrl: z.ZodString;
5277
+ baseUrl: z.ZodOptional<z.ZodString>;
5278
5278
  getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
5279
5279
  }, "strip", z.ZodTypeAny, {
5280
5280
  modelName: string;
5281
5281
  apiKey: string;
5282
- baseUrl: string;
5282
+ baseUrl?: string | undefined;
5283
5283
  getEmbeddingsUrl?: string | undefined;
5284
5284
  }, {
5285
5285
  modelName: string;
5286
5286
  apiKey: string;
5287
- baseUrl: string;
5287
+ baseUrl?: string | undefined;
5288
5288
  getEmbeddingsUrl?: string | undefined;
5289
5289
  }>;
5290
5290
  type Text_Embedding_3_Large_OptionsType = z.infer<typeof Text_Embedding_3_Large_Options>;
@@ -5293,18 +5293,18 @@ declare class Text_Embedding_3_Large extends BaseEmbeddingModel {
5293
5293
  }
5294
5294
 
5295
5295
  declare const ProviderLiteral = "openai";
5296
- declare class OpenAI<O extends Record<string, any> = Record<string, any>> implements ProviderV1<O> {
5296
+ declare class OpenAI<C extends BaseChatModelOptionsType, E extends BaseEmbeddingModelOptionsType> implements ProviderV1<C, E> {
5297
5297
  readonly version: "v1";
5298
5298
  readonly name = "openai";
5299
- private readonly baseUrl;
5299
+ static readonly baseUrl = "https://api.openai.com/v1";
5300
5300
  private readonly chatModelFactories;
5301
5301
  private readonly embeddingModelFactories;
5302
5302
  chatModelLiterals(): string[];
5303
5303
  chatModelSchemas(): Record<string, ChatModelSchemaType>;
5304
- chatModel(options: O): ChatModelV1;
5304
+ chatModel(options: C): ChatModelV1;
5305
5305
  embeddingModelLiterals(): string[];
5306
5306
  embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
5307
- embeddingModel(options: O): EmbeddingModelV1;
5307
+ embeddingModel(options: E): EmbeddingModelV1;
5308
5308
  }
5309
5309
 
5310
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 };