@adaline/provider 0.22.0 → 0.24.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 +62 -52
- package/dist/index.d.ts +62 -52
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -89,13 +89,14 @@ declare class InvalidEmbeddingRequestsError extends GatewayBaseError {
|
|
|
89
89
|
static isInvalidEmbeddingRequestsError(error: unknown): error is InvalidEmbeddingRequestsError;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["system", "user", "assistant", "tool"]>, M extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["text", "image", "tool-call", "tool-response"]>>(Roles?: R, Modalities?: M) => z.ZodObject<{
|
|
92
|
+
declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["system", "user", "assistant", "tool"]>, M extends z.ZodEnum<[string, ...string[]]> = z.ZodEnum<["text", "image", "tool-call", "tool-response", "reasoning"]>>(Roles?: R, Modalities?: M) => z.ZodObject<{
|
|
93
93
|
name: z.ZodString;
|
|
94
94
|
description: z.ZodString;
|
|
95
95
|
roles: z.ZodRecord<R, z.ZodOptional<z.ZodString>>;
|
|
96
96
|
modalities: z.ZodArray<M, "atleastone">;
|
|
97
97
|
maxInputTokens: z.ZodNumber;
|
|
98
98
|
maxOutputTokens: z.ZodNumber;
|
|
99
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
99
100
|
config: z.ZodEffects<z.ZodObject<{
|
|
100
101
|
def: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
101
102
|
type: z.ZodLiteral<"range">;
|
|
@@ -147,21 +148,21 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
147
148
|
param: z.ZodString;
|
|
148
149
|
title: z.ZodString;
|
|
149
150
|
description: z.ZodString;
|
|
150
|
-
default: z.
|
|
151
|
+
default: z.ZodString;
|
|
151
152
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
152
153
|
}, "strip", z.ZodTypeAny, {
|
|
153
154
|
type: "select-string";
|
|
154
155
|
param: string;
|
|
155
156
|
title: string;
|
|
156
157
|
description: string;
|
|
157
|
-
default: string
|
|
158
|
+
default: string;
|
|
158
159
|
choices: string[];
|
|
159
160
|
}, {
|
|
160
161
|
type: "select-string";
|
|
161
162
|
param: string;
|
|
162
163
|
title: string;
|
|
163
164
|
description: string;
|
|
164
|
-
default: string
|
|
165
|
+
default: string;
|
|
165
166
|
choices: string[];
|
|
166
167
|
}>, z.ZodObject<{
|
|
167
168
|
type: z.ZodLiteral<"select-boolean">;
|
|
@@ -234,7 +235,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
234
235
|
param: string;
|
|
235
236
|
title: string;
|
|
236
237
|
description: string;
|
|
237
|
-
default: string
|
|
238
|
+
default: string;
|
|
238
239
|
choices: string[];
|
|
239
240
|
}>;
|
|
240
241
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -271,7 +272,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
271
272
|
param: string;
|
|
272
273
|
title: string;
|
|
273
274
|
description: string;
|
|
274
|
-
default: string
|
|
275
|
+
default: string;
|
|
275
276
|
choices: string[];
|
|
276
277
|
}>;
|
|
277
278
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -308,7 +309,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
308
309
|
param: string;
|
|
309
310
|
title: string;
|
|
310
311
|
description: string;
|
|
311
|
-
default: string
|
|
312
|
+
default: string;
|
|
312
313
|
choices: string[];
|
|
313
314
|
}>;
|
|
314
315
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -345,7 +346,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
345
346
|
param: string;
|
|
346
347
|
title: string;
|
|
347
348
|
description: string;
|
|
348
|
-
default: string
|
|
349
|
+
default: string;
|
|
349
350
|
choices: string[];
|
|
350
351
|
}>;
|
|
351
352
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -357,6 +358,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
357
358
|
modalities: z.ZodArray<M, "atleastone">;
|
|
358
359
|
maxInputTokens: z.ZodNumber;
|
|
359
360
|
maxOutputTokens: z.ZodNumber;
|
|
361
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
360
362
|
config: z.ZodEffects<z.ZodObject<{
|
|
361
363
|
def: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
362
364
|
type: z.ZodLiteral<"range">;
|
|
@@ -408,21 +410,21 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
408
410
|
param: z.ZodString;
|
|
409
411
|
title: z.ZodString;
|
|
410
412
|
description: z.ZodString;
|
|
411
|
-
default: z.
|
|
413
|
+
default: z.ZodString;
|
|
412
414
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
413
415
|
}, "strip", z.ZodTypeAny, {
|
|
414
416
|
type: "select-string";
|
|
415
417
|
param: string;
|
|
416
418
|
title: string;
|
|
417
419
|
description: string;
|
|
418
|
-
default: string
|
|
420
|
+
default: string;
|
|
419
421
|
choices: string[];
|
|
420
422
|
}, {
|
|
421
423
|
type: "select-string";
|
|
422
424
|
param: string;
|
|
423
425
|
title: string;
|
|
424
426
|
description: string;
|
|
425
|
-
default: string
|
|
427
|
+
default: string;
|
|
426
428
|
choices: string[];
|
|
427
429
|
}>, z.ZodObject<{
|
|
428
430
|
type: z.ZodLiteral<"select-boolean">;
|
|
@@ -495,7 +497,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
495
497
|
param: string;
|
|
496
498
|
title: string;
|
|
497
499
|
description: string;
|
|
498
|
-
default: string
|
|
500
|
+
default: string;
|
|
499
501
|
choices: string[];
|
|
500
502
|
}>;
|
|
501
503
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -532,7 +534,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
532
534
|
param: string;
|
|
533
535
|
title: string;
|
|
534
536
|
description: string;
|
|
535
|
-
default: string
|
|
537
|
+
default: string;
|
|
536
538
|
choices: string[];
|
|
537
539
|
}>;
|
|
538
540
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -569,7 +571,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
569
571
|
param: string;
|
|
570
572
|
title: string;
|
|
571
573
|
description: string;
|
|
572
|
-
default: string
|
|
574
|
+
default: string;
|
|
573
575
|
choices: string[];
|
|
574
576
|
}>;
|
|
575
577
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -606,7 +608,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
606
608
|
param: string;
|
|
607
609
|
title: string;
|
|
608
610
|
description: string;
|
|
609
|
-
default: string
|
|
611
|
+
default: string;
|
|
610
612
|
choices: string[];
|
|
611
613
|
}>;
|
|
612
614
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -618,6 +620,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
618
620
|
modalities: z.ZodArray<M, "atleastone">;
|
|
619
621
|
maxInputTokens: z.ZodNumber;
|
|
620
622
|
maxOutputTokens: z.ZodNumber;
|
|
623
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
621
624
|
config: z.ZodEffects<z.ZodObject<{
|
|
622
625
|
def: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
623
626
|
type: z.ZodLiteral<"range">;
|
|
@@ -669,21 +672,21 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
669
672
|
param: z.ZodString;
|
|
670
673
|
title: z.ZodString;
|
|
671
674
|
description: z.ZodString;
|
|
672
|
-
default: z.
|
|
675
|
+
default: z.ZodString;
|
|
673
676
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
674
677
|
}, "strip", z.ZodTypeAny, {
|
|
675
678
|
type: "select-string";
|
|
676
679
|
param: string;
|
|
677
680
|
title: string;
|
|
678
681
|
description: string;
|
|
679
|
-
default: string
|
|
682
|
+
default: string;
|
|
680
683
|
choices: string[];
|
|
681
684
|
}, {
|
|
682
685
|
type: "select-string";
|
|
683
686
|
param: string;
|
|
684
687
|
title: string;
|
|
685
688
|
description: string;
|
|
686
|
-
default: string
|
|
689
|
+
default: string;
|
|
687
690
|
choices: string[];
|
|
688
691
|
}>, z.ZodObject<{
|
|
689
692
|
type: z.ZodLiteral<"select-boolean">;
|
|
@@ -756,7 +759,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
756
759
|
param: string;
|
|
757
760
|
title: string;
|
|
758
761
|
description: string;
|
|
759
|
-
default: string
|
|
762
|
+
default: string;
|
|
760
763
|
choices: string[];
|
|
761
764
|
}>;
|
|
762
765
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -793,7 +796,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
793
796
|
param: string;
|
|
794
797
|
title: string;
|
|
795
798
|
description: string;
|
|
796
|
-
default: string
|
|
799
|
+
default: string;
|
|
797
800
|
choices: string[];
|
|
798
801
|
}>;
|
|
799
802
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -830,7 +833,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
830
833
|
param: string;
|
|
831
834
|
title: string;
|
|
832
835
|
description: string;
|
|
833
|
-
default: string
|
|
836
|
+
default: string;
|
|
834
837
|
choices: string[];
|
|
835
838
|
}>;
|
|
836
839
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -867,7 +870,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
867
870
|
param: string;
|
|
868
871
|
title: string;
|
|
869
872
|
description: string;
|
|
870
|
-
default: string
|
|
873
|
+
default: string;
|
|
871
874
|
choices: string[];
|
|
872
875
|
}>;
|
|
873
876
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -879,6 +882,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
879
882
|
modalities: z.ZodArray<M, "atleastone">;
|
|
880
883
|
maxInputTokens: z.ZodNumber;
|
|
881
884
|
maxOutputTokens: z.ZodNumber;
|
|
885
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
882
886
|
config: z.ZodEffects<z.ZodObject<{
|
|
883
887
|
def: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
884
888
|
type: z.ZodLiteral<"range">;
|
|
@@ -930,21 +934,21 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
930
934
|
param: z.ZodString;
|
|
931
935
|
title: z.ZodString;
|
|
932
936
|
description: z.ZodString;
|
|
933
|
-
default: z.
|
|
937
|
+
default: z.ZodString;
|
|
934
938
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
935
939
|
}, "strip", z.ZodTypeAny, {
|
|
936
940
|
type: "select-string";
|
|
937
941
|
param: string;
|
|
938
942
|
title: string;
|
|
939
943
|
description: string;
|
|
940
|
-
default: string
|
|
944
|
+
default: string;
|
|
941
945
|
choices: string[];
|
|
942
946
|
}, {
|
|
943
947
|
type: "select-string";
|
|
944
948
|
param: string;
|
|
945
949
|
title: string;
|
|
946
950
|
description: string;
|
|
947
|
-
default: string
|
|
951
|
+
default: string;
|
|
948
952
|
choices: string[];
|
|
949
953
|
}>, z.ZodObject<{
|
|
950
954
|
type: z.ZodLiteral<"select-boolean">;
|
|
@@ -1017,7 +1021,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1017
1021
|
param: string;
|
|
1018
1022
|
title: string;
|
|
1019
1023
|
description: string;
|
|
1020
|
-
default: string
|
|
1024
|
+
default: string;
|
|
1021
1025
|
choices: string[];
|
|
1022
1026
|
}>;
|
|
1023
1027
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1054,7 +1058,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1054
1058
|
param: string;
|
|
1055
1059
|
title: string;
|
|
1056
1060
|
description: string;
|
|
1057
|
-
default: string
|
|
1061
|
+
default: string;
|
|
1058
1062
|
choices: string[];
|
|
1059
1063
|
}>;
|
|
1060
1064
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1091,7 +1095,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1091
1095
|
param: string;
|
|
1092
1096
|
title: string;
|
|
1093
1097
|
description: string;
|
|
1094
|
-
default: string
|
|
1098
|
+
default: string;
|
|
1095
1099
|
choices: string[];
|
|
1096
1100
|
}>;
|
|
1097
1101
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1128,7 +1132,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1128
1132
|
param: string;
|
|
1129
1133
|
title: string;
|
|
1130
1134
|
description: string;
|
|
1131
|
-
default: string
|
|
1135
|
+
default: string;
|
|
1132
1136
|
choices: string[];
|
|
1133
1137
|
}>;
|
|
1134
1138
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1140,6 +1144,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1140
1144
|
modalities: z.ZodArray<M, "atleastone">;
|
|
1141
1145
|
maxInputTokens: z.ZodNumber;
|
|
1142
1146
|
maxOutputTokens: z.ZodNumber;
|
|
1147
|
+
maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
|
|
1143
1148
|
config: z.ZodEffects<z.ZodObject<{
|
|
1144
1149
|
def: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1145
1150
|
type: z.ZodLiteral<"range">;
|
|
@@ -1191,21 +1196,21 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1191
1196
|
param: z.ZodString;
|
|
1192
1197
|
title: z.ZodString;
|
|
1193
1198
|
description: z.ZodString;
|
|
1194
|
-
default: z.
|
|
1199
|
+
default: z.ZodString;
|
|
1195
1200
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
1196
1201
|
}, "strip", z.ZodTypeAny, {
|
|
1197
1202
|
type: "select-string";
|
|
1198
1203
|
param: string;
|
|
1199
1204
|
title: string;
|
|
1200
1205
|
description: string;
|
|
1201
|
-
default: string
|
|
1206
|
+
default: string;
|
|
1202
1207
|
choices: string[];
|
|
1203
1208
|
}, {
|
|
1204
1209
|
type: "select-string";
|
|
1205
1210
|
param: string;
|
|
1206
1211
|
title: string;
|
|
1207
1212
|
description: string;
|
|
1208
|
-
default: string
|
|
1213
|
+
default: string;
|
|
1209
1214
|
choices: string[];
|
|
1210
1215
|
}>, z.ZodObject<{
|
|
1211
1216
|
type: z.ZodLiteral<"select-boolean">;
|
|
@@ -1278,7 +1283,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1278
1283
|
param: string;
|
|
1279
1284
|
title: string;
|
|
1280
1285
|
description: string;
|
|
1281
|
-
default: string
|
|
1286
|
+
default: string;
|
|
1282
1287
|
choices: string[];
|
|
1283
1288
|
}>;
|
|
1284
1289
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1315,7 +1320,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1315
1320
|
param: string;
|
|
1316
1321
|
title: string;
|
|
1317
1322
|
description: string;
|
|
1318
|
-
default: string
|
|
1323
|
+
default: string;
|
|
1319
1324
|
choices: string[];
|
|
1320
1325
|
}>;
|
|
1321
1326
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1352,7 +1357,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1352
1357
|
param: string;
|
|
1353
1358
|
title: string;
|
|
1354
1359
|
description: string;
|
|
1355
|
-
default: string
|
|
1360
|
+
default: string;
|
|
1356
1361
|
choices: string[];
|
|
1357
1362
|
}>;
|
|
1358
1363
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1389,7 +1394,7 @@ declare const ChatModelSchema: <R extends z.ZodEnum<[string, ...string[]]> = z.Z
|
|
|
1389
1394
|
param: string;
|
|
1390
1395
|
title: string;
|
|
1391
1396
|
description: string;
|
|
1392
|
-
default: string
|
|
1397
|
+
default: string;
|
|
1393
1398
|
choices: string[];
|
|
1394
1399
|
}>;
|
|
1395
1400
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1459,21 +1464,21 @@ declare const ConfigItemDef: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
1459
1464
|
param: z.ZodString;
|
|
1460
1465
|
title: z.ZodString;
|
|
1461
1466
|
description: z.ZodString;
|
|
1462
|
-
default: z.
|
|
1467
|
+
default: z.ZodString;
|
|
1463
1468
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
1464
1469
|
}, "strip", z.ZodTypeAny, {
|
|
1465
1470
|
type: "select-string";
|
|
1466
1471
|
param: string;
|
|
1467
1472
|
title: string;
|
|
1468
1473
|
description: string;
|
|
1469
|
-
default: string
|
|
1474
|
+
default: string;
|
|
1470
1475
|
choices: string[];
|
|
1471
1476
|
}, {
|
|
1472
1477
|
type: "select-string";
|
|
1473
1478
|
param: string;
|
|
1474
1479
|
title: string;
|
|
1475
1480
|
description: string;
|
|
1476
|
-
default: string
|
|
1481
|
+
default: string;
|
|
1477
1482
|
choices: string[];
|
|
1478
1483
|
}>, z.ZodObject<{
|
|
1479
1484
|
type: z.ZodLiteral<"select-boolean">;
|
|
@@ -1600,21 +1605,21 @@ declare const SelectStringConfigItemDef: z.ZodObject<{
|
|
|
1600
1605
|
param: z.ZodString;
|
|
1601
1606
|
title: z.ZodString;
|
|
1602
1607
|
description: z.ZodString;
|
|
1603
|
-
default: z.
|
|
1608
|
+
default: z.ZodString;
|
|
1604
1609
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
1605
1610
|
}, "strip", z.ZodTypeAny, {
|
|
1606
1611
|
type: "select-string";
|
|
1607
1612
|
param: string;
|
|
1608
1613
|
title: string;
|
|
1609
1614
|
description: string;
|
|
1610
|
-
default: string
|
|
1615
|
+
default: string;
|
|
1611
1616
|
choices: string[];
|
|
1612
1617
|
}, {
|
|
1613
1618
|
type: "select-string";
|
|
1614
1619
|
param: string;
|
|
1615
1620
|
title: string;
|
|
1616
1621
|
description: string;
|
|
1617
|
-
default: string
|
|
1622
|
+
default: string;
|
|
1618
1623
|
choices: string[];
|
|
1619
1624
|
}>;
|
|
1620
1625
|
type SelectStringConfigItemDefType = z.infer<typeof SelectStringConfigItemDef>;
|
|
@@ -1626,7 +1631,7 @@ declare const SelectStringConfigItem: (data: Omit<SelectStringConfigItemDefType,
|
|
|
1626
1631
|
param: string;
|
|
1627
1632
|
title: string;
|
|
1628
1633
|
description: string;
|
|
1629
|
-
default: string
|
|
1634
|
+
default: string;
|
|
1630
1635
|
choices: string[];
|
|
1631
1636
|
};
|
|
1632
1637
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
|
|
@@ -1802,21 +1807,21 @@ declare const EmbeddingModelSchema: <M extends z.ZodEnum<[string, ...string[]]>
|
|
|
1802
1807
|
param: z.ZodString;
|
|
1803
1808
|
title: z.ZodString;
|
|
1804
1809
|
description: z.ZodString;
|
|
1805
|
-
default: z.
|
|
1810
|
+
default: z.ZodString;
|
|
1806
1811
|
choices: z.ZodArray<z.ZodString, "many">;
|
|
1807
1812
|
}, "strip", z.ZodTypeAny, {
|
|
1808
1813
|
type: "select-string";
|
|
1809
1814
|
param: string;
|
|
1810
1815
|
title: string;
|
|
1811
1816
|
description: string;
|
|
1812
|
-
default: string
|
|
1817
|
+
default: string;
|
|
1813
1818
|
choices: string[];
|
|
1814
1819
|
}, {
|
|
1815
1820
|
type: "select-string";
|
|
1816
1821
|
param: string;
|
|
1817
1822
|
title: string;
|
|
1818
1823
|
description: string;
|
|
1819
|
-
default: string
|
|
1824
|
+
default: string;
|
|
1820
1825
|
choices: string[];
|
|
1821
1826
|
}>, z.ZodObject<{
|
|
1822
1827
|
type: z.ZodLiteral<"select-boolean">;
|
|
@@ -1889,7 +1894,7 @@ declare const EmbeddingModelSchema: <M extends z.ZodEnum<[string, ...string[]]>
|
|
|
1889
1894
|
param: string;
|
|
1890
1895
|
title: string;
|
|
1891
1896
|
description: string;
|
|
1892
|
-
default: string
|
|
1897
|
+
default: string;
|
|
1893
1898
|
choices: string[];
|
|
1894
1899
|
}>;
|
|
1895
1900
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1926,7 +1931,7 @@ declare const EmbeddingModelSchema: <M extends z.ZodEnum<[string, ...string[]]>
|
|
|
1926
1931
|
param: string;
|
|
1927
1932
|
title: string;
|
|
1928
1933
|
description: string;
|
|
1929
|
-
default: string
|
|
1934
|
+
default: string;
|
|
1930
1935
|
choices: string[];
|
|
1931
1936
|
}>;
|
|
1932
1937
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -1963,7 +1968,7 @@ declare const EmbeddingModelSchema: <M extends z.ZodEnum<[string, ...string[]]>
|
|
|
1963
1968
|
param: string;
|
|
1964
1969
|
title: string;
|
|
1965
1970
|
description: string;
|
|
1966
|
-
default: string
|
|
1971
|
+
default: string;
|
|
1967
1972
|
choices: string[];
|
|
1968
1973
|
}>;
|
|
1969
1974
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2000,7 +2005,7 @@ declare const EmbeddingModelSchema: <M extends z.ZodEnum<[string, ...string[]]>
|
|
|
2000
2005
|
param: string;
|
|
2001
2006
|
title: string;
|
|
2002
2007
|
description: string;
|
|
2003
|
-
default: string
|
|
2008
|
+
default: string;
|
|
2004
2009
|
choices: string[];
|
|
2005
2010
|
}>;
|
|
2006
2011
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2044,7 +2049,7 @@ declare const EmbeddingModelSchema: <M extends z.ZodEnum<[string, ...string[]]>
|
|
|
2044
2049
|
param: string;
|
|
2045
2050
|
title: string;
|
|
2046
2051
|
description: string;
|
|
2047
|
-
default: string
|
|
2052
|
+
default: string;
|
|
2048
2053
|
choices: string[];
|
|
2049
2054
|
}>;
|
|
2050
2055
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2088,7 +2093,7 @@ declare const EmbeddingModelSchema: <M extends z.ZodEnum<[string, ...string[]]>
|
|
|
2088
2093
|
param: string;
|
|
2089
2094
|
title: string;
|
|
2090
2095
|
description: string;
|
|
2091
|
-
default: string
|
|
2096
|
+
default: string;
|
|
2092
2097
|
choices: string[];
|
|
2093
2098
|
}>;
|
|
2094
2099
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
@@ -2217,6 +2222,11 @@ declare const CHAT_CONFIG: {
|
|
|
2217
2222
|
readonly title: "Response schema";
|
|
2218
2223
|
readonly description: "When response format is set to 'json_schema', the model will return a JSON object of the specified schema.";
|
|
2219
2224
|
};
|
|
2225
|
+
MAX_REASONING_TOKENS: {
|
|
2226
|
+
readonly type: "range";
|
|
2227
|
+
readonly title: "Max reasoning tokens";
|
|
2228
|
+
readonly description: "Specify the total tokens for reasoning, where one token approximates four English characters.";
|
|
2229
|
+
};
|
|
2220
2230
|
};
|
|
2221
2231
|
|
|
2222
2232
|
declare const EMBEDDING_CONFIG: {
|