@adaline/google 0.2.0 → 0.3.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/README.md +0 -2
- package/dist/index.d.mts +415 -189
- package/dist/index.d.ts +415 -189
- package/dist/index.js +126 -120
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -7
package/dist/index.d.mts
CHANGED
|
@@ -12,9 +12,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
12
12
|
title: string;
|
|
13
13
|
description: string;
|
|
14
14
|
max: number;
|
|
15
|
+
default: number;
|
|
15
16
|
min: number;
|
|
16
17
|
step: number;
|
|
17
|
-
default: number;
|
|
18
18
|
};
|
|
19
19
|
readonly maxTokens: {
|
|
20
20
|
type: "range";
|
|
@@ -22,9 +22,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
22
22
|
title: string;
|
|
23
23
|
description: string;
|
|
24
24
|
max: number;
|
|
25
|
+
default: number;
|
|
25
26
|
min: number;
|
|
26
27
|
step: number;
|
|
27
|
-
default: number;
|
|
28
28
|
};
|
|
29
29
|
readonly stop: {
|
|
30
30
|
type: "multi-string";
|
|
@@ -39,9 +39,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
39
39
|
title: string;
|
|
40
40
|
description: string;
|
|
41
41
|
max: number;
|
|
42
|
+
default: number;
|
|
42
43
|
min: number;
|
|
43
44
|
step: number;
|
|
44
|
-
default: number;
|
|
45
45
|
};
|
|
46
46
|
readonly toolChoice: {
|
|
47
47
|
type: "select-string";
|
|
@@ -98,9 +98,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
98
98
|
title: string;
|
|
99
99
|
description: string;
|
|
100
100
|
max: number;
|
|
101
|
+
default: number;
|
|
101
102
|
min: number;
|
|
102
103
|
step: number;
|
|
103
|
-
default: number;
|
|
104
104
|
};
|
|
105
105
|
readonly maxTokens: {
|
|
106
106
|
type: "range";
|
|
@@ -108,9 +108,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
108
108
|
title: string;
|
|
109
109
|
description: string;
|
|
110
110
|
max: number;
|
|
111
|
+
default: number;
|
|
111
112
|
min: number;
|
|
112
113
|
step: number;
|
|
113
|
-
default: number;
|
|
114
114
|
};
|
|
115
115
|
readonly stop: {
|
|
116
116
|
type: "multi-string";
|
|
@@ -125,9 +125,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
125
125
|
title: string;
|
|
126
126
|
description: string;
|
|
127
127
|
max: number;
|
|
128
|
+
default: number;
|
|
128
129
|
min: number;
|
|
129
130
|
step: number;
|
|
130
|
-
default: number;
|
|
131
131
|
};
|
|
132
132
|
readonly topK: {
|
|
133
133
|
type: "range";
|
|
@@ -135,9 +135,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
135
135
|
title: string;
|
|
136
136
|
description: string;
|
|
137
137
|
max: number;
|
|
138
|
+
default: number;
|
|
138
139
|
min: number;
|
|
139
140
|
step: number;
|
|
140
|
-
default: number;
|
|
141
141
|
};
|
|
142
142
|
readonly frequencyPenalty: {
|
|
143
143
|
type: "range";
|
|
@@ -145,9 +145,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
145
145
|
title: string;
|
|
146
146
|
description: string;
|
|
147
147
|
max: number;
|
|
148
|
+
default: number;
|
|
148
149
|
min: number;
|
|
149
150
|
step: number;
|
|
150
|
-
default: number;
|
|
151
151
|
};
|
|
152
152
|
readonly presencePenalty: {
|
|
153
153
|
type: "range";
|
|
@@ -155,9 +155,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
155
155
|
title: string;
|
|
156
156
|
description: string;
|
|
157
157
|
max: number;
|
|
158
|
+
default: number;
|
|
158
159
|
min: number;
|
|
159
160
|
step: number;
|
|
160
|
-
default: number;
|
|
161
161
|
};
|
|
162
162
|
readonly seed: {
|
|
163
163
|
type: "range";
|
|
@@ -165,9 +165,9 @@ declare const GoogleChatModelConfigs: {
|
|
|
165
165
|
title: string;
|
|
166
166
|
description: string;
|
|
167
167
|
max: number;
|
|
168
|
+
default: number;
|
|
168
169
|
min: number;
|
|
169
170
|
step: number;
|
|
170
|
-
default: number;
|
|
171
171
|
};
|
|
172
172
|
readonly toolChoice: {
|
|
173
173
|
type: "select-string";
|
|
@@ -238,9 +238,9 @@ declare const GoogleEmbeddingModelConfigs: {
|
|
|
238
238
|
title: string;
|
|
239
239
|
description: string;
|
|
240
240
|
max: number;
|
|
241
|
+
default: number;
|
|
241
242
|
min: number;
|
|
242
243
|
step: number;
|
|
243
|
-
default: number;
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
schema: zod.ZodObject<{
|
|
@@ -260,9 +260,9 @@ declare const temperature: (max: number, _default: number) => {
|
|
|
260
260
|
title: string;
|
|
261
261
|
description: string;
|
|
262
262
|
max: number;
|
|
263
|
+
default: number;
|
|
263
264
|
min: number;
|
|
264
265
|
step: number;
|
|
265
|
-
default: number;
|
|
266
266
|
};
|
|
267
267
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
268
268
|
};
|
|
@@ -273,9 +273,9 @@ declare const maxTokens: (maxOutputTokens: number) => {
|
|
|
273
273
|
title: string;
|
|
274
274
|
description: string;
|
|
275
275
|
max: number;
|
|
276
|
+
default: number;
|
|
276
277
|
min: number;
|
|
277
278
|
step: number;
|
|
278
|
-
default: number;
|
|
279
279
|
};
|
|
280
280
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
281
281
|
};
|
|
@@ -296,9 +296,9 @@ declare const topP: (_default: number) => {
|
|
|
296
296
|
title: string;
|
|
297
297
|
description: string;
|
|
298
298
|
max: number;
|
|
299
|
+
default: number;
|
|
299
300
|
min: number;
|
|
300
301
|
step: number;
|
|
301
|
-
default: number;
|
|
302
302
|
};
|
|
303
303
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
304
304
|
};
|
|
@@ -309,9 +309,9 @@ declare const topK: (_default: number) => {
|
|
|
309
309
|
title: string;
|
|
310
310
|
description: string;
|
|
311
311
|
max: number;
|
|
312
|
+
default: number;
|
|
312
313
|
min: number;
|
|
313
314
|
step: number;
|
|
314
|
-
default: number;
|
|
315
315
|
};
|
|
316
316
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
317
317
|
};
|
|
@@ -322,9 +322,9 @@ declare const frequencyPenalty: {
|
|
|
322
322
|
title: string;
|
|
323
323
|
description: string;
|
|
324
324
|
max: number;
|
|
325
|
+
default: number;
|
|
325
326
|
min: number;
|
|
326
327
|
step: number;
|
|
327
|
-
default: number;
|
|
328
328
|
};
|
|
329
329
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
330
330
|
};
|
|
@@ -335,9 +335,9 @@ declare const presencePenalty: {
|
|
|
335
335
|
title: string;
|
|
336
336
|
description: string;
|
|
337
337
|
max: number;
|
|
338
|
+
default: number;
|
|
338
339
|
min: number;
|
|
339
340
|
step: number;
|
|
340
|
-
default: number;
|
|
341
341
|
};
|
|
342
342
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
343
343
|
};
|
|
@@ -348,9 +348,9 @@ declare const seed: {
|
|
|
348
348
|
title: string;
|
|
349
349
|
description: string;
|
|
350
350
|
max: number;
|
|
351
|
+
default: number;
|
|
351
352
|
min: number;
|
|
352
353
|
step: number;
|
|
353
|
-
default: number;
|
|
354
354
|
};
|
|
355
355
|
schema: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
356
356
|
};
|
|
@@ -417,9 +417,9 @@ declare const ChatModelBaseConfigDef: (maxTemperature: number, defaultTemperatur
|
|
|
417
417
|
title: string;
|
|
418
418
|
description: string;
|
|
419
419
|
max: number;
|
|
420
|
+
default: number;
|
|
420
421
|
min: number;
|
|
421
422
|
step: number;
|
|
422
|
-
default: number;
|
|
423
423
|
};
|
|
424
424
|
readonly maxTokens: {
|
|
425
425
|
type: "range";
|
|
@@ -427,9 +427,9 @@ declare const ChatModelBaseConfigDef: (maxTemperature: number, defaultTemperatur
|
|
|
427
427
|
title: string;
|
|
428
428
|
description: string;
|
|
429
429
|
max: number;
|
|
430
|
+
default: number;
|
|
430
431
|
min: number;
|
|
431
432
|
step: number;
|
|
432
|
-
default: number;
|
|
433
433
|
};
|
|
434
434
|
readonly stop: {
|
|
435
435
|
type: "multi-string";
|
|
@@ -444,9 +444,9 @@ declare const ChatModelBaseConfigDef: (maxTemperature: number, defaultTemperatur
|
|
|
444
444
|
title: string;
|
|
445
445
|
description: string;
|
|
446
446
|
max: number;
|
|
447
|
+
default: number;
|
|
447
448
|
min: number;
|
|
448
449
|
step: number;
|
|
449
|
-
default: number;
|
|
450
450
|
};
|
|
451
451
|
readonly toolChoice: {
|
|
452
452
|
type: "select-string";
|
|
@@ -514,9 +514,9 @@ declare const ChatModelC1ConfigDef: (maxTemperature: number, defaultTemperature:
|
|
|
514
514
|
title: string;
|
|
515
515
|
description: string;
|
|
516
516
|
max: number;
|
|
517
|
+
default: number;
|
|
517
518
|
min: number;
|
|
518
519
|
step: number;
|
|
519
|
-
default: number;
|
|
520
520
|
};
|
|
521
521
|
readonly maxTokens: {
|
|
522
522
|
type: "range";
|
|
@@ -524,9 +524,9 @@ declare const ChatModelC1ConfigDef: (maxTemperature: number, defaultTemperature:
|
|
|
524
524
|
title: string;
|
|
525
525
|
description: string;
|
|
526
526
|
max: number;
|
|
527
|
+
default: number;
|
|
527
528
|
min: number;
|
|
528
529
|
step: number;
|
|
529
|
-
default: number;
|
|
530
530
|
};
|
|
531
531
|
readonly stop: {
|
|
532
532
|
type: "multi-string";
|
|
@@ -541,9 +541,9 @@ declare const ChatModelC1ConfigDef: (maxTemperature: number, defaultTemperature:
|
|
|
541
541
|
title: string;
|
|
542
542
|
description: string;
|
|
543
543
|
max: number;
|
|
544
|
+
default: number;
|
|
544
545
|
min: number;
|
|
545
546
|
step: number;
|
|
546
|
-
default: number;
|
|
547
547
|
};
|
|
548
548
|
readonly topK: {
|
|
549
549
|
type: "range";
|
|
@@ -551,9 +551,9 @@ declare const ChatModelC1ConfigDef: (maxTemperature: number, defaultTemperature:
|
|
|
551
551
|
title: string;
|
|
552
552
|
description: string;
|
|
553
553
|
max: number;
|
|
554
|
+
default: number;
|
|
554
555
|
min: number;
|
|
555
556
|
step: number;
|
|
556
|
-
default: number;
|
|
557
557
|
};
|
|
558
558
|
readonly frequencyPenalty: {
|
|
559
559
|
type: "range";
|
|
@@ -561,9 +561,9 @@ declare const ChatModelC1ConfigDef: (maxTemperature: number, defaultTemperature:
|
|
|
561
561
|
title: string;
|
|
562
562
|
description: string;
|
|
563
563
|
max: number;
|
|
564
|
+
default: number;
|
|
564
565
|
min: number;
|
|
565
566
|
step: number;
|
|
566
|
-
default: number;
|
|
567
567
|
};
|
|
568
568
|
readonly presencePenalty: {
|
|
569
569
|
type: "range";
|
|
@@ -571,9 +571,9 @@ declare const ChatModelC1ConfigDef: (maxTemperature: number, defaultTemperature:
|
|
|
571
571
|
title: string;
|
|
572
572
|
description: string;
|
|
573
573
|
max: number;
|
|
574
|
+
default: number;
|
|
574
575
|
min: number;
|
|
575
576
|
step: number;
|
|
576
|
-
default: number;
|
|
577
577
|
};
|
|
578
578
|
readonly seed: {
|
|
579
579
|
type: "range";
|
|
@@ -581,9 +581,9 @@ declare const ChatModelC1ConfigDef: (maxTemperature: number, defaultTemperature:
|
|
|
581
581
|
title: string;
|
|
582
582
|
description: string;
|
|
583
583
|
max: number;
|
|
584
|
+
default: number;
|
|
584
585
|
min: number;
|
|
585
586
|
step: number;
|
|
586
|
-
default: number;
|
|
587
587
|
};
|
|
588
588
|
readonly toolChoice: {
|
|
589
589
|
type: "select-string";
|
|
@@ -616,9 +616,9 @@ declare const EmbeddingModelBaseConfigDef: (maxDimensions: number) => {
|
|
|
616
616
|
title: string;
|
|
617
617
|
description: string;
|
|
618
618
|
max: number;
|
|
619
|
+
default: number;
|
|
619
620
|
min: number;
|
|
620
621
|
step: number;
|
|
621
|
-
default: number;
|
|
622
622
|
};
|
|
623
623
|
};
|
|
624
624
|
|
|
@@ -629,9 +629,9 @@ declare const dimensions: (maxDimensions: number) => {
|
|
|
629
629
|
title: string;
|
|
630
630
|
description: string;
|
|
631
631
|
max: number;
|
|
632
|
+
default: number;
|
|
632
633
|
min: number;
|
|
633
634
|
step: number;
|
|
634
|
-
default: number;
|
|
635
635
|
};
|
|
636
636
|
schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
|
|
637
637
|
};
|
|
@@ -1620,6 +1620,26 @@ declare const GoogleChatRequest: z.ZodObject<{
|
|
|
1620
1620
|
topP?: number | undefined;
|
|
1621
1621
|
topK?: number | undefined;
|
|
1622
1622
|
}>>;
|
|
1623
|
+
safetySettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1624
|
+
category: z.ZodEnum<["HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_SEXUALLY_EXPLICIT", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_CIVIC_INTEGRITY"]>;
|
|
1625
|
+
threshold: z.ZodEnum<["HARM_BLOCK_THRESHOLD_UNSPECIFIED", "BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE", "OFF"]>;
|
|
1626
|
+
}, "strip", z.ZodTypeAny, {
|
|
1627
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1628
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1629
|
+
}, {
|
|
1630
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1631
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1632
|
+
}>, "many">>;
|
|
1633
|
+
safety_settings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1634
|
+
category: z.ZodEnum<["HARM_CATEGORY_HARASSMENT", "HARM_CATEGORY_HATE_SPEECH", "HARM_CATEGORY_SEXUALLY_EXPLICIT", "HARM_CATEGORY_DANGEROUS_CONTENT", "HARM_CATEGORY_CIVIC_INTEGRITY"]>;
|
|
1635
|
+
threshold: z.ZodEnum<["HARM_BLOCK_THRESHOLD_UNSPECIFIED", "BLOCK_LOW_AND_ABOVE", "BLOCK_MEDIUM_AND_ABOVE", "BLOCK_ONLY_HIGH", "BLOCK_NONE", "OFF"]>;
|
|
1636
|
+
}, "strip", z.ZodTypeAny, {
|
|
1637
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1638
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1639
|
+
}, {
|
|
1640
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1641
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1642
|
+
}>, "many">>;
|
|
1623
1643
|
tools: z.ZodOptional<z.ZodObject<{
|
|
1624
1644
|
function_declarations: z.ZodArray<z.ZodObject<{
|
|
1625
1645
|
name: z.ZodString;
|
|
@@ -1713,6 +1733,10 @@ declare const GoogleChatRequest: z.ZodObject<{
|
|
|
1713
1733
|
};
|
|
1714
1734
|
})[];
|
|
1715
1735
|
}[];
|
|
1736
|
+
safetySettings?: {
|
|
1737
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1738
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1739
|
+
}[] | undefined;
|
|
1716
1740
|
model?: string | undefined;
|
|
1717
1741
|
systemInstruction?: {
|
|
1718
1742
|
parts: {
|
|
@@ -1744,6 +1768,10 @@ declare const GoogleChatRequest: z.ZodObject<{
|
|
|
1744
1768
|
topP?: number | undefined;
|
|
1745
1769
|
topK?: number | undefined;
|
|
1746
1770
|
} | undefined;
|
|
1771
|
+
safety_settings?: {
|
|
1772
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1773
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1774
|
+
}[] | undefined;
|
|
1747
1775
|
tools?: {
|
|
1748
1776
|
function_declarations: {
|
|
1749
1777
|
description: string;
|
|
@@ -1785,6 +1813,10 @@ declare const GoogleChatRequest: z.ZodObject<{
|
|
|
1785
1813
|
};
|
|
1786
1814
|
})[];
|
|
1787
1815
|
}[];
|
|
1816
|
+
safetySettings?: {
|
|
1817
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1818
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1819
|
+
}[] | undefined;
|
|
1788
1820
|
model?: string | undefined;
|
|
1789
1821
|
systemInstruction?: {
|
|
1790
1822
|
parts: {
|
|
@@ -1816,6 +1848,10 @@ declare const GoogleChatRequest: z.ZodObject<{
|
|
|
1816
1848
|
topP?: number | undefined;
|
|
1817
1849
|
topK?: number | undefined;
|
|
1818
1850
|
} | undefined;
|
|
1851
|
+
safety_settings?: {
|
|
1852
|
+
threshold: "HARM_BLOCK_THRESHOLD_UNSPECIFIED" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH" | "BLOCK_NONE" | "OFF";
|
|
1853
|
+
category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT" | "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
1854
|
+
}[] | undefined;
|
|
1819
1855
|
tools?: {
|
|
1820
1856
|
function_declarations: {
|
|
1821
1857
|
description: string;
|
|
@@ -1839,16 +1875,19 @@ declare const GoogleChatRequest: z.ZodObject<{
|
|
|
1839
1875
|
type GoogleChatRequestType = z.infer<typeof GoogleChatRequest>;
|
|
1840
1876
|
|
|
1841
1877
|
declare const BaseChatModelOptions: z.ZodObject<{
|
|
1878
|
+
modelName: z.ZodString;
|
|
1842
1879
|
apiKey: z.ZodString;
|
|
1843
1880
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1844
1881
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
1845
1882
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
1846
1883
|
}, "strip", z.ZodTypeAny, {
|
|
1884
|
+
modelName: string;
|
|
1847
1885
|
apiKey: string;
|
|
1848
1886
|
baseUrl?: string | undefined;
|
|
1849
1887
|
completeChatUrl?: string | undefined;
|
|
1850
1888
|
streamChatUrl?: string | undefined;
|
|
1851
1889
|
}, {
|
|
1890
|
+
modelName: string;
|
|
1852
1891
|
apiKey: string;
|
|
1853
1892
|
baseUrl?: string | undefined;
|
|
1854
1893
|
completeChatUrl?: string | undefined;
|
|
@@ -1858,6 +1897,7 @@ type BaseChatModelOptionsType = z.infer<typeof BaseChatModelOptions>;
|
|
|
1858
1897
|
declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
|
|
1859
1898
|
readonly version: "v1";
|
|
1860
1899
|
modelSchema: ChatModelSchemaType;
|
|
1900
|
+
readonly modelName: string;
|
|
1861
1901
|
private readonly apiKey;
|
|
1862
1902
|
private readonly baseUrl;
|
|
1863
1903
|
private readonly streamChatUrl;
|
|
@@ -1897,8 +1937,8 @@ declare class BaseChatModelGemini1 extends BaseChatModel {
|
|
|
1897
1937
|
transformMessages(messages: MessageType[]): ParamsType;
|
|
1898
1938
|
}
|
|
1899
1939
|
|
|
1900
|
-
declare const
|
|
1901
|
-
declare const
|
|
1940
|
+
declare const GeminiProLiteral = "gemini-pro";
|
|
1941
|
+
declare const GeminiProSchema: {
|
|
1902
1942
|
description: string;
|
|
1903
1943
|
maxOutputTokens: number;
|
|
1904
1944
|
name: string;
|
|
@@ -1912,15 +1952,27 @@ declare const Gemini1_0ProSchema: {
|
|
|
1912
1952
|
title: string;
|
|
1913
1953
|
description: string;
|
|
1914
1954
|
max: number;
|
|
1955
|
+
} | {
|
|
1956
|
+
type: "object-schema";
|
|
1957
|
+
param: string;
|
|
1958
|
+
title: string;
|
|
1959
|
+
description: string;
|
|
1960
|
+
objectSchema?: any;
|
|
1915
1961
|
} | {
|
|
1916
1962
|
type: "range";
|
|
1917
1963
|
param: string;
|
|
1918
1964
|
title: string;
|
|
1919
1965
|
description: string;
|
|
1920
1966
|
max: number;
|
|
1967
|
+
default: number;
|
|
1921
1968
|
min: number;
|
|
1922
1969
|
step: number;
|
|
1923
|
-
|
|
1970
|
+
} | {
|
|
1971
|
+
type: "select-boolean";
|
|
1972
|
+
param: string;
|
|
1973
|
+
title: string;
|
|
1974
|
+
description: string;
|
|
1975
|
+
default: boolean | null;
|
|
1924
1976
|
} | {
|
|
1925
1977
|
type: "select-string";
|
|
1926
1978
|
param: string;
|
|
@@ -1928,45 +1980,107 @@ declare const Gemini1_0ProSchema: {
|
|
|
1928
1980
|
description: string;
|
|
1929
1981
|
default: string | null;
|
|
1930
1982
|
choices: string[];
|
|
1983
|
+
}>;
|
|
1984
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
1985
|
+
};
|
|
1986
|
+
};
|
|
1987
|
+
declare const GeminiProOptions: z.ZodObject<{
|
|
1988
|
+
modelName: z.ZodString;
|
|
1989
|
+
apiKey: z.ZodString;
|
|
1990
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1991
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
1992
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
}, "strip", z.ZodTypeAny, {
|
|
1994
|
+
modelName: string;
|
|
1995
|
+
apiKey: string;
|
|
1996
|
+
baseUrl?: string | undefined;
|
|
1997
|
+
completeChatUrl?: string | undefined;
|
|
1998
|
+
streamChatUrl?: string | undefined;
|
|
1999
|
+
}, {
|
|
2000
|
+
modelName: string;
|
|
2001
|
+
apiKey: string;
|
|
2002
|
+
baseUrl?: string | undefined;
|
|
2003
|
+
completeChatUrl?: string | undefined;
|
|
2004
|
+
streamChatUrl?: string | undefined;
|
|
2005
|
+
}>;
|
|
2006
|
+
type GeminiProOptionsType = z.infer<typeof GeminiProOptions>;
|
|
2007
|
+
declare class GeminiPro extends BaseChatModelGemini1 {
|
|
2008
|
+
constructor(options: GeminiProOptionsType);
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
declare const GeminiProVisionLiteral = "gemini-pro-vision";
|
|
2012
|
+
declare const GeminiProVisionSchema: {
|
|
2013
|
+
description: string;
|
|
2014
|
+
maxOutputTokens: number;
|
|
2015
|
+
name: string;
|
|
2016
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2017
|
+
modalities: ["text" | "image", ...("text" | "image")[]];
|
|
2018
|
+
maxInputTokens: number;
|
|
2019
|
+
config: {
|
|
2020
|
+
def: Record<string, {
|
|
2021
|
+
type: "multi-string";
|
|
2022
|
+
param: string;
|
|
2023
|
+
title: string;
|
|
2024
|
+
description: string;
|
|
2025
|
+
max: number;
|
|
1931
2026
|
} | {
|
|
1932
2027
|
type: "object-schema";
|
|
1933
2028
|
param: string;
|
|
1934
2029
|
title: string;
|
|
1935
2030
|
description: string;
|
|
1936
2031
|
objectSchema?: any;
|
|
2032
|
+
} | {
|
|
2033
|
+
type: "range";
|
|
2034
|
+
param: string;
|
|
2035
|
+
title: string;
|
|
2036
|
+
description: string;
|
|
2037
|
+
max: number;
|
|
2038
|
+
default: number;
|
|
2039
|
+
min: number;
|
|
2040
|
+
step: number;
|
|
1937
2041
|
} | {
|
|
1938
2042
|
type: "select-boolean";
|
|
1939
2043
|
param: string;
|
|
1940
2044
|
title: string;
|
|
1941
2045
|
description: string;
|
|
1942
2046
|
default: boolean | null;
|
|
2047
|
+
} | {
|
|
2048
|
+
type: "select-string";
|
|
2049
|
+
param: string;
|
|
2050
|
+
title: string;
|
|
2051
|
+
description: string;
|
|
2052
|
+
default: string | null;
|
|
2053
|
+
choices: string[];
|
|
1943
2054
|
}>;
|
|
1944
2055
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
1945
2056
|
};
|
|
1946
2057
|
};
|
|
1947
|
-
declare const
|
|
2058
|
+
declare const GeminiProVisionOptions: z.ZodObject<{
|
|
2059
|
+
modelName: z.ZodString;
|
|
1948
2060
|
apiKey: z.ZodString;
|
|
1949
2061
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
1950
2062
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
1951
2063
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
1952
2064
|
}, "strip", z.ZodTypeAny, {
|
|
2065
|
+
modelName: string;
|
|
1953
2066
|
apiKey: string;
|
|
1954
2067
|
baseUrl?: string | undefined;
|
|
1955
2068
|
completeChatUrl?: string | undefined;
|
|
1956
2069
|
streamChatUrl?: string | undefined;
|
|
1957
2070
|
}, {
|
|
2071
|
+
modelName: string;
|
|
1958
2072
|
apiKey: string;
|
|
1959
2073
|
baseUrl?: string | undefined;
|
|
1960
2074
|
completeChatUrl?: string | undefined;
|
|
1961
2075
|
streamChatUrl?: string | undefined;
|
|
1962
2076
|
}>;
|
|
1963
|
-
type
|
|
1964
|
-
declare class
|
|
1965
|
-
constructor(options:
|
|
2077
|
+
type GeminiProVisionOptionsType = z.infer<typeof GeminiProVisionOptions>;
|
|
2078
|
+
declare class GeminiProVision extends BaseChatModelGemini1 {
|
|
2079
|
+
constructor(options: GeminiProVisionOptionsType);
|
|
1966
2080
|
}
|
|
1967
2081
|
|
|
1968
|
-
declare const
|
|
1969
|
-
declare const
|
|
2082
|
+
declare const Gemini1_0ProLiteral = "gemini-1.0-pro";
|
|
2083
|
+
declare const Gemini1_0ProSchema: {
|
|
1970
2084
|
description: string;
|
|
1971
2085
|
maxOutputTokens: number;
|
|
1972
2086
|
name: string;
|
|
@@ -1980,15 +2094,27 @@ declare const Gemini1_0Pro_001Schema: {
|
|
|
1980
2094
|
title: string;
|
|
1981
2095
|
description: string;
|
|
1982
2096
|
max: number;
|
|
2097
|
+
} | {
|
|
2098
|
+
type: "object-schema";
|
|
2099
|
+
param: string;
|
|
2100
|
+
title: string;
|
|
2101
|
+
description: string;
|
|
2102
|
+
objectSchema?: any;
|
|
1983
2103
|
} | {
|
|
1984
2104
|
type: "range";
|
|
1985
2105
|
param: string;
|
|
1986
2106
|
title: string;
|
|
1987
2107
|
description: string;
|
|
1988
2108
|
max: number;
|
|
2109
|
+
default: number;
|
|
1989
2110
|
min: number;
|
|
1990
2111
|
step: number;
|
|
1991
|
-
|
|
2112
|
+
} | {
|
|
2113
|
+
type: "select-boolean";
|
|
2114
|
+
param: string;
|
|
2115
|
+
title: string;
|
|
2116
|
+
description: string;
|
|
2117
|
+
default: boolean | null;
|
|
1992
2118
|
} | {
|
|
1993
2119
|
type: "select-string";
|
|
1994
2120
|
param: string;
|
|
@@ -1996,33 +2122,95 @@ declare const Gemini1_0Pro_001Schema: {
|
|
|
1996
2122
|
description: string;
|
|
1997
2123
|
default: string | null;
|
|
1998
2124
|
choices: string[];
|
|
2125
|
+
}>;
|
|
2126
|
+
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2127
|
+
};
|
|
2128
|
+
};
|
|
2129
|
+
declare const Gemini1_0ProOptions: z.ZodObject<{
|
|
2130
|
+
modelName: z.ZodString;
|
|
2131
|
+
apiKey: z.ZodString;
|
|
2132
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2133
|
+
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
}, "strip", z.ZodTypeAny, {
|
|
2136
|
+
modelName: string;
|
|
2137
|
+
apiKey: string;
|
|
2138
|
+
baseUrl?: string | undefined;
|
|
2139
|
+
completeChatUrl?: string | undefined;
|
|
2140
|
+
streamChatUrl?: string | undefined;
|
|
2141
|
+
}, {
|
|
2142
|
+
modelName: string;
|
|
2143
|
+
apiKey: string;
|
|
2144
|
+
baseUrl?: string | undefined;
|
|
2145
|
+
completeChatUrl?: string | undefined;
|
|
2146
|
+
streamChatUrl?: string | undefined;
|
|
2147
|
+
}>;
|
|
2148
|
+
type Gemini1_0ProOptionsType = z.infer<typeof Gemini1_0ProOptions>;
|
|
2149
|
+
declare class Gemini1_0Pro extends BaseChatModelGemini1 {
|
|
2150
|
+
constructor(options: Gemini1_0ProOptionsType);
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
declare const Gemini1_0Pro_001Literal = "gemini-1.0-pro-001";
|
|
2154
|
+
declare const Gemini1_0Pro_001Schema: {
|
|
2155
|
+
description: string;
|
|
2156
|
+
maxOutputTokens: number;
|
|
2157
|
+
name: string;
|
|
2158
|
+
roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
|
|
2159
|
+
modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
|
|
2160
|
+
maxInputTokens: number;
|
|
2161
|
+
config: {
|
|
2162
|
+
def: Record<string, {
|
|
2163
|
+
type: "multi-string";
|
|
2164
|
+
param: string;
|
|
2165
|
+
title: string;
|
|
2166
|
+
description: string;
|
|
2167
|
+
max: number;
|
|
1999
2168
|
} | {
|
|
2000
2169
|
type: "object-schema";
|
|
2001
2170
|
param: string;
|
|
2002
2171
|
title: string;
|
|
2003
2172
|
description: string;
|
|
2004
2173
|
objectSchema?: any;
|
|
2174
|
+
} | {
|
|
2175
|
+
type: "range";
|
|
2176
|
+
param: string;
|
|
2177
|
+
title: string;
|
|
2178
|
+
description: string;
|
|
2179
|
+
max: number;
|
|
2180
|
+
default: number;
|
|
2181
|
+
min: number;
|
|
2182
|
+
step: number;
|
|
2005
2183
|
} | {
|
|
2006
2184
|
type: "select-boolean";
|
|
2007
2185
|
param: string;
|
|
2008
2186
|
title: string;
|
|
2009
2187
|
description: string;
|
|
2010
2188
|
default: boolean | null;
|
|
2189
|
+
} | {
|
|
2190
|
+
type: "select-string";
|
|
2191
|
+
param: string;
|
|
2192
|
+
title: string;
|
|
2193
|
+
description: string;
|
|
2194
|
+
default: string | null;
|
|
2195
|
+
choices: string[];
|
|
2011
2196
|
}>;
|
|
2012
2197
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2013
2198
|
};
|
|
2014
2199
|
};
|
|
2015
2200
|
declare const Gemini1_0Pro_001Options: z.ZodObject<{
|
|
2201
|
+
modelName: z.ZodString;
|
|
2016
2202
|
apiKey: z.ZodString;
|
|
2017
2203
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2018
2204
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2019
2205
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2020
2206
|
}, "strip", z.ZodTypeAny, {
|
|
2207
|
+
modelName: string;
|
|
2021
2208
|
apiKey: string;
|
|
2022
2209
|
baseUrl?: string | undefined;
|
|
2023
2210
|
completeChatUrl?: string | undefined;
|
|
2024
2211
|
streamChatUrl?: string | undefined;
|
|
2025
2212
|
}, {
|
|
2213
|
+
modelName: string;
|
|
2026
2214
|
apiKey: string;
|
|
2027
2215
|
baseUrl?: string | undefined;
|
|
2028
2216
|
completeChatUrl?: string | undefined;
|
|
@@ -2049,48 +2237,51 @@ declare const Gemini1_0ProLatestSchema: {
|
|
|
2049
2237
|
description: string;
|
|
2050
2238
|
max: number;
|
|
2051
2239
|
} | {
|
|
2052
|
-
type: "
|
|
2240
|
+
type: "object-schema";
|
|
2053
2241
|
param: string;
|
|
2054
2242
|
title: string;
|
|
2055
2243
|
description: string;
|
|
2056
|
-
|
|
2057
|
-
min: number;
|
|
2058
|
-
step: number;
|
|
2059
|
-
default: number;
|
|
2244
|
+
objectSchema?: any;
|
|
2060
2245
|
} | {
|
|
2061
|
-
type: "
|
|
2246
|
+
type: "range";
|
|
2062
2247
|
param: string;
|
|
2063
2248
|
title: string;
|
|
2064
2249
|
description: string;
|
|
2065
|
-
|
|
2066
|
-
|
|
2250
|
+
max: number;
|
|
2251
|
+
default: number;
|
|
2252
|
+
min: number;
|
|
2253
|
+
step: number;
|
|
2067
2254
|
} | {
|
|
2068
|
-
type: "
|
|
2255
|
+
type: "select-boolean";
|
|
2069
2256
|
param: string;
|
|
2070
2257
|
title: string;
|
|
2071
2258
|
description: string;
|
|
2072
|
-
|
|
2259
|
+
default: boolean | null;
|
|
2073
2260
|
} | {
|
|
2074
|
-
type: "select-
|
|
2261
|
+
type: "select-string";
|
|
2075
2262
|
param: string;
|
|
2076
2263
|
title: string;
|
|
2077
2264
|
description: string;
|
|
2078
|
-
default:
|
|
2265
|
+
default: string | null;
|
|
2266
|
+
choices: string[];
|
|
2079
2267
|
}>;
|
|
2080
2268
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2081
2269
|
};
|
|
2082
2270
|
};
|
|
2083
2271
|
declare const Gemini1_0ProLatestOptions: z.ZodObject<{
|
|
2272
|
+
modelName: z.ZodString;
|
|
2084
2273
|
apiKey: z.ZodString;
|
|
2085
2274
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2086
2275
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2087
2276
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2088
2277
|
}, "strip", z.ZodTypeAny, {
|
|
2278
|
+
modelName: string;
|
|
2089
2279
|
apiKey: string;
|
|
2090
2280
|
baseUrl?: string | undefined;
|
|
2091
2281
|
completeChatUrl?: string | undefined;
|
|
2092
2282
|
streamChatUrl?: string | undefined;
|
|
2093
2283
|
}, {
|
|
2284
|
+
modelName: string;
|
|
2094
2285
|
apiKey: string;
|
|
2095
2286
|
baseUrl?: string | undefined;
|
|
2096
2287
|
completeChatUrl?: string | undefined;
|
|
@@ -2117,48 +2308,51 @@ declare const Gemini1_0ProVisionSchema: {
|
|
|
2117
2308
|
description: string;
|
|
2118
2309
|
max: number;
|
|
2119
2310
|
} | {
|
|
2120
|
-
type: "
|
|
2311
|
+
type: "object-schema";
|
|
2121
2312
|
param: string;
|
|
2122
2313
|
title: string;
|
|
2123
2314
|
description: string;
|
|
2124
|
-
|
|
2125
|
-
min: number;
|
|
2126
|
-
step: number;
|
|
2127
|
-
default: number;
|
|
2315
|
+
objectSchema?: any;
|
|
2128
2316
|
} | {
|
|
2129
|
-
type: "
|
|
2317
|
+
type: "range";
|
|
2130
2318
|
param: string;
|
|
2131
2319
|
title: string;
|
|
2132
2320
|
description: string;
|
|
2133
|
-
|
|
2134
|
-
|
|
2321
|
+
max: number;
|
|
2322
|
+
default: number;
|
|
2323
|
+
min: number;
|
|
2324
|
+
step: number;
|
|
2135
2325
|
} | {
|
|
2136
|
-
type: "
|
|
2326
|
+
type: "select-boolean";
|
|
2137
2327
|
param: string;
|
|
2138
2328
|
title: string;
|
|
2139
2329
|
description: string;
|
|
2140
|
-
|
|
2330
|
+
default: boolean | null;
|
|
2141
2331
|
} | {
|
|
2142
|
-
type: "select-
|
|
2332
|
+
type: "select-string";
|
|
2143
2333
|
param: string;
|
|
2144
2334
|
title: string;
|
|
2145
2335
|
description: string;
|
|
2146
|
-
default:
|
|
2336
|
+
default: string | null;
|
|
2337
|
+
choices: string[];
|
|
2147
2338
|
}>;
|
|
2148
2339
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2149
2340
|
};
|
|
2150
2341
|
};
|
|
2151
2342
|
declare const Gemini1_0ProVisionOptions: z.ZodObject<{
|
|
2343
|
+
modelName: z.ZodString;
|
|
2152
2344
|
apiKey: z.ZodString;
|
|
2153
2345
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2154
2346
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2155
2347
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2156
2348
|
}, "strip", z.ZodTypeAny, {
|
|
2349
|
+
modelName: string;
|
|
2157
2350
|
apiKey: string;
|
|
2158
2351
|
baseUrl?: string | undefined;
|
|
2159
2352
|
completeChatUrl?: string | undefined;
|
|
2160
2353
|
streamChatUrl?: string | undefined;
|
|
2161
2354
|
}, {
|
|
2355
|
+
modelName: string;
|
|
2162
2356
|
apiKey: string;
|
|
2163
2357
|
baseUrl?: string | undefined;
|
|
2164
2358
|
completeChatUrl?: string | undefined;
|
|
@@ -2185,48 +2379,51 @@ declare const Gemini1_5FlashSchema: {
|
|
|
2185
2379
|
description: string;
|
|
2186
2380
|
max: number;
|
|
2187
2381
|
} | {
|
|
2188
|
-
type: "
|
|
2382
|
+
type: "object-schema";
|
|
2189
2383
|
param: string;
|
|
2190
2384
|
title: string;
|
|
2191
2385
|
description: string;
|
|
2192
|
-
|
|
2193
|
-
min: number;
|
|
2194
|
-
step: number;
|
|
2195
|
-
default: number;
|
|
2386
|
+
objectSchema?: any;
|
|
2196
2387
|
} | {
|
|
2197
|
-
type: "
|
|
2388
|
+
type: "range";
|
|
2198
2389
|
param: string;
|
|
2199
2390
|
title: string;
|
|
2200
2391
|
description: string;
|
|
2201
|
-
|
|
2202
|
-
|
|
2392
|
+
max: number;
|
|
2393
|
+
default: number;
|
|
2394
|
+
min: number;
|
|
2395
|
+
step: number;
|
|
2203
2396
|
} | {
|
|
2204
|
-
type: "
|
|
2397
|
+
type: "select-boolean";
|
|
2205
2398
|
param: string;
|
|
2206
2399
|
title: string;
|
|
2207
2400
|
description: string;
|
|
2208
|
-
|
|
2401
|
+
default: boolean | null;
|
|
2209
2402
|
} | {
|
|
2210
|
-
type: "select-
|
|
2403
|
+
type: "select-string";
|
|
2211
2404
|
param: string;
|
|
2212
2405
|
title: string;
|
|
2213
2406
|
description: string;
|
|
2214
|
-
default:
|
|
2407
|
+
default: string | null;
|
|
2408
|
+
choices: string[];
|
|
2215
2409
|
}>;
|
|
2216
2410
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2217
2411
|
};
|
|
2218
2412
|
};
|
|
2219
2413
|
declare const Gemini1_5FlashOptions: z.ZodObject<{
|
|
2414
|
+
modelName: z.ZodString;
|
|
2220
2415
|
apiKey: z.ZodString;
|
|
2221
2416
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2222
2417
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2223
2418
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2224
2419
|
}, "strip", z.ZodTypeAny, {
|
|
2420
|
+
modelName: string;
|
|
2225
2421
|
apiKey: string;
|
|
2226
2422
|
baseUrl?: string | undefined;
|
|
2227
2423
|
completeChatUrl?: string | undefined;
|
|
2228
2424
|
streamChatUrl?: string | undefined;
|
|
2229
2425
|
}, {
|
|
2426
|
+
modelName: string;
|
|
2230
2427
|
apiKey: string;
|
|
2231
2428
|
baseUrl?: string | undefined;
|
|
2232
2429
|
completeChatUrl?: string | undefined;
|
|
@@ -2253,48 +2450,51 @@ declare const Gemini1_5Flash001Schema: {
|
|
|
2253
2450
|
description: string;
|
|
2254
2451
|
max: number;
|
|
2255
2452
|
} | {
|
|
2256
|
-
type: "
|
|
2453
|
+
type: "object-schema";
|
|
2257
2454
|
param: string;
|
|
2258
2455
|
title: string;
|
|
2259
2456
|
description: string;
|
|
2260
|
-
|
|
2261
|
-
min: number;
|
|
2262
|
-
step: number;
|
|
2263
|
-
default: number;
|
|
2457
|
+
objectSchema?: any;
|
|
2264
2458
|
} | {
|
|
2265
|
-
type: "
|
|
2459
|
+
type: "range";
|
|
2266
2460
|
param: string;
|
|
2267
2461
|
title: string;
|
|
2268
2462
|
description: string;
|
|
2269
|
-
|
|
2270
|
-
|
|
2463
|
+
max: number;
|
|
2464
|
+
default: number;
|
|
2465
|
+
min: number;
|
|
2466
|
+
step: number;
|
|
2271
2467
|
} | {
|
|
2272
|
-
type: "
|
|
2468
|
+
type: "select-boolean";
|
|
2273
2469
|
param: string;
|
|
2274
2470
|
title: string;
|
|
2275
2471
|
description: string;
|
|
2276
|
-
|
|
2472
|
+
default: boolean | null;
|
|
2277
2473
|
} | {
|
|
2278
|
-
type: "select-
|
|
2474
|
+
type: "select-string";
|
|
2279
2475
|
param: string;
|
|
2280
2476
|
title: string;
|
|
2281
2477
|
description: string;
|
|
2282
|
-
default:
|
|
2478
|
+
default: string | null;
|
|
2479
|
+
choices: string[];
|
|
2283
2480
|
}>;
|
|
2284
2481
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2285
2482
|
};
|
|
2286
2483
|
};
|
|
2287
2484
|
declare const Gemini1_5Flash001Options: z.ZodObject<{
|
|
2485
|
+
modelName: z.ZodString;
|
|
2288
2486
|
apiKey: z.ZodString;
|
|
2289
2487
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2290
2488
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2291
2489
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2292
2490
|
}, "strip", z.ZodTypeAny, {
|
|
2491
|
+
modelName: string;
|
|
2293
2492
|
apiKey: string;
|
|
2294
2493
|
baseUrl?: string | undefined;
|
|
2295
2494
|
completeChatUrl?: string | undefined;
|
|
2296
2495
|
streamChatUrl?: string | undefined;
|
|
2297
2496
|
}, {
|
|
2497
|
+
modelName: string;
|
|
2298
2498
|
apiKey: string;
|
|
2299
2499
|
baseUrl?: string | undefined;
|
|
2300
2500
|
completeChatUrl?: string | undefined;
|
|
@@ -2321,48 +2521,51 @@ declare const Gemini1_5Flash002Schema: {
|
|
|
2321
2521
|
description: string;
|
|
2322
2522
|
max: number;
|
|
2323
2523
|
} | {
|
|
2324
|
-
type: "
|
|
2524
|
+
type: "object-schema";
|
|
2325
2525
|
param: string;
|
|
2326
2526
|
title: string;
|
|
2327
2527
|
description: string;
|
|
2328
|
-
|
|
2329
|
-
min: number;
|
|
2330
|
-
step: number;
|
|
2331
|
-
default: number;
|
|
2528
|
+
objectSchema?: any;
|
|
2332
2529
|
} | {
|
|
2333
|
-
type: "
|
|
2530
|
+
type: "range";
|
|
2334
2531
|
param: string;
|
|
2335
2532
|
title: string;
|
|
2336
2533
|
description: string;
|
|
2337
|
-
|
|
2338
|
-
|
|
2534
|
+
max: number;
|
|
2535
|
+
default: number;
|
|
2536
|
+
min: number;
|
|
2537
|
+
step: number;
|
|
2339
2538
|
} | {
|
|
2340
|
-
type: "
|
|
2539
|
+
type: "select-boolean";
|
|
2341
2540
|
param: string;
|
|
2342
2541
|
title: string;
|
|
2343
2542
|
description: string;
|
|
2344
|
-
|
|
2543
|
+
default: boolean | null;
|
|
2345
2544
|
} | {
|
|
2346
|
-
type: "select-
|
|
2545
|
+
type: "select-string";
|
|
2347
2546
|
param: string;
|
|
2348
2547
|
title: string;
|
|
2349
2548
|
description: string;
|
|
2350
|
-
default:
|
|
2549
|
+
default: string | null;
|
|
2550
|
+
choices: string[];
|
|
2351
2551
|
}>;
|
|
2352
2552
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2353
2553
|
};
|
|
2354
2554
|
};
|
|
2355
2555
|
declare const Gemini1_5Flash002Options: z.ZodObject<{
|
|
2556
|
+
modelName: z.ZodString;
|
|
2356
2557
|
apiKey: z.ZodString;
|
|
2357
2558
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2358
2559
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2359
2560
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2360
2561
|
}, "strip", z.ZodTypeAny, {
|
|
2562
|
+
modelName: string;
|
|
2361
2563
|
apiKey: string;
|
|
2362
2564
|
baseUrl?: string | undefined;
|
|
2363
2565
|
completeChatUrl?: string | undefined;
|
|
2364
2566
|
streamChatUrl?: string | undefined;
|
|
2365
2567
|
}, {
|
|
2568
|
+
modelName: string;
|
|
2366
2569
|
apiKey: string;
|
|
2367
2570
|
baseUrl?: string | undefined;
|
|
2368
2571
|
completeChatUrl?: string | undefined;
|
|
@@ -2389,48 +2592,51 @@ declare const Gemini1_5FlashLatestSchema: {
|
|
|
2389
2592
|
description: string;
|
|
2390
2593
|
max: number;
|
|
2391
2594
|
} | {
|
|
2392
|
-
type: "
|
|
2595
|
+
type: "object-schema";
|
|
2393
2596
|
param: string;
|
|
2394
2597
|
title: string;
|
|
2395
2598
|
description: string;
|
|
2396
|
-
|
|
2397
|
-
min: number;
|
|
2398
|
-
step: number;
|
|
2399
|
-
default: number;
|
|
2599
|
+
objectSchema?: any;
|
|
2400
2600
|
} | {
|
|
2401
|
-
type: "
|
|
2601
|
+
type: "range";
|
|
2402
2602
|
param: string;
|
|
2403
2603
|
title: string;
|
|
2404
2604
|
description: string;
|
|
2405
|
-
|
|
2406
|
-
|
|
2605
|
+
max: number;
|
|
2606
|
+
default: number;
|
|
2607
|
+
min: number;
|
|
2608
|
+
step: number;
|
|
2407
2609
|
} | {
|
|
2408
|
-
type: "
|
|
2610
|
+
type: "select-boolean";
|
|
2409
2611
|
param: string;
|
|
2410
2612
|
title: string;
|
|
2411
2613
|
description: string;
|
|
2412
|
-
|
|
2614
|
+
default: boolean | null;
|
|
2413
2615
|
} | {
|
|
2414
|
-
type: "select-
|
|
2616
|
+
type: "select-string";
|
|
2415
2617
|
param: string;
|
|
2416
2618
|
title: string;
|
|
2417
2619
|
description: string;
|
|
2418
|
-
default:
|
|
2620
|
+
default: string | null;
|
|
2621
|
+
choices: string[];
|
|
2419
2622
|
}>;
|
|
2420
2623
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2421
2624
|
};
|
|
2422
2625
|
};
|
|
2423
2626
|
declare const Gemini1_5FlashLatestOptions: z.ZodObject<{
|
|
2627
|
+
modelName: z.ZodString;
|
|
2424
2628
|
apiKey: z.ZodString;
|
|
2425
2629
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2426
2630
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2427
2631
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2428
2632
|
}, "strip", z.ZodTypeAny, {
|
|
2633
|
+
modelName: string;
|
|
2429
2634
|
apiKey: string;
|
|
2430
2635
|
baseUrl?: string | undefined;
|
|
2431
2636
|
completeChatUrl?: string | undefined;
|
|
2432
2637
|
streamChatUrl?: string | undefined;
|
|
2433
2638
|
}, {
|
|
2639
|
+
modelName: string;
|
|
2434
2640
|
apiKey: string;
|
|
2435
2641
|
baseUrl?: string | undefined;
|
|
2436
2642
|
completeChatUrl?: string | undefined;
|
|
@@ -2457,48 +2663,51 @@ declare const Gemini1_5ProSchema: {
|
|
|
2457
2663
|
description: string;
|
|
2458
2664
|
max: number;
|
|
2459
2665
|
} | {
|
|
2460
|
-
type: "
|
|
2666
|
+
type: "object-schema";
|
|
2461
2667
|
param: string;
|
|
2462
2668
|
title: string;
|
|
2463
2669
|
description: string;
|
|
2464
|
-
|
|
2465
|
-
min: number;
|
|
2466
|
-
step: number;
|
|
2467
|
-
default: number;
|
|
2670
|
+
objectSchema?: any;
|
|
2468
2671
|
} | {
|
|
2469
|
-
type: "
|
|
2672
|
+
type: "range";
|
|
2470
2673
|
param: string;
|
|
2471
2674
|
title: string;
|
|
2472
2675
|
description: string;
|
|
2473
|
-
|
|
2474
|
-
|
|
2676
|
+
max: number;
|
|
2677
|
+
default: number;
|
|
2678
|
+
min: number;
|
|
2679
|
+
step: number;
|
|
2475
2680
|
} | {
|
|
2476
|
-
type: "
|
|
2681
|
+
type: "select-boolean";
|
|
2477
2682
|
param: string;
|
|
2478
2683
|
title: string;
|
|
2479
2684
|
description: string;
|
|
2480
|
-
|
|
2685
|
+
default: boolean | null;
|
|
2481
2686
|
} | {
|
|
2482
|
-
type: "select-
|
|
2687
|
+
type: "select-string";
|
|
2483
2688
|
param: string;
|
|
2484
2689
|
title: string;
|
|
2485
2690
|
description: string;
|
|
2486
|
-
default:
|
|
2691
|
+
default: string | null;
|
|
2692
|
+
choices: string[];
|
|
2487
2693
|
}>;
|
|
2488
2694
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2489
2695
|
};
|
|
2490
2696
|
};
|
|
2491
2697
|
declare const Gemini1_5ProOptions: z.ZodObject<{
|
|
2698
|
+
modelName: z.ZodString;
|
|
2492
2699
|
apiKey: z.ZodString;
|
|
2493
2700
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2494
2701
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2495
2702
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2496
2703
|
}, "strip", z.ZodTypeAny, {
|
|
2704
|
+
modelName: string;
|
|
2497
2705
|
apiKey: string;
|
|
2498
2706
|
baseUrl?: string | undefined;
|
|
2499
2707
|
completeChatUrl?: string | undefined;
|
|
2500
2708
|
streamChatUrl?: string | undefined;
|
|
2501
2709
|
}, {
|
|
2710
|
+
modelName: string;
|
|
2502
2711
|
apiKey: string;
|
|
2503
2712
|
baseUrl?: string | undefined;
|
|
2504
2713
|
completeChatUrl?: string | undefined;
|
|
@@ -2525,48 +2734,51 @@ declare const Gemini1_5Pro001Schema: {
|
|
|
2525
2734
|
description: string;
|
|
2526
2735
|
max: number;
|
|
2527
2736
|
} | {
|
|
2528
|
-
type: "
|
|
2737
|
+
type: "object-schema";
|
|
2529
2738
|
param: string;
|
|
2530
2739
|
title: string;
|
|
2531
2740
|
description: string;
|
|
2532
|
-
|
|
2533
|
-
min: number;
|
|
2534
|
-
step: number;
|
|
2535
|
-
default: number;
|
|
2741
|
+
objectSchema?: any;
|
|
2536
2742
|
} | {
|
|
2537
|
-
type: "
|
|
2743
|
+
type: "range";
|
|
2538
2744
|
param: string;
|
|
2539
2745
|
title: string;
|
|
2540
2746
|
description: string;
|
|
2541
|
-
|
|
2542
|
-
|
|
2747
|
+
max: number;
|
|
2748
|
+
default: number;
|
|
2749
|
+
min: number;
|
|
2750
|
+
step: number;
|
|
2543
2751
|
} | {
|
|
2544
|
-
type: "
|
|
2752
|
+
type: "select-boolean";
|
|
2545
2753
|
param: string;
|
|
2546
2754
|
title: string;
|
|
2547
2755
|
description: string;
|
|
2548
|
-
|
|
2756
|
+
default: boolean | null;
|
|
2549
2757
|
} | {
|
|
2550
|
-
type: "select-
|
|
2758
|
+
type: "select-string";
|
|
2551
2759
|
param: string;
|
|
2552
2760
|
title: string;
|
|
2553
2761
|
description: string;
|
|
2554
|
-
default:
|
|
2762
|
+
default: string | null;
|
|
2763
|
+
choices: string[];
|
|
2555
2764
|
}>;
|
|
2556
2765
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2557
2766
|
};
|
|
2558
2767
|
};
|
|
2559
2768
|
declare const Gemini1_5Pro001Options: z.ZodObject<{
|
|
2769
|
+
modelName: z.ZodString;
|
|
2560
2770
|
apiKey: z.ZodString;
|
|
2561
2771
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2562
2772
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2563
2773
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2564
2774
|
}, "strip", z.ZodTypeAny, {
|
|
2775
|
+
modelName: string;
|
|
2565
2776
|
apiKey: string;
|
|
2566
2777
|
baseUrl?: string | undefined;
|
|
2567
2778
|
completeChatUrl?: string | undefined;
|
|
2568
2779
|
streamChatUrl?: string | undefined;
|
|
2569
2780
|
}, {
|
|
2781
|
+
modelName: string;
|
|
2570
2782
|
apiKey: string;
|
|
2571
2783
|
baseUrl?: string | undefined;
|
|
2572
2784
|
completeChatUrl?: string | undefined;
|
|
@@ -2593,48 +2805,51 @@ declare const Gemini1_5Pro002Schema: {
|
|
|
2593
2805
|
description: string;
|
|
2594
2806
|
max: number;
|
|
2595
2807
|
} | {
|
|
2596
|
-
type: "
|
|
2808
|
+
type: "object-schema";
|
|
2597
2809
|
param: string;
|
|
2598
2810
|
title: string;
|
|
2599
2811
|
description: string;
|
|
2600
|
-
|
|
2601
|
-
min: number;
|
|
2602
|
-
step: number;
|
|
2603
|
-
default: number;
|
|
2812
|
+
objectSchema?: any;
|
|
2604
2813
|
} | {
|
|
2605
|
-
type: "
|
|
2814
|
+
type: "range";
|
|
2606
2815
|
param: string;
|
|
2607
2816
|
title: string;
|
|
2608
2817
|
description: string;
|
|
2609
|
-
|
|
2610
|
-
|
|
2818
|
+
max: number;
|
|
2819
|
+
default: number;
|
|
2820
|
+
min: number;
|
|
2821
|
+
step: number;
|
|
2611
2822
|
} | {
|
|
2612
|
-
type: "
|
|
2823
|
+
type: "select-boolean";
|
|
2613
2824
|
param: string;
|
|
2614
2825
|
title: string;
|
|
2615
2826
|
description: string;
|
|
2616
|
-
|
|
2827
|
+
default: boolean | null;
|
|
2617
2828
|
} | {
|
|
2618
|
-
type: "select-
|
|
2829
|
+
type: "select-string";
|
|
2619
2830
|
param: string;
|
|
2620
2831
|
title: string;
|
|
2621
2832
|
description: string;
|
|
2622
|
-
default:
|
|
2833
|
+
default: string | null;
|
|
2834
|
+
choices: string[];
|
|
2623
2835
|
}>;
|
|
2624
2836
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2625
2837
|
};
|
|
2626
2838
|
};
|
|
2627
2839
|
declare const Gemini1_5Pro002Options: z.ZodObject<{
|
|
2840
|
+
modelName: z.ZodString;
|
|
2628
2841
|
apiKey: z.ZodString;
|
|
2629
2842
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2630
2843
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2631
2844
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2632
2845
|
}, "strip", z.ZodTypeAny, {
|
|
2846
|
+
modelName: string;
|
|
2633
2847
|
apiKey: string;
|
|
2634
2848
|
baseUrl?: string | undefined;
|
|
2635
2849
|
completeChatUrl?: string | undefined;
|
|
2636
2850
|
streamChatUrl?: string | undefined;
|
|
2637
2851
|
}, {
|
|
2852
|
+
modelName: string;
|
|
2638
2853
|
apiKey: string;
|
|
2639
2854
|
baseUrl?: string | undefined;
|
|
2640
2855
|
completeChatUrl?: string | undefined;
|
|
@@ -2661,48 +2876,51 @@ declare const Gemini1_5ProLatestSchema: {
|
|
|
2661
2876
|
description: string;
|
|
2662
2877
|
max: number;
|
|
2663
2878
|
} | {
|
|
2664
|
-
type: "
|
|
2879
|
+
type: "object-schema";
|
|
2665
2880
|
param: string;
|
|
2666
2881
|
title: string;
|
|
2667
2882
|
description: string;
|
|
2668
|
-
|
|
2669
|
-
min: number;
|
|
2670
|
-
step: number;
|
|
2671
|
-
default: number;
|
|
2883
|
+
objectSchema?: any;
|
|
2672
2884
|
} | {
|
|
2673
|
-
type: "
|
|
2885
|
+
type: "range";
|
|
2674
2886
|
param: string;
|
|
2675
2887
|
title: string;
|
|
2676
2888
|
description: string;
|
|
2677
|
-
|
|
2678
|
-
|
|
2889
|
+
max: number;
|
|
2890
|
+
default: number;
|
|
2891
|
+
min: number;
|
|
2892
|
+
step: number;
|
|
2679
2893
|
} | {
|
|
2680
|
-
type: "
|
|
2894
|
+
type: "select-boolean";
|
|
2681
2895
|
param: string;
|
|
2682
2896
|
title: string;
|
|
2683
2897
|
description: string;
|
|
2684
|
-
|
|
2898
|
+
default: boolean | null;
|
|
2685
2899
|
} | {
|
|
2686
|
-
type: "select-
|
|
2900
|
+
type: "select-string";
|
|
2687
2901
|
param: string;
|
|
2688
2902
|
title: string;
|
|
2689
2903
|
description: string;
|
|
2690
|
-
default:
|
|
2904
|
+
default: string | null;
|
|
2905
|
+
choices: string[];
|
|
2691
2906
|
}>;
|
|
2692
2907
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2693
2908
|
};
|
|
2694
2909
|
};
|
|
2695
2910
|
declare const Gemini1_5ProLatestOptions: z.ZodObject<{
|
|
2911
|
+
modelName: z.ZodString;
|
|
2696
2912
|
apiKey: z.ZodString;
|
|
2697
2913
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2698
2914
|
completeChatUrl: z.ZodOptional<z.ZodString>;
|
|
2699
2915
|
streamChatUrl: z.ZodOptional<z.ZodString>;
|
|
2700
2916
|
}, "strip", z.ZodTypeAny, {
|
|
2917
|
+
modelName: string;
|
|
2701
2918
|
apiKey: string;
|
|
2702
2919
|
baseUrl?: string | undefined;
|
|
2703
2920
|
completeChatUrl?: string | undefined;
|
|
2704
2921
|
streamChatUrl?: string | undefined;
|
|
2705
2922
|
}, {
|
|
2923
|
+
modelName: string;
|
|
2706
2924
|
apiKey: string;
|
|
2707
2925
|
baseUrl?: string | undefined;
|
|
2708
2926
|
completeChatUrl?: string | undefined;
|
|
@@ -2833,14 +3051,17 @@ declare const GoogleEmbeddingRequest: z.ZodObject<{
|
|
|
2833
3051
|
type GoogleEmbeddingRequestType = z.infer<typeof GoogleEmbeddingRequest>;
|
|
2834
3052
|
|
|
2835
3053
|
declare const BaseEmbeddingModelOptions: z.ZodObject<{
|
|
3054
|
+
modelName: z.ZodString;
|
|
2836
3055
|
apiKey: z.ZodString;
|
|
2837
3056
|
baseUrl: z.ZodString;
|
|
2838
3057
|
getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
|
|
2839
3058
|
}, "strip", z.ZodTypeAny, {
|
|
3059
|
+
modelName: string;
|
|
2840
3060
|
apiKey: string;
|
|
2841
3061
|
baseUrl: string;
|
|
2842
3062
|
getEmbeddingsUrl?: string | undefined;
|
|
2843
3063
|
}, {
|
|
3064
|
+
modelName: string;
|
|
2844
3065
|
apiKey: string;
|
|
2845
3066
|
baseUrl: string;
|
|
2846
3067
|
getEmbeddingsUrl?: string | undefined;
|
|
@@ -2849,6 +3070,7 @@ type BaseEmbeddingModelOptionsType = z.infer<typeof BaseEmbeddingModelOptions>;
|
|
|
2849
3070
|
declare class BaseEmbeddingModel implements EmbeddingModelV1<EmbeddingModelSchemaType> {
|
|
2850
3071
|
readonly version: "v1";
|
|
2851
3072
|
modelSchema: EmbeddingModelSchemaType;
|
|
3073
|
+
readonly modelName: string;
|
|
2852
3074
|
private readonly apiKey;
|
|
2853
3075
|
private readonly baseUrl;
|
|
2854
3076
|
private readonly getEmbeddingsUrl;
|
|
@@ -2889,46 +3111,49 @@ declare const Text_Embedding_001Schema: {
|
|
|
2889
3111
|
description: string;
|
|
2890
3112
|
max: number;
|
|
2891
3113
|
} | {
|
|
2892
|
-
type: "
|
|
3114
|
+
type: "object-schema";
|
|
2893
3115
|
param: string;
|
|
2894
3116
|
title: string;
|
|
2895
3117
|
description: string;
|
|
2896
|
-
|
|
2897
|
-
min: number;
|
|
2898
|
-
step: number;
|
|
2899
|
-
default: number;
|
|
3118
|
+
objectSchema?: any;
|
|
2900
3119
|
} | {
|
|
2901
|
-
type: "
|
|
3120
|
+
type: "range";
|
|
2902
3121
|
param: string;
|
|
2903
3122
|
title: string;
|
|
2904
3123
|
description: string;
|
|
2905
|
-
|
|
2906
|
-
|
|
3124
|
+
max: number;
|
|
3125
|
+
default: number;
|
|
3126
|
+
min: number;
|
|
3127
|
+
step: number;
|
|
2907
3128
|
} | {
|
|
2908
|
-
type: "
|
|
3129
|
+
type: "select-boolean";
|
|
2909
3130
|
param: string;
|
|
2910
3131
|
title: string;
|
|
2911
3132
|
description: string;
|
|
2912
|
-
|
|
3133
|
+
default: boolean | null;
|
|
2913
3134
|
} | {
|
|
2914
|
-
type: "select-
|
|
3135
|
+
type: "select-string";
|
|
2915
3136
|
param: string;
|
|
2916
3137
|
title: string;
|
|
2917
3138
|
description: string;
|
|
2918
|
-
default:
|
|
3139
|
+
default: string | null;
|
|
3140
|
+
choices: string[];
|
|
2919
3141
|
}>;
|
|
2920
3142
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2921
3143
|
};
|
|
2922
3144
|
};
|
|
2923
3145
|
declare const Text_Embedding_001Options: z.ZodObject<{
|
|
3146
|
+
modelName: z.ZodString;
|
|
2924
3147
|
apiKey: z.ZodString;
|
|
2925
3148
|
baseUrl: z.ZodString;
|
|
2926
3149
|
getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
|
|
2927
3150
|
}, "strip", z.ZodTypeAny, {
|
|
3151
|
+
modelName: string;
|
|
2928
3152
|
apiKey: string;
|
|
2929
3153
|
baseUrl: string;
|
|
2930
3154
|
getEmbeddingsUrl?: string | undefined;
|
|
2931
3155
|
}, {
|
|
3156
|
+
modelName: string;
|
|
2932
3157
|
apiKey: string;
|
|
2933
3158
|
baseUrl: string;
|
|
2934
3159
|
getEmbeddingsUrl?: string | undefined;
|
|
@@ -2953,46 +3178,49 @@ declare const Text_Embedding_004Schema: {
|
|
|
2953
3178
|
description: string;
|
|
2954
3179
|
max: number;
|
|
2955
3180
|
} | {
|
|
2956
|
-
type: "
|
|
3181
|
+
type: "object-schema";
|
|
2957
3182
|
param: string;
|
|
2958
3183
|
title: string;
|
|
2959
3184
|
description: string;
|
|
2960
|
-
|
|
2961
|
-
min: number;
|
|
2962
|
-
step: number;
|
|
2963
|
-
default: number;
|
|
3185
|
+
objectSchema?: any;
|
|
2964
3186
|
} | {
|
|
2965
|
-
type: "
|
|
3187
|
+
type: "range";
|
|
2966
3188
|
param: string;
|
|
2967
3189
|
title: string;
|
|
2968
3190
|
description: string;
|
|
2969
|
-
|
|
2970
|
-
|
|
3191
|
+
max: number;
|
|
3192
|
+
default: number;
|
|
3193
|
+
min: number;
|
|
3194
|
+
step: number;
|
|
2971
3195
|
} | {
|
|
2972
|
-
type: "
|
|
3196
|
+
type: "select-boolean";
|
|
2973
3197
|
param: string;
|
|
2974
3198
|
title: string;
|
|
2975
3199
|
description: string;
|
|
2976
|
-
|
|
3200
|
+
default: boolean | null;
|
|
2977
3201
|
} | {
|
|
2978
|
-
type: "select-
|
|
3202
|
+
type: "select-string";
|
|
2979
3203
|
param: string;
|
|
2980
3204
|
title: string;
|
|
2981
3205
|
description: string;
|
|
2982
|
-
default:
|
|
3206
|
+
default: string | null;
|
|
3207
|
+
choices: string[];
|
|
2983
3208
|
}>;
|
|
2984
3209
|
schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
|
|
2985
3210
|
};
|
|
2986
3211
|
};
|
|
2987
3212
|
declare const Text_Embedding_004Options: z.ZodObject<{
|
|
3213
|
+
modelName: z.ZodString;
|
|
2988
3214
|
apiKey: z.ZodString;
|
|
2989
3215
|
baseUrl: z.ZodString;
|
|
2990
3216
|
getEmbeddingsUrl: z.ZodOptional<z.ZodString>;
|
|
2991
3217
|
}, "strip", z.ZodTypeAny, {
|
|
3218
|
+
modelName: string;
|
|
2992
3219
|
apiKey: string;
|
|
2993
3220
|
baseUrl: string;
|
|
2994
3221
|
getEmbeddingsUrl?: string | undefined;
|
|
2995
3222
|
}, {
|
|
3223
|
+
modelName: string;
|
|
2996
3224
|
apiKey: string;
|
|
2997
3225
|
baseUrl: string;
|
|
2998
3226
|
getEmbeddingsUrl?: string | undefined;
|
|
@@ -3010,13 +3238,11 @@ declare class Google<O extends Record<string, any> = Record<string, any>> implem
|
|
|
3010
3238
|
private readonly chatModelFactories;
|
|
3011
3239
|
private readonly embeddingModelFactories;
|
|
3012
3240
|
chatModelLiterals(): string[];
|
|
3013
|
-
chatModel(name: string, options: O): ChatModelV1;
|
|
3014
|
-
chatModelSchema(name: string): ChatModelSchemaType;
|
|
3015
3241
|
chatModelSchemas(): Record<string, ChatModelSchemaType>;
|
|
3242
|
+
chatModel(options: O): ChatModelV1;
|
|
3016
3243
|
embeddingModelLiterals(): string[];
|
|
3017
|
-
embeddingModel(name: string, options: O): EmbeddingModelV1;
|
|
3018
|
-
embeddingModelSchema(name: string): EmbeddingModelSchemaType;
|
|
3019
3244
|
embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
|
|
3245
|
+
embeddingModel(options: O): EmbeddingModelV1;
|
|
3020
3246
|
}
|
|
3021
3247
|
|
|
3022
|
-
export { BaseChatModel, BaseChatModelGemini1, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelC1ConfigDef, ChatModelC1ConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, Gemini1_0Pro, Gemini1_0ProLatest, Gemini1_0ProLatestLiteral, Gemini1_0ProLatestOptions, type Gemini1_0ProLatestOptionsType, Gemini1_0ProLatestSchema, Gemini1_0ProLiteral, Gemini1_0ProOptions, type Gemini1_0ProOptionsType, Gemini1_0ProSchema, Gemini1_0ProVision, Gemini1_0ProVisionLiteral, Gemini1_0ProVisionOptions, type Gemini1_0ProVisionOptionsType, Gemini1_0ProVisionSchema, Gemini1_0Pro_001, Gemini1_0Pro_001Literal, Gemini1_0Pro_001Options, type Gemini1_0Pro_001OptionsType, Gemini1_0Pro_001Schema, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLatest, Gemini1_5FlashLatestLiteral, Gemini1_5FlashLatestOptions, type Gemini1_5FlashLatestOptionsType, Gemini1_5FlashLatestSchema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLatest, Gemini1_5ProLatestLiteral, Gemini1_5ProLatestOptions, type Gemini1_5ProLatestOptionsType, Gemini1_5ProLatestSchema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Google, GoogleChatAssistantRoleLiteral, GoogleChatContent, GoogleChatContentPartFunctionCall, type GoogleChatContentPartFunctionCallType, GoogleChatContentPartFunctionResponse, type GoogleChatContentPartFunctionResponseType, GoogleChatContentPartInlineData, type GoogleChatContentPartInlineDataType, GoogleChatContentPartText, type GoogleChatContentPartTextType, type GoogleChatContentType, GoogleChatGenerationConfig, type GoogleChatGenerationConfigType, GoogleChatModelConfigs, GoogleChatModelModalities, GoogleChatModelModalitiesEnum, GoogleChatModelRoles, GoogleChatModelRolesMap, GoogleChatModelTextModalities, GoogleChatModelTextModalitiesEnum, GoogleChatModelTextToolModalities, GoogleChatModelTextToolModalitiesEnum, GoogleChatModelTextVisionModalities, GoogleChatModelTextVisionModalitiesEnum, GoogleChatRequest, type GoogleChatRequestType, GoogleChatSystemInstruction, type GoogleChatSystemInstructionType, GoogleChatTool, GoogleChatToolConfig, type GoogleChatToolConfigType, GoogleChatToolRoleLiteral, type GoogleChatToolType, GoogleCompleteChatResponse, type GoogleCompleteChatResponseType, GoogleCompleteChatTextResponse, GoogleCompleteChatToolResponse, GoogleEmbeddingModelConfigs, GoogleEmbeddingModelModalities, GoogleEmbeddingModelModalitiesEnum, GoogleEmbeddingRequest, GoogleEmbeddingRequestInput, type GoogleEmbeddingRequestInputType, type GoogleEmbeddingRequestType, GoogleGetEmbeddingsResponse, type GoogleGetEmbeddingsResponseType, GoogleStreamChatResponse, type GoogleStreamChatResponseType, GoogleStreamChatTextResponse, GoogleStreamChatToolResponse, ProviderLiteral, Text_Embedding_001, Text_Embedding_001Literal, Text_Embedding_001Options, type Text_Embedding_001OptionsType, Text_Embedding_001Schema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, dimensions, frequencyPenalty, maxTokens, presencePenalty, safetySettings, seed, stop, temperature, toolChoice, topK, topP };
|
|
3248
|
+
export { BaseChatModel, BaseChatModelGemini1, BaseChatModelOptions, type BaseChatModelOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, ChatModelBaseConfigDef, ChatModelBaseConfigSchema, ChatModelC1ConfigDef, ChatModelC1ConfigSchema, EmbeddingModelBaseConfigDef, EmbeddingModelBaseConfigSchema, Gemini1_0Pro, Gemini1_0ProLatest, Gemini1_0ProLatestLiteral, Gemini1_0ProLatestOptions, type Gemini1_0ProLatestOptionsType, Gemini1_0ProLatestSchema, Gemini1_0ProLiteral, Gemini1_0ProOptions, type Gemini1_0ProOptionsType, Gemini1_0ProSchema, Gemini1_0ProVision, Gemini1_0ProVisionLiteral, Gemini1_0ProVisionOptions, type Gemini1_0ProVisionOptionsType, Gemini1_0ProVisionSchema, Gemini1_0Pro_001, Gemini1_0Pro_001Literal, Gemini1_0Pro_001Options, type Gemini1_0Pro_001OptionsType, Gemini1_0Pro_001Schema, Gemini1_5Flash, Gemini1_5Flash001, Gemini1_5Flash001Literal, Gemini1_5Flash001Options, type Gemini1_5Flash001OptionsType, Gemini1_5Flash001Schema, Gemini1_5Flash002, Gemini1_5Flash002Literal, Gemini1_5Flash002Options, type Gemini1_5Flash002OptionsType, Gemini1_5Flash002Schema, Gemini1_5FlashLatest, Gemini1_5FlashLatestLiteral, Gemini1_5FlashLatestOptions, type Gemini1_5FlashLatestOptionsType, Gemini1_5FlashLatestSchema, Gemini1_5FlashLiteral, Gemini1_5FlashOptions, type Gemini1_5FlashOptionsType, Gemini1_5FlashSchema, Gemini1_5Pro, Gemini1_5Pro001, Gemini1_5Pro001Literal, Gemini1_5Pro001Options, type Gemini1_5Pro001OptionsType, Gemini1_5Pro001Schema, Gemini1_5Pro002, Gemini1_5Pro002Literal, Gemini1_5Pro002Options, type Gemini1_5Pro002OptionsType, Gemini1_5Pro002Schema, Gemini1_5ProLatest, Gemini1_5ProLatestLiteral, Gemini1_5ProLatestOptions, type Gemini1_5ProLatestOptionsType, Gemini1_5ProLatestSchema, Gemini1_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, GeminiPro, GeminiProLiteral, GeminiProOptions, type GeminiProOptionsType, GeminiProSchema, GeminiProVision, GeminiProVisionLiteral, GeminiProVisionOptions, type GeminiProVisionOptionsType, GeminiProVisionSchema, Google, GoogleChatAssistantRoleLiteral, GoogleChatContent, GoogleChatContentPartFunctionCall, type GoogleChatContentPartFunctionCallType, GoogleChatContentPartFunctionResponse, type GoogleChatContentPartFunctionResponseType, GoogleChatContentPartInlineData, type GoogleChatContentPartInlineDataType, GoogleChatContentPartText, type GoogleChatContentPartTextType, type GoogleChatContentType, GoogleChatGenerationConfig, type GoogleChatGenerationConfigType, GoogleChatModelConfigs, GoogleChatModelModalities, GoogleChatModelModalitiesEnum, GoogleChatModelRoles, GoogleChatModelRolesMap, GoogleChatModelTextModalities, GoogleChatModelTextModalitiesEnum, GoogleChatModelTextToolModalities, GoogleChatModelTextToolModalitiesEnum, GoogleChatModelTextVisionModalities, GoogleChatModelTextVisionModalitiesEnum, GoogleChatRequest, type GoogleChatRequestType, GoogleChatSystemInstruction, type GoogleChatSystemInstructionType, GoogleChatTool, GoogleChatToolConfig, type GoogleChatToolConfigType, GoogleChatToolRoleLiteral, type GoogleChatToolType, GoogleCompleteChatResponse, type GoogleCompleteChatResponseType, GoogleCompleteChatTextResponse, GoogleCompleteChatToolResponse, GoogleEmbeddingModelConfigs, GoogleEmbeddingModelModalities, GoogleEmbeddingModelModalitiesEnum, GoogleEmbeddingRequest, GoogleEmbeddingRequestInput, type GoogleEmbeddingRequestInputType, type GoogleEmbeddingRequestType, GoogleGetEmbeddingsResponse, type GoogleGetEmbeddingsResponseType, GoogleStreamChatResponse, type GoogleStreamChatResponseType, GoogleStreamChatTextResponse, GoogleStreamChatToolResponse, ProviderLiteral, Text_Embedding_001, Text_Embedding_001Literal, Text_Embedding_001Options, type Text_Embedding_001OptionsType, Text_Embedding_001Schema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, dimensions, frequencyPenalty, maxTokens, presencePenalty, safetySettings, seed, stop, temperature, toolChoice, topK, topP };
|