@adaline/azure 0.16.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 +184 -0
- package/dist/index.d.ts +184 -0
- package/dist/index.js +75 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import { ChatModelSchemaType, HeadersType, EmbeddingModelSchemaType, ProviderV1,
|
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { BaseChatModel, BaseEmbeddingModel } from '@adaline/openai';
|
|
5
|
+
import { ChatModelPriceType } from '@adaline/types';
|
|
5
6
|
|
|
6
7
|
declare const BaseChatModelOptions: z.ZodObject<{
|
|
7
8
|
apiKey: z.ZodString;
|
|
@@ -66,6 +67,20 @@ declare const BaseChatModelSchema: {
|
|
|
66
67
|
}>;
|
|
67
68
|
schema: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, unknown, unknown>;
|
|
68
69
|
};
|
|
70
|
+
price: {
|
|
71
|
+
modelName: string;
|
|
72
|
+
currency: string;
|
|
73
|
+
tokenRanges: {
|
|
74
|
+
minTokens: number;
|
|
75
|
+
prices: {
|
|
76
|
+
base: {
|
|
77
|
+
inputPricePerMillion: number;
|
|
78
|
+
outputPricePerMillion: number;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
maxTokens?: number | null | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
69
84
|
maxReasoningTokens?: number | undefined;
|
|
70
85
|
};
|
|
71
86
|
|
|
@@ -77,6 +92,7 @@ declare class BaseChatModelOpenAI extends BaseChatModel {
|
|
|
77
92
|
private readonly azureApiVersion;
|
|
78
93
|
constructor(modelSchema: ChatModelSchemaType, options: BaseChatModelOptionsType);
|
|
79
94
|
getDefaultHeaders(): HeadersType;
|
|
95
|
+
getModelPricing(): ChatModelPriceType;
|
|
80
96
|
}
|
|
81
97
|
|
|
82
98
|
declare const GPT_4oLiteral: "gpt-4o";
|
|
@@ -125,6 +141,20 @@ declare const GPT_4oSchema: {
|
|
|
125
141
|
}>;
|
|
126
142
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
127
143
|
};
|
|
144
|
+
price: {
|
|
145
|
+
modelName: string;
|
|
146
|
+
currency: string;
|
|
147
|
+
tokenRanges: {
|
|
148
|
+
minTokens: number;
|
|
149
|
+
prices: {
|
|
150
|
+
base: {
|
|
151
|
+
inputPricePerMillion: number;
|
|
152
|
+
outputPricePerMillion: number;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
maxTokens?: number | null | undefined;
|
|
156
|
+
}[];
|
|
157
|
+
};
|
|
128
158
|
maxReasoningTokens?: number | undefined;
|
|
129
159
|
};
|
|
130
160
|
declare const GPT_4oOptions: z.ZodObject<{
|
|
@@ -194,6 +224,20 @@ declare const GPT_4o_MiniSchema: {
|
|
|
194
224
|
}>;
|
|
195
225
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
196
226
|
};
|
|
227
|
+
price: {
|
|
228
|
+
modelName: string;
|
|
229
|
+
currency: string;
|
|
230
|
+
tokenRanges: {
|
|
231
|
+
minTokens: number;
|
|
232
|
+
prices: {
|
|
233
|
+
base: {
|
|
234
|
+
inputPricePerMillion: number;
|
|
235
|
+
outputPricePerMillion: number;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
maxTokens?: number | null | undefined;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
197
241
|
maxReasoningTokens?: number | undefined;
|
|
198
242
|
};
|
|
199
243
|
declare const GPT_4o_MiniOptions: z.ZodObject<{
|
|
@@ -263,6 +307,20 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
263
307
|
}>;
|
|
264
308
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
265
309
|
};
|
|
310
|
+
price: {
|
|
311
|
+
modelName: string;
|
|
312
|
+
currency: string;
|
|
313
|
+
tokenRanges: {
|
|
314
|
+
minTokens: number;
|
|
315
|
+
prices: {
|
|
316
|
+
base: {
|
|
317
|
+
inputPricePerMillion: number;
|
|
318
|
+
outputPricePerMillion: number;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
maxTokens?: number | null | undefined;
|
|
322
|
+
}[];
|
|
323
|
+
};
|
|
266
324
|
maxReasoningTokens?: number | undefined;
|
|
267
325
|
};
|
|
268
326
|
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
@@ -332,6 +390,20 @@ declare const GPT_4o_2024_08_06Schema: {
|
|
|
332
390
|
}>;
|
|
333
391
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
334
392
|
};
|
|
393
|
+
price: {
|
|
394
|
+
modelName: string;
|
|
395
|
+
currency: string;
|
|
396
|
+
tokenRanges: {
|
|
397
|
+
minTokens: number;
|
|
398
|
+
prices: {
|
|
399
|
+
base: {
|
|
400
|
+
inputPricePerMillion: number;
|
|
401
|
+
outputPricePerMillion: number;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
maxTokens?: number | null | undefined;
|
|
405
|
+
}[];
|
|
406
|
+
};
|
|
335
407
|
maxReasoningTokens?: number | undefined;
|
|
336
408
|
};
|
|
337
409
|
declare const GPT_4o_2024_08_06Options: z.ZodObject<{
|
|
@@ -401,6 +473,20 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
401
473
|
}>;
|
|
402
474
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
403
475
|
};
|
|
476
|
+
price: {
|
|
477
|
+
modelName: string;
|
|
478
|
+
currency: string;
|
|
479
|
+
tokenRanges: {
|
|
480
|
+
minTokens: number;
|
|
481
|
+
prices: {
|
|
482
|
+
base: {
|
|
483
|
+
inputPricePerMillion: number;
|
|
484
|
+
outputPricePerMillion: number;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
maxTokens?: number | null | undefined;
|
|
488
|
+
}[];
|
|
489
|
+
};
|
|
404
490
|
maxReasoningTokens?: number | undefined;
|
|
405
491
|
};
|
|
406
492
|
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
@@ -470,6 +556,20 @@ declare const GPT_4Schema: {
|
|
|
470
556
|
}>;
|
|
471
557
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
472
558
|
};
|
|
559
|
+
price: {
|
|
560
|
+
modelName: string;
|
|
561
|
+
currency: string;
|
|
562
|
+
tokenRanges: {
|
|
563
|
+
minTokens: number;
|
|
564
|
+
prices: {
|
|
565
|
+
base: {
|
|
566
|
+
inputPricePerMillion: number;
|
|
567
|
+
outputPricePerMillion: number;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
maxTokens?: number | null | undefined;
|
|
571
|
+
}[];
|
|
572
|
+
};
|
|
473
573
|
maxReasoningTokens?: number | undefined;
|
|
474
574
|
};
|
|
475
575
|
declare const GPT_4Options: z.ZodObject<{
|
|
@@ -539,6 +639,20 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
|
|
|
539
639
|
}>;
|
|
540
640
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
541
641
|
};
|
|
642
|
+
price: {
|
|
643
|
+
modelName: string;
|
|
644
|
+
currency: string;
|
|
645
|
+
tokenRanges: {
|
|
646
|
+
minTokens: number;
|
|
647
|
+
prices: {
|
|
648
|
+
base: {
|
|
649
|
+
inputPricePerMillion: number;
|
|
650
|
+
outputPricePerMillion: number;
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
maxTokens?: number | null | undefined;
|
|
654
|
+
}[];
|
|
655
|
+
};
|
|
542
656
|
maxReasoningTokens?: number | undefined;
|
|
543
657
|
};
|
|
544
658
|
declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
|
|
@@ -608,6 +722,20 @@ declare const GPT_4_1106_PreviewSchema: {
|
|
|
608
722
|
}>;
|
|
609
723
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
610
724
|
};
|
|
725
|
+
price: {
|
|
726
|
+
modelName: string;
|
|
727
|
+
currency: string;
|
|
728
|
+
tokenRanges: {
|
|
729
|
+
minTokens: number;
|
|
730
|
+
prices: {
|
|
731
|
+
base: {
|
|
732
|
+
inputPricePerMillion: number;
|
|
733
|
+
outputPricePerMillion: number;
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
maxTokens?: number | null | undefined;
|
|
737
|
+
}[];
|
|
738
|
+
};
|
|
611
739
|
maxReasoningTokens?: number | undefined;
|
|
612
740
|
};
|
|
613
741
|
declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
@@ -677,6 +805,20 @@ declare const GPT_4_0613Schema: {
|
|
|
677
805
|
}>;
|
|
678
806
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
679
807
|
};
|
|
808
|
+
price: {
|
|
809
|
+
modelName: string;
|
|
810
|
+
currency: string;
|
|
811
|
+
tokenRanges: {
|
|
812
|
+
minTokens: number;
|
|
813
|
+
prices: {
|
|
814
|
+
base: {
|
|
815
|
+
inputPricePerMillion: number;
|
|
816
|
+
outputPricePerMillion: number;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
maxTokens?: number | null | undefined;
|
|
820
|
+
}[];
|
|
821
|
+
};
|
|
680
822
|
maxReasoningTokens?: number | undefined;
|
|
681
823
|
};
|
|
682
824
|
declare const GPT_4_0613Options: z.ZodObject<{
|
|
@@ -746,6 +888,20 @@ declare const GPT_3_5_TurboSchema: {
|
|
|
746
888
|
}>;
|
|
747
889
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
748
890
|
};
|
|
891
|
+
price: {
|
|
892
|
+
modelName: string;
|
|
893
|
+
currency: string;
|
|
894
|
+
tokenRanges: {
|
|
895
|
+
minTokens: number;
|
|
896
|
+
prices: {
|
|
897
|
+
base: {
|
|
898
|
+
inputPricePerMillion: number;
|
|
899
|
+
outputPricePerMillion: number;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
maxTokens?: number | null | undefined;
|
|
903
|
+
}[];
|
|
904
|
+
};
|
|
749
905
|
maxReasoningTokens?: number | undefined;
|
|
750
906
|
};
|
|
751
907
|
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
@@ -815,6 +971,20 @@ declare const GPT_3_5_Turbo_1106Schema: {
|
|
|
815
971
|
}>;
|
|
816
972
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
817
973
|
};
|
|
974
|
+
price: {
|
|
975
|
+
modelName: string;
|
|
976
|
+
currency: string;
|
|
977
|
+
tokenRanges: {
|
|
978
|
+
minTokens: number;
|
|
979
|
+
prices: {
|
|
980
|
+
base: {
|
|
981
|
+
inputPricePerMillion: number;
|
|
982
|
+
outputPricePerMillion: number;
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
maxTokens?: number | null | undefined;
|
|
986
|
+
}[];
|
|
987
|
+
};
|
|
818
988
|
maxReasoningTokens?: number | undefined;
|
|
819
989
|
};
|
|
820
990
|
declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
|
|
@@ -884,6 +1054,20 @@ declare const GPT_3_5_Turbo_0125Schema: {
|
|
|
884
1054
|
}>;
|
|
885
1055
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
886
1056
|
};
|
|
1057
|
+
price: {
|
|
1058
|
+
modelName: string;
|
|
1059
|
+
currency: string;
|
|
1060
|
+
tokenRanges: {
|
|
1061
|
+
minTokens: number;
|
|
1062
|
+
prices: {
|
|
1063
|
+
base: {
|
|
1064
|
+
inputPricePerMillion: number;
|
|
1065
|
+
outputPricePerMillion: number;
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
maxTokens?: number | null | undefined;
|
|
1069
|
+
}[];
|
|
1070
|
+
};
|
|
887
1071
|
maxReasoningTokens?: number | undefined;
|
|
888
1072
|
};
|
|
889
1073
|
declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ChatModelSchemaType, HeadersType, EmbeddingModelSchemaType, ProviderV1,
|
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { BaseChatModel, BaseEmbeddingModel } from '@adaline/openai';
|
|
5
|
+
import { ChatModelPriceType } from '@adaline/types';
|
|
5
6
|
|
|
6
7
|
declare const BaseChatModelOptions: z.ZodObject<{
|
|
7
8
|
apiKey: z.ZodString;
|
|
@@ -66,6 +67,20 @@ declare const BaseChatModelSchema: {
|
|
|
66
67
|
}>;
|
|
67
68
|
schema: zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, unknown, unknown>;
|
|
68
69
|
};
|
|
70
|
+
price: {
|
|
71
|
+
modelName: string;
|
|
72
|
+
currency: string;
|
|
73
|
+
tokenRanges: {
|
|
74
|
+
minTokens: number;
|
|
75
|
+
prices: {
|
|
76
|
+
base: {
|
|
77
|
+
inputPricePerMillion: number;
|
|
78
|
+
outputPricePerMillion: number;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
maxTokens?: number | null | undefined;
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
69
84
|
maxReasoningTokens?: number | undefined;
|
|
70
85
|
};
|
|
71
86
|
|
|
@@ -77,6 +92,7 @@ declare class BaseChatModelOpenAI extends BaseChatModel {
|
|
|
77
92
|
private readonly azureApiVersion;
|
|
78
93
|
constructor(modelSchema: ChatModelSchemaType, options: BaseChatModelOptionsType);
|
|
79
94
|
getDefaultHeaders(): HeadersType;
|
|
95
|
+
getModelPricing(): ChatModelPriceType;
|
|
80
96
|
}
|
|
81
97
|
|
|
82
98
|
declare const GPT_4oLiteral: "gpt-4o";
|
|
@@ -125,6 +141,20 @@ declare const GPT_4oSchema: {
|
|
|
125
141
|
}>;
|
|
126
142
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
127
143
|
};
|
|
144
|
+
price: {
|
|
145
|
+
modelName: string;
|
|
146
|
+
currency: string;
|
|
147
|
+
tokenRanges: {
|
|
148
|
+
minTokens: number;
|
|
149
|
+
prices: {
|
|
150
|
+
base: {
|
|
151
|
+
inputPricePerMillion: number;
|
|
152
|
+
outputPricePerMillion: number;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
maxTokens?: number | null | undefined;
|
|
156
|
+
}[];
|
|
157
|
+
};
|
|
128
158
|
maxReasoningTokens?: number | undefined;
|
|
129
159
|
};
|
|
130
160
|
declare const GPT_4oOptions: z.ZodObject<{
|
|
@@ -194,6 +224,20 @@ declare const GPT_4o_MiniSchema: {
|
|
|
194
224
|
}>;
|
|
195
225
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
196
226
|
};
|
|
227
|
+
price: {
|
|
228
|
+
modelName: string;
|
|
229
|
+
currency: string;
|
|
230
|
+
tokenRanges: {
|
|
231
|
+
minTokens: number;
|
|
232
|
+
prices: {
|
|
233
|
+
base: {
|
|
234
|
+
inputPricePerMillion: number;
|
|
235
|
+
outputPricePerMillion: number;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
maxTokens?: number | null | undefined;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
197
241
|
maxReasoningTokens?: number | undefined;
|
|
198
242
|
};
|
|
199
243
|
declare const GPT_4o_MiniOptions: z.ZodObject<{
|
|
@@ -263,6 +307,20 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
263
307
|
}>;
|
|
264
308
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
265
309
|
};
|
|
310
|
+
price: {
|
|
311
|
+
modelName: string;
|
|
312
|
+
currency: string;
|
|
313
|
+
tokenRanges: {
|
|
314
|
+
minTokens: number;
|
|
315
|
+
prices: {
|
|
316
|
+
base: {
|
|
317
|
+
inputPricePerMillion: number;
|
|
318
|
+
outputPricePerMillion: number;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
maxTokens?: number | null | undefined;
|
|
322
|
+
}[];
|
|
323
|
+
};
|
|
266
324
|
maxReasoningTokens?: number | undefined;
|
|
267
325
|
};
|
|
268
326
|
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
@@ -332,6 +390,20 @@ declare const GPT_4o_2024_08_06Schema: {
|
|
|
332
390
|
}>;
|
|
333
391
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
334
392
|
};
|
|
393
|
+
price: {
|
|
394
|
+
modelName: string;
|
|
395
|
+
currency: string;
|
|
396
|
+
tokenRanges: {
|
|
397
|
+
minTokens: number;
|
|
398
|
+
prices: {
|
|
399
|
+
base: {
|
|
400
|
+
inputPricePerMillion: number;
|
|
401
|
+
outputPricePerMillion: number;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
maxTokens?: number | null | undefined;
|
|
405
|
+
}[];
|
|
406
|
+
};
|
|
335
407
|
maxReasoningTokens?: number | undefined;
|
|
336
408
|
};
|
|
337
409
|
declare const GPT_4o_2024_08_06Options: z.ZodObject<{
|
|
@@ -401,6 +473,20 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
401
473
|
}>;
|
|
402
474
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
403
475
|
};
|
|
476
|
+
price: {
|
|
477
|
+
modelName: string;
|
|
478
|
+
currency: string;
|
|
479
|
+
tokenRanges: {
|
|
480
|
+
minTokens: number;
|
|
481
|
+
prices: {
|
|
482
|
+
base: {
|
|
483
|
+
inputPricePerMillion: number;
|
|
484
|
+
outputPricePerMillion: number;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
maxTokens?: number | null | undefined;
|
|
488
|
+
}[];
|
|
489
|
+
};
|
|
404
490
|
maxReasoningTokens?: number | undefined;
|
|
405
491
|
};
|
|
406
492
|
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
@@ -470,6 +556,20 @@ declare const GPT_4Schema: {
|
|
|
470
556
|
}>;
|
|
471
557
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
472
558
|
};
|
|
559
|
+
price: {
|
|
560
|
+
modelName: string;
|
|
561
|
+
currency: string;
|
|
562
|
+
tokenRanges: {
|
|
563
|
+
minTokens: number;
|
|
564
|
+
prices: {
|
|
565
|
+
base: {
|
|
566
|
+
inputPricePerMillion: number;
|
|
567
|
+
outputPricePerMillion: number;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
maxTokens?: number | null | undefined;
|
|
571
|
+
}[];
|
|
572
|
+
};
|
|
473
573
|
maxReasoningTokens?: number | undefined;
|
|
474
574
|
};
|
|
475
575
|
declare const GPT_4Options: z.ZodObject<{
|
|
@@ -539,6 +639,20 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
|
|
|
539
639
|
}>;
|
|
540
640
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
541
641
|
};
|
|
642
|
+
price: {
|
|
643
|
+
modelName: string;
|
|
644
|
+
currency: string;
|
|
645
|
+
tokenRanges: {
|
|
646
|
+
minTokens: number;
|
|
647
|
+
prices: {
|
|
648
|
+
base: {
|
|
649
|
+
inputPricePerMillion: number;
|
|
650
|
+
outputPricePerMillion: number;
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
maxTokens?: number | null | undefined;
|
|
654
|
+
}[];
|
|
655
|
+
};
|
|
542
656
|
maxReasoningTokens?: number | undefined;
|
|
543
657
|
};
|
|
544
658
|
declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
|
|
@@ -608,6 +722,20 @@ declare const GPT_4_1106_PreviewSchema: {
|
|
|
608
722
|
}>;
|
|
609
723
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
610
724
|
};
|
|
725
|
+
price: {
|
|
726
|
+
modelName: string;
|
|
727
|
+
currency: string;
|
|
728
|
+
tokenRanges: {
|
|
729
|
+
minTokens: number;
|
|
730
|
+
prices: {
|
|
731
|
+
base: {
|
|
732
|
+
inputPricePerMillion: number;
|
|
733
|
+
outputPricePerMillion: number;
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
maxTokens?: number | null | undefined;
|
|
737
|
+
}[];
|
|
738
|
+
};
|
|
611
739
|
maxReasoningTokens?: number | undefined;
|
|
612
740
|
};
|
|
613
741
|
declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
@@ -677,6 +805,20 @@ declare const GPT_4_0613Schema: {
|
|
|
677
805
|
}>;
|
|
678
806
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
679
807
|
};
|
|
808
|
+
price: {
|
|
809
|
+
modelName: string;
|
|
810
|
+
currency: string;
|
|
811
|
+
tokenRanges: {
|
|
812
|
+
minTokens: number;
|
|
813
|
+
prices: {
|
|
814
|
+
base: {
|
|
815
|
+
inputPricePerMillion: number;
|
|
816
|
+
outputPricePerMillion: number;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
maxTokens?: number | null | undefined;
|
|
820
|
+
}[];
|
|
821
|
+
};
|
|
680
822
|
maxReasoningTokens?: number | undefined;
|
|
681
823
|
};
|
|
682
824
|
declare const GPT_4_0613Options: z.ZodObject<{
|
|
@@ -746,6 +888,20 @@ declare const GPT_3_5_TurboSchema: {
|
|
|
746
888
|
}>;
|
|
747
889
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
748
890
|
};
|
|
891
|
+
price: {
|
|
892
|
+
modelName: string;
|
|
893
|
+
currency: string;
|
|
894
|
+
tokenRanges: {
|
|
895
|
+
minTokens: number;
|
|
896
|
+
prices: {
|
|
897
|
+
base: {
|
|
898
|
+
inputPricePerMillion: number;
|
|
899
|
+
outputPricePerMillion: number;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
maxTokens?: number | null | undefined;
|
|
903
|
+
}[];
|
|
904
|
+
};
|
|
749
905
|
maxReasoningTokens?: number | undefined;
|
|
750
906
|
};
|
|
751
907
|
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
@@ -815,6 +971,20 @@ declare const GPT_3_5_Turbo_1106Schema: {
|
|
|
815
971
|
}>;
|
|
816
972
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
817
973
|
};
|
|
974
|
+
price: {
|
|
975
|
+
modelName: string;
|
|
976
|
+
currency: string;
|
|
977
|
+
tokenRanges: {
|
|
978
|
+
minTokens: number;
|
|
979
|
+
prices: {
|
|
980
|
+
base: {
|
|
981
|
+
inputPricePerMillion: number;
|
|
982
|
+
outputPricePerMillion: number;
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
maxTokens?: number | null | undefined;
|
|
986
|
+
}[];
|
|
987
|
+
};
|
|
818
988
|
maxReasoningTokens?: number | undefined;
|
|
819
989
|
};
|
|
820
990
|
declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
|
|
@@ -884,6 +1054,20 @@ declare const GPT_3_5_Turbo_0125Schema: {
|
|
|
884
1054
|
}>;
|
|
885
1055
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
886
1056
|
};
|
|
1057
|
+
price: {
|
|
1058
|
+
modelName: string;
|
|
1059
|
+
currency: string;
|
|
1060
|
+
tokenRanges: {
|
|
1061
|
+
minTokens: number;
|
|
1062
|
+
prices: {
|
|
1063
|
+
base: {
|
|
1064
|
+
inputPricePerMillion: number;
|
|
1065
|
+
outputPricePerMillion: number;
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
maxTokens?: number | null | undefined;
|
|
1069
|
+
}[];
|
|
1070
|
+
};
|
|
887
1071
|
maxReasoningTokens?: number | undefined;
|
|
888
1072
|
};
|
|
889
1073
|
declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
|