@adaline/openai 0.30.0 → 1.0.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 +304 -1
- package/dist/index.d.ts +304 -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 +3 -3
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,20 @@ 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
|
+
};
|
|
3770
3807
|
maxReasoningTokens?: number | undefined;
|
|
3771
3808
|
};
|
|
3772
3809
|
declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
|
|
@@ -3842,6 +3879,20 @@ declare const GPT_3_5_Turbo_1106Schema: {
|
|
|
3842
3879
|
}>;
|
|
3843
3880
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3844
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
|
+
};
|
|
3845
3896
|
maxReasoningTokens?: number | undefined;
|
|
3846
3897
|
};
|
|
3847
3898
|
declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
|
|
@@ -3917,6 +3968,20 @@ declare const GPT_3_5_TurboSchema: {
|
|
|
3917
3968
|
}>;
|
|
3918
3969
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3919
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
|
+
};
|
|
3920
3985
|
maxReasoningTokens?: number | undefined;
|
|
3921
3986
|
};
|
|
3922
3987
|
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
@@ -3992,6 +4057,20 @@ declare const GPT_4_0125_PreviewSchema: {
|
|
|
3992
4057
|
}>;
|
|
3993
4058
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
3994
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
|
+
};
|
|
3995
4074
|
maxReasoningTokens?: number | undefined;
|
|
3996
4075
|
};
|
|
3997
4076
|
declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
|
|
@@ -4067,6 +4146,20 @@ declare const GPT_4_0613Schema: {
|
|
|
4067
4146
|
}>;
|
|
4068
4147
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4069
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
|
+
};
|
|
4070
4163
|
maxReasoningTokens?: number | undefined;
|
|
4071
4164
|
};
|
|
4072
4165
|
declare const GPT_4_0613Options: z.ZodObject<{
|
|
@@ -4142,6 +4235,20 @@ declare const GPT_4_1106_PreviewSchema: {
|
|
|
4142
4235
|
}>;
|
|
4143
4236
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4144
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
|
+
};
|
|
4145
4252
|
maxReasoningTokens?: number | undefined;
|
|
4146
4253
|
};
|
|
4147
4254
|
declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
@@ -4217,6 +4324,20 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
|
|
|
4217
4324
|
}>;
|
|
4218
4325
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4219
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
|
+
};
|
|
4220
4341
|
maxReasoningTokens?: number | undefined;
|
|
4221
4342
|
};
|
|
4222
4343
|
declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
|
|
@@ -4292,6 +4413,20 @@ declare const GPT_4_Turbo_PreviewSchema: {
|
|
|
4292
4413
|
}>;
|
|
4293
4414
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4294
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
|
+
};
|
|
4295
4430
|
maxReasoningTokens?: number | undefined;
|
|
4296
4431
|
};
|
|
4297
4432
|
declare const GPT_4_Turbo_PreviewOptions: z.ZodObject<{
|
|
@@ -4367,6 +4502,20 @@ declare const GPT_4_TurboSchema: {
|
|
|
4367
4502
|
}>;
|
|
4368
4503
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4369
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
|
+
};
|
|
4370
4519
|
maxReasoningTokens?: number | undefined;
|
|
4371
4520
|
};
|
|
4372
4521
|
declare const GPT_4_TurboOptions: z.ZodObject<{
|
|
@@ -4442,6 +4591,20 @@ declare const GPT_4Schema: {
|
|
|
4442
4591
|
}>;
|
|
4443
4592
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4444
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
|
+
};
|
|
4445
4608
|
maxReasoningTokens?: number | undefined;
|
|
4446
4609
|
};
|
|
4447
4610
|
declare const GPT_4Options: z.ZodObject<{
|
|
@@ -4517,6 +4680,20 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
4517
4680
|
}>;
|
|
4518
4681
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4519
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
|
+
};
|
|
4520
4697
|
maxReasoningTokens?: number | undefined;
|
|
4521
4698
|
};
|
|
4522
4699
|
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
@@ -4592,6 +4769,20 @@ declare const GPT_4o_2024_08_06Schema: {
|
|
|
4592
4769
|
}>;
|
|
4593
4770
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4594
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
|
+
};
|
|
4595
4786
|
maxReasoningTokens?: number | undefined;
|
|
4596
4787
|
};
|
|
4597
4788
|
declare const GPT_4o_2024_08_06Options: z.ZodObject<{
|
|
@@ -4667,6 +4858,20 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
4667
4858
|
}>;
|
|
4668
4859
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4669
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
|
+
};
|
|
4670
4875
|
maxReasoningTokens?: number | undefined;
|
|
4671
4876
|
};
|
|
4672
4877
|
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
@@ -4742,6 +4947,20 @@ declare const GPT_4o_MiniSchema: {
|
|
|
4742
4947
|
}>;
|
|
4743
4948
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4744
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
|
+
};
|
|
4745
4964
|
maxReasoningTokens?: number | undefined;
|
|
4746
4965
|
};
|
|
4747
4966
|
declare const GPT_4o_MiniOptions: z.ZodObject<{
|
|
@@ -4817,6 +5036,20 @@ declare const GPT_4oSchema: {
|
|
|
4817
5036
|
}>;
|
|
4818
5037
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4819
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
|
+
};
|
|
4820
5053
|
maxReasoningTokens?: number | undefined;
|
|
4821
5054
|
};
|
|
4822
5055
|
declare const GPT_4oOptions: z.ZodObject<{
|
|
@@ -4892,6 +5125,20 @@ declare const O1_2024_12_17Schema: {
|
|
|
4892
5125
|
}>;
|
|
4893
5126
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4894
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
|
+
};
|
|
4895
5142
|
maxReasoningTokens?: number | undefined;
|
|
4896
5143
|
};
|
|
4897
5144
|
declare const O1_2024_12_17Options: z.ZodObject<{
|
|
@@ -4967,6 +5214,20 @@ declare const O1_Mini_2024_09_12Schema: {
|
|
|
4967
5214
|
}>;
|
|
4968
5215
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
4969
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
|
+
};
|
|
4970
5231
|
maxReasoningTokens?: number | undefined;
|
|
4971
5232
|
};
|
|
4972
5233
|
declare const O1_Mini_2024_09_12Options: z.ZodObject<{
|
|
@@ -5042,6 +5303,20 @@ declare const O1_MiniSchema: {
|
|
|
5042
5303
|
}>;
|
|
5043
5304
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5044
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
|
+
};
|
|
5045
5320
|
maxReasoningTokens?: number | undefined;
|
|
5046
5321
|
};
|
|
5047
5322
|
declare const O1_MiniOptions: z.ZodObject<{
|
|
@@ -5117,6 +5392,20 @@ declare const O1_PreviewSchema: {
|
|
|
5117
5392
|
}>;
|
|
5118
5393
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5119
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
|
+
};
|
|
5120
5409
|
maxReasoningTokens?: number | undefined;
|
|
5121
5410
|
};
|
|
5122
5411
|
declare const O1_PreviewOptions: z.ZodObject<{
|
|
@@ -5192,6 +5481,20 @@ declare const O1Schema: {
|
|
|
5192
5481
|
}>;
|
|
5193
5482
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
5194
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
|
+
};
|
|
5195
5498
|
maxReasoningTokens?: number | undefined;
|
|
5196
5499
|
};
|
|
5197
5500
|
declare const O1Options: z.ZodObject<{
|