@adaline/azure 0.15.0 → 0.17.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 +197 -0
- package/dist/index.d.ts +197 -0
- package/dist/index.js +75 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
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,21 @@ 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
|
+
};
|
|
84
|
+
maxReasoningTokens?: number | undefined;
|
|
69
85
|
};
|
|
70
86
|
|
|
71
87
|
declare class BaseChatModelOpenAI extends BaseChatModel {
|
|
@@ -76,6 +92,7 @@ declare class BaseChatModelOpenAI extends BaseChatModel {
|
|
|
76
92
|
private readonly azureApiVersion;
|
|
77
93
|
constructor(modelSchema: ChatModelSchemaType, options: BaseChatModelOptionsType);
|
|
78
94
|
getDefaultHeaders(): HeadersType;
|
|
95
|
+
getModelPricing(): ChatModelPriceType;
|
|
79
96
|
}
|
|
80
97
|
|
|
81
98
|
declare const GPT_4oLiteral: "gpt-4o";
|
|
@@ -124,6 +141,21 @@ declare const GPT_4oSchema: {
|
|
|
124
141
|
}>;
|
|
125
142
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
126
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
|
+
};
|
|
158
|
+
maxReasoningTokens?: number | undefined;
|
|
127
159
|
};
|
|
128
160
|
declare const GPT_4oOptions: z.ZodObject<{
|
|
129
161
|
apiKey: z.ZodString;
|
|
@@ -192,6 +224,21 @@ declare const GPT_4o_MiniSchema: {
|
|
|
192
224
|
}>;
|
|
193
225
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
194
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
|
+
};
|
|
241
|
+
maxReasoningTokens?: number | undefined;
|
|
195
242
|
};
|
|
196
243
|
declare const GPT_4o_MiniOptions: z.ZodObject<{
|
|
197
244
|
apiKey: z.ZodString;
|
|
@@ -260,6 +307,21 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
260
307
|
}>;
|
|
261
308
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
262
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
|
+
};
|
|
324
|
+
maxReasoningTokens?: number | undefined;
|
|
263
325
|
};
|
|
264
326
|
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
265
327
|
apiKey: z.ZodString;
|
|
@@ -328,6 +390,21 @@ declare const GPT_4o_2024_08_06Schema: {
|
|
|
328
390
|
}>;
|
|
329
391
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
330
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
|
+
};
|
|
407
|
+
maxReasoningTokens?: number | undefined;
|
|
331
408
|
};
|
|
332
409
|
declare const GPT_4o_2024_08_06Options: z.ZodObject<{
|
|
333
410
|
apiKey: z.ZodString;
|
|
@@ -396,6 +473,21 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
396
473
|
}>;
|
|
397
474
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
398
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
|
+
};
|
|
490
|
+
maxReasoningTokens?: number | undefined;
|
|
399
491
|
};
|
|
400
492
|
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
401
493
|
apiKey: z.ZodString;
|
|
@@ -464,6 +556,21 @@ declare const GPT_4Schema: {
|
|
|
464
556
|
}>;
|
|
465
557
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
466
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
|
+
};
|
|
573
|
+
maxReasoningTokens?: number | undefined;
|
|
467
574
|
};
|
|
468
575
|
declare const GPT_4Options: z.ZodObject<{
|
|
469
576
|
apiKey: z.ZodString;
|
|
@@ -532,6 +639,21 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
|
|
|
532
639
|
}>;
|
|
533
640
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
534
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
|
+
};
|
|
656
|
+
maxReasoningTokens?: number | undefined;
|
|
535
657
|
};
|
|
536
658
|
declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
|
|
537
659
|
apiKey: z.ZodString;
|
|
@@ -600,6 +722,21 @@ declare const GPT_4_1106_PreviewSchema: {
|
|
|
600
722
|
}>;
|
|
601
723
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
602
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
|
+
};
|
|
739
|
+
maxReasoningTokens?: number | undefined;
|
|
603
740
|
};
|
|
604
741
|
declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
605
742
|
apiKey: z.ZodString;
|
|
@@ -668,6 +805,21 @@ declare const GPT_4_0613Schema: {
|
|
|
668
805
|
}>;
|
|
669
806
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
670
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
|
+
};
|
|
822
|
+
maxReasoningTokens?: number | undefined;
|
|
671
823
|
};
|
|
672
824
|
declare const GPT_4_0613Options: z.ZodObject<{
|
|
673
825
|
apiKey: z.ZodString;
|
|
@@ -736,6 +888,21 @@ declare const GPT_3_5_TurboSchema: {
|
|
|
736
888
|
}>;
|
|
737
889
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
738
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
|
+
};
|
|
905
|
+
maxReasoningTokens?: number | undefined;
|
|
739
906
|
};
|
|
740
907
|
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
741
908
|
apiKey: z.ZodString;
|
|
@@ -804,6 +971,21 @@ declare const GPT_3_5_Turbo_1106Schema: {
|
|
|
804
971
|
}>;
|
|
805
972
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
806
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
|
+
};
|
|
988
|
+
maxReasoningTokens?: number | undefined;
|
|
807
989
|
};
|
|
808
990
|
declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
|
|
809
991
|
apiKey: z.ZodString;
|
|
@@ -872,6 +1054,21 @@ declare const GPT_3_5_Turbo_0125Schema: {
|
|
|
872
1054
|
}>;
|
|
873
1055
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
874
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
|
+
};
|
|
1071
|
+
maxReasoningTokens?: number | undefined;
|
|
875
1072
|
};
|
|
876
1073
|
declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
|
|
877
1074
|
apiKey: z.ZodString;
|
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,21 @@ 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
|
+
};
|
|
84
|
+
maxReasoningTokens?: number | undefined;
|
|
69
85
|
};
|
|
70
86
|
|
|
71
87
|
declare class BaseChatModelOpenAI extends BaseChatModel {
|
|
@@ -76,6 +92,7 @@ declare class BaseChatModelOpenAI extends BaseChatModel {
|
|
|
76
92
|
private readonly azureApiVersion;
|
|
77
93
|
constructor(modelSchema: ChatModelSchemaType, options: BaseChatModelOptionsType);
|
|
78
94
|
getDefaultHeaders(): HeadersType;
|
|
95
|
+
getModelPricing(): ChatModelPriceType;
|
|
79
96
|
}
|
|
80
97
|
|
|
81
98
|
declare const GPT_4oLiteral: "gpt-4o";
|
|
@@ -124,6 +141,21 @@ declare const GPT_4oSchema: {
|
|
|
124
141
|
}>;
|
|
125
142
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
126
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
|
+
};
|
|
158
|
+
maxReasoningTokens?: number | undefined;
|
|
127
159
|
};
|
|
128
160
|
declare const GPT_4oOptions: z.ZodObject<{
|
|
129
161
|
apiKey: z.ZodString;
|
|
@@ -192,6 +224,21 @@ declare const GPT_4o_MiniSchema: {
|
|
|
192
224
|
}>;
|
|
193
225
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
194
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
|
+
};
|
|
241
|
+
maxReasoningTokens?: number | undefined;
|
|
195
242
|
};
|
|
196
243
|
declare const GPT_4o_MiniOptions: z.ZodObject<{
|
|
197
244
|
apiKey: z.ZodString;
|
|
@@ -260,6 +307,21 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
|
|
|
260
307
|
}>;
|
|
261
308
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
262
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
|
+
};
|
|
324
|
+
maxReasoningTokens?: number | undefined;
|
|
263
325
|
};
|
|
264
326
|
declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
|
|
265
327
|
apiKey: z.ZodString;
|
|
@@ -328,6 +390,21 @@ declare const GPT_4o_2024_08_06Schema: {
|
|
|
328
390
|
}>;
|
|
329
391
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
330
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
|
+
};
|
|
407
|
+
maxReasoningTokens?: number | undefined;
|
|
331
408
|
};
|
|
332
409
|
declare const GPT_4o_2024_08_06Options: z.ZodObject<{
|
|
333
410
|
apiKey: z.ZodString;
|
|
@@ -396,6 +473,21 @@ declare const GPT_4o_2024_05_13Schema: {
|
|
|
396
473
|
}>;
|
|
397
474
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
398
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
|
+
};
|
|
490
|
+
maxReasoningTokens?: number | undefined;
|
|
399
491
|
};
|
|
400
492
|
declare const GPT_4o_2024_05_13Options: z.ZodObject<{
|
|
401
493
|
apiKey: z.ZodString;
|
|
@@ -464,6 +556,21 @@ declare const GPT_4Schema: {
|
|
|
464
556
|
}>;
|
|
465
557
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
466
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
|
+
};
|
|
573
|
+
maxReasoningTokens?: number | undefined;
|
|
467
574
|
};
|
|
468
575
|
declare const GPT_4Options: z.ZodObject<{
|
|
469
576
|
apiKey: z.ZodString;
|
|
@@ -532,6 +639,21 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
|
|
|
532
639
|
}>;
|
|
533
640
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
534
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
|
+
};
|
|
656
|
+
maxReasoningTokens?: number | undefined;
|
|
535
657
|
};
|
|
536
658
|
declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
|
|
537
659
|
apiKey: z.ZodString;
|
|
@@ -600,6 +722,21 @@ declare const GPT_4_1106_PreviewSchema: {
|
|
|
600
722
|
}>;
|
|
601
723
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
602
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
|
+
};
|
|
739
|
+
maxReasoningTokens?: number | undefined;
|
|
603
740
|
};
|
|
604
741
|
declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
|
|
605
742
|
apiKey: z.ZodString;
|
|
@@ -668,6 +805,21 @@ declare const GPT_4_0613Schema: {
|
|
|
668
805
|
}>;
|
|
669
806
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
670
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
|
+
};
|
|
822
|
+
maxReasoningTokens?: number | undefined;
|
|
671
823
|
};
|
|
672
824
|
declare const GPT_4_0613Options: z.ZodObject<{
|
|
673
825
|
apiKey: z.ZodString;
|
|
@@ -736,6 +888,21 @@ declare const GPT_3_5_TurboSchema: {
|
|
|
736
888
|
}>;
|
|
737
889
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
738
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
|
+
};
|
|
905
|
+
maxReasoningTokens?: number | undefined;
|
|
739
906
|
};
|
|
740
907
|
declare const GPT_3_5_TurboOptions: z.ZodObject<{
|
|
741
908
|
apiKey: z.ZodString;
|
|
@@ -804,6 +971,21 @@ declare const GPT_3_5_Turbo_1106Schema: {
|
|
|
804
971
|
}>;
|
|
805
972
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
806
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
|
+
};
|
|
988
|
+
maxReasoningTokens?: number | undefined;
|
|
807
989
|
};
|
|
808
990
|
declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
|
|
809
991
|
apiKey: z.ZodString;
|
|
@@ -872,6 +1054,21 @@ declare const GPT_3_5_Turbo_0125Schema: {
|
|
|
872
1054
|
}>;
|
|
873
1055
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
874
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
|
+
};
|
|
1071
|
+
maxReasoningTokens?: number | undefined;
|
|
875
1072
|
};
|
|
876
1073
|
declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
|
|
877
1074
|
apiKey: z.ZodString;
|