@adaline/openai 0.29.0 → 0.31.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 +324 -1
- package/dist/index.d.ts +324 -1
- package/dist/index.js +160 -160
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { ChatModelSchemaType, ChatModelV1, UrlType, HeadersType, ParamsType, EmbeddingModelSchemaType, EmbeddingModelV1, ProviderV1 } from '@adaline/provider';
|
|
4
|
-
import { MessageType, ConfigType, ToolType, ChatResponseType, PartialChatResponseType, EmbeddingRequestsType, EmbeddingResponseType } from '@adaline/types';
|
|
4
|
+
import { MessageType, ConfigType, ToolType, ChatResponseType, PartialChatResponseType, ChatModelPriceType, EmbeddingRequestsType, EmbeddingResponseType } from '@adaline/types';
|
|
5
5
|
|
|
6
6
|
declare const OpenAIChatModelConfigs: {
|
|
7
7
|
readonly base: (maxOutputTokens: number, maxSequences: number) => {
|
|
@@ -448,6 +448,14 @@ declare const OpenAIChatModelConfigs: {
|
|
|
448
448
|
min: number;
|
|
449
449
|
step: number;
|
|
450
450
|
};
|
|
451
|
+
reasoningEffort: {
|
|
452
|
+
type: "select-string";
|
|
453
|
+
param: string;
|
|
454
|
+
title: string;
|
|
455
|
+
description: string;
|
|
456
|
+
default: string;
|
|
457
|
+
choices: string[];
|
|
458
|
+
};
|
|
451
459
|
responseFormat: {
|
|
452
460
|
type: "select-string";
|
|
453
461
|
param: string;
|
|
@@ -566,6 +574,7 @@ declare const OpenAIChatModelConfigs: {
|
|
|
566
574
|
}>>;
|
|
567
575
|
}>, {
|
|
568
576
|
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
577
|
+
reasoningEffort: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
569
578
|
}>, "strip", zod.ZodTypeAny, {
|
|
570
579
|
temperature?: number | undefined;
|
|
571
580
|
seed?: number | undefined;
|
|
@@ -581,6 +590,7 @@ declare const OpenAIChatModelConfigs: {
|
|
|
581
590
|
responseSchema?: {
|
|
582
591
|
[x: string]: any;
|
|
583
592
|
} | undefined;
|
|
593
|
+
reasoningEffort?: string | null | undefined;
|
|
584
594
|
}, {
|
|
585
595
|
temperature?: number | undefined;
|
|
586
596
|
seed?: number | undefined;
|
|
@@ -596,6 +606,7 @@ declare const OpenAIChatModelConfigs: {
|
|
|
596
606
|
responseSchema?: {
|
|
597
607
|
[x: string]: any;
|
|
598
608
|
} | undefined;
|
|
609
|
+
reasoningEffort?: string | null | undefined;
|
|
599
610
|
}>;
|
|
600
611
|
};
|
|
601
612
|
};
|
|
@@ -917,6 +928,14 @@ declare const ChatModelOSeriesConfigDef: (maxOutputTokens: number, maxSequences:
|
|
|
917
928
|
min: number;
|
|
918
929
|
step: number;
|
|
919
930
|
};
|
|
931
|
+
reasoningEffort: {
|
|
932
|
+
type: "select-string";
|
|
933
|
+
param: string;
|
|
934
|
+
title: string;
|
|
935
|
+
description: string;
|
|
936
|
+
default: string;
|
|
937
|
+
choices: string[];
|
|
938
|
+
};
|
|
920
939
|
responseFormat: {
|
|
921
940
|
type: "select-string";
|
|
922
941
|
param: string;
|
|
@@ -1035,6 +1054,7 @@ declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequenc
|
|
|
1035
1054
|
}>>;
|
|
1036
1055
|
}>, {
|
|
1037
1056
|
temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
1057
|
+
reasoningEffort: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
|
|
1038
1058
|
}>, "strip", zod.ZodTypeAny, {
|
|
1039
1059
|
temperature?: number | undefined;
|
|
1040
1060
|
seed?: number | undefined;
|
|
@@ -1050,6 +1070,7 @@ declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequenc
|
|
|
1050
1070
|
responseSchema?: {
|
|
1051
1071
|
[x: string]: any;
|
|
1052
1072
|
} | undefined;
|
|
1073
|
+
reasoningEffort?: string | null | undefined;
|
|
1053
1074
|
}, {
|
|
1054
1075
|
temperature?: number | undefined;
|
|
1055
1076
|
seed?: number | undefined;
|
|
@@ -1065,6 +1086,7 @@ declare const ChatModelOSeriesConfigSchema: (maxOutputTokens: number, maxSequenc
|
|
|
1065
1086
|
responseSchema?: {
|
|
1066
1087
|
[x: string]: any;
|
|
1067
1088
|
} | undefined;
|
|
1089
|
+
reasoningEffort?: string | null | undefined;
|
|
1068
1090
|
}>;
|
|
1069
1091
|
|
|
1070
1092
|
declare const ChatModelResponseFormatConfigDef: (maxOutputTokens: number, maxSequences: number) => {
|
|
@@ -3696,6 +3718,7 @@ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
|
|
|
3696
3718
|
getProxyCompleteChatUrl(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<UrlType>;
|
|
3697
3719
|
getProxyCompleteChatHeaders(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<HeadersType>;
|
|
3698
3720
|
getProxyStreamChatHeaders(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<HeadersType>;
|
|
3721
|
+
getModelPricing(): ChatModelPriceType;
|
|
3699
3722
|
}
|
|
3700
3723
|
|
|
3701
3724
|
declare class BaseOSeriesChatModel extends BaseChatModel {
|
|
@@ -3767,6 +3790,21 @@ declare const GPT_3_5_Turbo_0125Schema: {
|
|
|
3767
3790
|
}>;
|
|
3768
3791
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3769
3792
|
};
|
|
3793
|
+
price: {
|
|
3794
|
+
modelName: string;
|
|
3795
|
+
currency: string;
|
|
3796
|
+
tokenRanges: {
|
|
3797
|
+
minTokens: number;
|
|
3798
|
+
prices: {
|
|
3799
|
+
base: {
|
|
3800
|
+
inputPricePerMillion: number;
|
|
3801
|
+
outputPricePerMillion: number;
|
|
3802
|
+
};
|
|
3803
|
+
};
|
|
3804
|
+
maxTokens?: number | null | undefined;
|
|
3805
|
+
}[];
|
|
3806
|
+
};
|
|
3807
|
+
maxReasoningTokens?: number | undefined;
|
|
3770
3808
|
};
|
|
3771
3809
|
declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
|
|
3772
3810
|
modelName: z.ZodString;
|
|
@@ -3841,6 +3879,21 @@ declare const GPT_3_5_Turbo_1106Schema: {
|
|
|
3841
3879
|
}>;
|
|
3842
3880
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3843
3881
|
};
|
|
3882
|
+
price: {
|
|
3883
|
+
modelName: string;
|
|
3884
|
+
currency: string;
|
|
3885
|
+
tokenRanges: {
|
|
3886
|
+
minTokens: number;
|
|
3887
|
+
prices: {
|
|
3888
|
+
base: {
|
|
3889
|
+
inputPricePerMillion: number;
|
|
3890
|
+
outputPricePerMillion: number;
|
|
3891
|
+
};
|
|
3892
|
+
};
|
|
3893
|
+
maxTokens?: number | null | undefined;
|
|
3894
|
+
}[];
|
|
3895
|
+
};
|
|
3896
|
+
maxReasoningTokens?: number | undefined;
|
|
3844
3897
|
};
|
|
3845
3898
|
declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
|
|
3846
3899
|
modelName: z.ZodString;
|
|
@@ -3915,6 +3968,21 @@ declare const GPT_3_5_TurboSchema: {
|
|
|
3915
3968
|
}>;
|
|
3916
3969
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3917
3970
|
};
|
|
3971
|
+
price: {
|
|
3972
|
+
modelName: string;
|
|
3973
|
+
currency: string;
|
|
3974
|
+
tokenRanges: {
|
|
3975
|
+
minTokens: number;
|
|
3976
|
+
prices: {
|
|
3977
|
+
base: {
|
|
3978
|
+
inputPricePerMillion: number;
|
|
3979
|
+
outputPricePerMillion: number;
|
|
3980
|
+
};
|
|
3981
|
+
};
|
|
3982
|
+
maxTokens?: number | null | undefined;
|
|
3983
|
+
}[];
|
|
3984
|
+
};
|
|
3985
|
+
maxReasoningTokens?: number | undefined;
|
|
3918
3986
|
};
|
|
3919
3987
|
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
3920
3988
|
modelName: z.ZodString;
|
|
@@ -3989,6 +4057,21 @@ declare const GPT_4_0125_PreviewSchema: {
|
|
|
3989
4057
|
}>;
|
|
3990
4058
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3991
4059
|
};
|
|
4060
|
+
price: {
|
|
4061
|
+
modelName: string;
|
|
4062
|
+
currency: string;
|
|
4063
|
+
tokenRanges: {
|
|
4064
|
+
minTokens: number;
|
|
4065
|
+
prices: {
|
|
4066
|
+
base: {
|
|
4067
|
+
inputPricePerMillion: number;
|
|
4068
|
+
outputPricePerMillion: number;
|
|
4069
|
+
};
|
|
4070
|
+
};
|
|
4071
|
+
maxTokens?: number | null | undefined;
|
|
4072
|
+
}[];
|
|
4073
|
+
};
|
|
4074
|
+
maxReasoningTokens?: number | undefined;
|
|
3992
4075
|
};
|
|
3993
4076
|
declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
|
|
3994
4077
|
modelName: z.ZodString;
|
|
@@ -4063,6 +4146,21 @@ declare const GPT_4_0613Schema: {
|
|
|
4063
4146
|
}>;
|
|
4064
4147
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4065
4148
|
};
|
|
4149
|
+
price: {
|
|
4150
|
+
modelName: string;
|
|
4151
|
+
currency: string;
|
|
4152
|
+
tokenRanges: {
|
|
4153
|
+
minTokens: number;
|
|
4154
|
+
prices: {
|
|
4155
|
+
base: {
|
|
4156
|
+
inputPricePerMillion: number;
|
|
4157
|
+
outputPricePerMillion: number;
|
|
4158
|
+
};
|
|
4159
|
+
};
|
|
4160
|
+
maxTokens?: number | null | undefined;
|
|
4161
|
+
}[];
|
|
4162
|
+
};
|
|
4163
|
+
maxReasoningTokens?: number | undefined;
|
|
4066
4164
|
};
|
|
4067
4165
|
declare const GPT_4_0613Options: z.ZodObject<{
|
|
4068
4166
|
modelName: z.ZodString;
|
|
@@ -4137,6 +4235,21 @@ declare const GPT_4_1106_PreviewSchema: {
|
|
|
4137
4235
|
}>;
|
|
4138
4236
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4139
4237
|
};
|
|
4238
|
+
price: {
|
|
4239
|
+
modelName: string;
|
|
4240
|
+
currency: string;
|
|
4241
|
+
tokenRanges: {
|
|
4242
|
+
minTokens: number;
|
|
4243
|
+
prices: {
|
|
4244
|
+
base: {
|
|
4245
|
+
inputPricePerMillion: number;
|
|
4246
|
+
outputPricePerMillion: number;
|
|
4247
|
+
};
|
|
4248
|
+
};
|
|
4249
|
+
maxTokens?: number | null | undefined;
|
|
4250
|
+
}[];
|
|
4251
|
+
};
|
|
4252
|
+
maxReasoningTokens?: number | undefined;
|
|
4140
4253
|
};
|
|
4141
4254
|
declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
4142
4255
|
modelName: z.ZodString;
|
|
@@ -4211,6 +4324,21 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
|
|
|
4211
4324
|
}>;
|
|
4212
4325
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4213
4326
|
};
|
|
4327
|
+
price: {
|
|
4328
|
+
modelName: string;
|
|
4329
|
+
currency: string;
|
|
4330
|
+
tokenRanges: {
|
|
4331
|
+
minTokens: number;
|
|
4332
|
+
prices: {
|
|
4333
|
+
base: {
|
|
4334
|
+
inputPricePerMillion: number;
|
|
4335
|
+
outputPricePerMillion: number;
|
|
4336
|
+
};
|
|
4337
|
+
};
|
|
4338
|
+
maxTokens?: number | null | undefined;
|
|
4339
|
+
}[];
|
|
4340
|
+
};
|
|
4341
|
+
maxReasoningTokens?: number | undefined;
|
|
4214
4342
|
};
|
|
4215
4343
|
declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
|
|
4216
4344
|
modelName: z.ZodString;
|
|
@@ -4285,6 +4413,21 @@ declare const GPT_4_Turbo_PreviewSchema: {
|
|
|
4285
4413
|
}>;
|
|
4286
4414
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4287
4415
|
};
|
|
4416
|
+
price: {
|
|
4417
|
+
modelName: string;
|
|
4418
|
+
currency: string;
|
|
4419
|
+
tokenRanges: {
|
|
4420
|
+
minTokens: number;
|
|
4421
|
+
prices: {
|
|
4422
|
+
base: {
|
|
4423
|
+
inputPricePerMillion: number;
|
|
4424
|
+
outputPricePerMillion: number;
|
|
4425
|
+
};
|
|
4426
|
+
};
|
|
4427
|
+
maxTokens?: number | null | undefined;
|
|
4428
|
+
}[];
|
|
4429
|
+
};
|
|
4430
|
+
maxReasoningTokens?: number | undefined;
|
|
4288
4431
|
};
|
|
4289
4432
|
declare const GPT_4_Turbo_PreviewOptions: z.ZodObject<{
|
|
4290
4433
|
modelName: z.ZodString;
|
|
@@ -4359,6 +4502,21 @@ declare const GPT_4_TurboSchema: {
|
|
|
4359
4502
|
}>;
|
|
4360
4503
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4361
4504
|
};
|
|
4505
|
+
price: {
|
|
4506
|
+
modelName: string;
|
|
4507
|
+
currency: string;
|
|
4508
|
+
tokenRanges: {
|
|
4509
|
+
minTokens: number;
|
|
4510
|
+
prices: {
|
|
4511
|
+
base: {
|
|
4512
|
+
inputPricePerMillion: number;
|
|
4513
|
+
outputPricePerMillion: number;
|
|
4514
|
+
};
|
|
4515
|
+
};
|
|
4516
|
+
maxTokens?: number | null | undefined;
|
|
4517
|
+
}[];
|
|
4518
|
+
};
|
|
4519
|
+
maxReasoningTokens?: number | undefined;
|
|
4362
4520
|
};
|
|
4363
4521
|
declare const GPT_4_TurboOptions: z.ZodObject<{
|
|
4364
4522
|
modelName: z.ZodString;
|
|
@@ -4433,6 +4591,21 @@ declare const GPT_4Schema: {
|
|
|
4433
4591
|
}>;
|
|
4434
4592
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4435
4593
|
};
|
|
4594
|
+
price: {
|
|
4595
|
+
modelName: string;
|
|
4596
|
+
currency: string;
|
|
4597
|
+
tokenRanges: {
|
|
4598
|
+
minTokens: number;
|
|
4599
|
+
prices: {
|
|
4600
|
+
base: {
|
|
4601
|
+
inputPricePerMillion: number;
|
|
4602
|
+
outputPricePerMillion: number;
|
|
4603
|
+
};
|
|
4604
|
+
};
|
|
4605
|
+
maxTokens?: number | null | undefined;
|
|
4606
|
+
}[];
|
|
4607
|
+
};
|
|
4608
|
+
maxReasoningTokens?: number | undefined;
|
|
4436
4609
|
};
|
|
4437
4610
|
declare const GPT_4Options: z.ZodObject<{
|
|
4438
4611
|
modelName: z.ZodString;
|
|
@@ -4507,6 +4680,21 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
4507
4680
|
}>;
|
|
4508
4681
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4509
4682
|
};
|
|
4683
|
+
price: {
|
|
4684
|
+
modelName: string;
|
|
4685
|
+
currency: string;
|
|
4686
|
+
tokenRanges: {
|
|
4687
|
+
minTokens: number;
|
|
4688
|
+
prices: {
|
|
4689
|
+
base: {
|
|
4690
|
+
inputPricePerMillion: number;
|
|
4691
|
+
outputPricePerMillion: number;
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
4694
|
+
maxTokens?: number | null | undefined;
|
|
4695
|
+
}[];
|
|
4696
|
+
};
|
|
4697
|
+
maxReasoningTokens?: number | undefined;
|
|
4510
4698
|
};
|
|
4511
4699
|
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
4512
4700
|
modelName: z.ZodString;
|
|
@@ -4581,6 +4769,21 @@ declare const GPT_4o_2024_08_06Schema: {
|
|
|
4581
4769
|
}>;
|
|
4582
4770
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4583
4771
|
};
|
|
4772
|
+
price: {
|
|
4773
|
+
modelName: string;
|
|
4774
|
+
currency: string;
|
|
4775
|
+
tokenRanges: {
|
|
4776
|
+
minTokens: number;
|
|
4777
|
+
prices: {
|
|
4778
|
+
base: {
|
|
4779
|
+
inputPricePerMillion: number;
|
|
4780
|
+
outputPricePerMillion: number;
|
|
4781
|
+
};
|
|
4782
|
+
};
|
|
4783
|
+
maxTokens?: number | null | undefined;
|
|
4784
|
+
}[];
|
|
4785
|
+
};
|
|
4786
|
+
maxReasoningTokens?: number | undefined;
|
|
4584
4787
|
};
|
|
4585
4788
|
declare const GPT_4o_2024_08_06Options: z.ZodObject<{
|
|
4586
4789
|
modelName: z.ZodString;
|
|
@@ -4655,6 +4858,21 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
4655
4858
|
}>;
|
|
4656
4859
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4657
4860
|
};
|
|
4861
|
+
price: {
|
|
4862
|
+
modelName: string;
|
|
4863
|
+
currency: string;
|
|
4864
|
+
tokenRanges: {
|
|
4865
|
+
minTokens: number;
|
|
4866
|
+
prices: {
|
|
4867
|
+
base: {
|
|
4868
|
+
inputPricePerMillion: number;
|
|
4869
|
+
outputPricePerMillion: number;
|
|
4870
|
+
};
|
|
4871
|
+
};
|
|
4872
|
+
maxTokens?: number | null | undefined;
|
|
4873
|
+
}[];
|
|
4874
|
+
};
|
|
4875
|
+
maxReasoningTokens?: number | undefined;
|
|
4658
4876
|
};
|
|
4659
4877
|
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
4660
4878
|
modelName: z.ZodString;
|
|
@@ -4729,6 +4947,21 @@ declare const GPT_4o_MiniSchema: {
|
|
|
4729
4947
|
}>;
|
|
4730
4948
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4731
4949
|
};
|
|
4950
|
+
price: {
|
|
4951
|
+
modelName: string;
|
|
4952
|
+
currency: string;
|
|
4953
|
+
tokenRanges: {
|
|
4954
|
+
minTokens: number;
|
|
4955
|
+
prices: {
|
|
4956
|
+
base: {
|
|
4957
|
+
inputPricePerMillion: number;
|
|
4958
|
+
outputPricePerMillion: number;
|
|
4959
|
+
};
|
|
4960
|
+
};
|
|
4961
|
+
maxTokens?: number | null | undefined;
|
|
4962
|
+
}[];
|
|
4963
|
+
};
|
|
4964
|
+
maxReasoningTokens?: number | undefined;
|
|
4732
4965
|
};
|
|
4733
4966
|
declare const GPT_4o_MiniOptions: z.ZodObject<{
|
|
4734
4967
|
modelName: z.ZodString;
|
|
@@ -4803,6 +5036,21 @@ declare const GPT_4oSchema: {
|
|
|
4803
5036
|
}>;
|
|
4804
5037
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4805
5038
|
};
|
|
5039
|
+
price: {
|
|
5040
|
+
modelName: string;
|
|
5041
|
+
currency: string;
|
|
5042
|
+
tokenRanges: {
|
|
5043
|
+
minTokens: number;
|
|
5044
|
+
prices: {
|
|
5045
|
+
base: {
|
|
5046
|
+
inputPricePerMillion: number;
|
|
5047
|
+
outputPricePerMillion: number;
|
|
5048
|
+
};
|
|
5049
|
+
};
|
|
5050
|
+
maxTokens?: number | null | undefined;
|
|
5051
|
+
}[];
|
|
5052
|
+
};
|
|
5053
|
+
maxReasoningTokens?: number | undefined;
|
|
4806
5054
|
};
|
|
4807
5055
|
declare const GPT_4oOptions: z.ZodObject<{
|
|
4808
5056
|
modelName: z.ZodString;
|
|
@@ -4877,6 +5125,21 @@ declare const O1_2024_12_17Schema: {
|
|
|
4877
5125
|
}>;
|
|
4878
5126
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4879
5127
|
};
|
|
5128
|
+
price: {
|
|
5129
|
+
modelName: string;
|
|
5130
|
+
currency: string;
|
|
5131
|
+
tokenRanges: {
|
|
5132
|
+
minTokens: number;
|
|
5133
|
+
prices: {
|
|
5134
|
+
base: {
|
|
5135
|
+
inputPricePerMillion: number;
|
|
5136
|
+
outputPricePerMillion: number;
|
|
5137
|
+
};
|
|
5138
|
+
};
|
|
5139
|
+
maxTokens?: number | null | undefined;
|
|
5140
|
+
}[];
|
|
5141
|
+
};
|
|
5142
|
+
maxReasoningTokens?: number | undefined;
|
|
4880
5143
|
};
|
|
4881
5144
|
declare const O1_2024_12_17Options: z.ZodObject<{
|
|
4882
5145
|
modelName: z.ZodString;
|
|
@@ -4951,6 +5214,21 @@ declare const O1_Mini_2024_09_12Schema: {
|
|
|
4951
5214
|
}>;
|
|
4952
5215
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4953
5216
|
};
|
|
5217
|
+
price: {
|
|
5218
|
+
modelName: string;
|
|
5219
|
+
currency: string;
|
|
5220
|
+
tokenRanges: {
|
|
5221
|
+
minTokens: number;
|
|
5222
|
+
prices: {
|
|
5223
|
+
base: {
|
|
5224
|
+
inputPricePerMillion: number;
|
|
5225
|
+
outputPricePerMillion: number;
|
|
5226
|
+
};
|
|
5227
|
+
};
|
|
5228
|
+
maxTokens?: number | null | undefined;
|
|
5229
|
+
}[];
|
|
5230
|
+
};
|
|
5231
|
+
maxReasoningTokens?: number | undefined;
|
|
4954
5232
|
};
|
|
4955
5233
|
declare const O1_Mini_2024_09_12Options: z.ZodObject<{
|
|
4956
5234
|
modelName: z.ZodString;
|
|
@@ -5025,6 +5303,21 @@ declare const O1_MiniSchema: {
|
|
|
5025
5303
|
}>;
|
|
5026
5304
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5027
5305
|
};
|
|
5306
|
+
price: {
|
|
5307
|
+
modelName: string;
|
|
5308
|
+
currency: string;
|
|
5309
|
+
tokenRanges: {
|
|
5310
|
+
minTokens: number;
|
|
5311
|
+
prices: {
|
|
5312
|
+
base: {
|
|
5313
|
+
inputPricePerMillion: number;
|
|
5314
|
+
outputPricePerMillion: number;
|
|
5315
|
+
};
|
|
5316
|
+
};
|
|
5317
|
+
maxTokens?: number | null | undefined;
|
|
5318
|
+
}[];
|
|
5319
|
+
};
|
|
5320
|
+
maxReasoningTokens?: number | undefined;
|
|
5028
5321
|
};
|
|
5029
5322
|
declare const O1_MiniOptions: z.ZodObject<{
|
|
5030
5323
|
modelName: z.ZodString;
|
|
@@ -5099,6 +5392,21 @@ declare const O1_PreviewSchema: {
|
|
|
5099
5392
|
}>;
|
|
5100
5393
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5101
5394
|
};
|
|
5395
|
+
price: {
|
|
5396
|
+
modelName: string;
|
|
5397
|
+
currency: string;
|
|
5398
|
+
tokenRanges: {
|
|
5399
|
+
minTokens: number;
|
|
5400
|
+
prices: {
|
|
5401
|
+
base: {
|
|
5402
|
+
inputPricePerMillion: number;
|
|
5403
|
+
outputPricePerMillion: number;
|
|
5404
|
+
};
|
|
5405
|
+
};
|
|
5406
|
+
maxTokens?: number | null | undefined;
|
|
5407
|
+
}[];
|
|
5408
|
+
};
|
|
5409
|
+
maxReasoningTokens?: number | undefined;
|
|
5102
5410
|
};
|
|
5103
5411
|
declare const O1_PreviewOptions: z.ZodObject<{
|
|
5104
5412
|
modelName: z.ZodString;
|
|
@@ -5173,6 +5481,21 @@ declare const O1Schema: {
|
|
|
5173
5481
|
}>;
|
|
5174
5482
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5175
5483
|
};
|
|
5484
|
+
price: {
|
|
5485
|
+
modelName: string;
|
|
5486
|
+
currency: string;
|
|
5487
|
+
tokenRanges: {
|
|
5488
|
+
minTokens: number;
|
|
5489
|
+
prices: {
|
|
5490
|
+
base: {
|
|
5491
|
+
inputPricePerMillion: number;
|
|
5492
|
+
outputPricePerMillion: number;
|
|
5493
|
+
};
|
|
5494
|
+
};
|
|
5495
|
+
maxTokens?: number | null | undefined;
|
|
5496
|
+
}[];
|
|
5497
|
+
};
|
|
5498
|
+
maxReasoningTokens?: number | undefined;
|
|
5176
5499
|
};
|
|
5177
5500
|
declare const O1Options: z.ZodObject<{
|
|
5178
5501
|
modelName: z.ZodString;
|