@adaline/vertex 0.3.0 → 0.4.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 CHANGED
@@ -1,25 +1,25 @@
1
1
  import { z } from 'zod';
2
- import { ChatModelSchemaType, HeadersType, EmbeddingModelV1, EmbeddingModelSchemaType, UrlType, ParamsType, ProviderV1, ChatModelV1 } from '@adaline/provider';
3
2
  import { BaseChatModel } from '@adaline/google';
3
+ import { ChatModelSchemaType, HeadersType, EmbeddingModelV1, EmbeddingModelSchemaType, UrlType, ParamsType, ProviderV1, ChatModelV1 } from '@adaline/provider';
4
4
  import { EmbeddingRequestsType, ConfigType, EmbeddingResponseType } from '@adaline/types';
5
5
 
6
6
  declare const BaseChatModelVertexOptions: z.ZodObject<{
7
7
  accessToken: z.ZodString;
8
- modelId: z.ZodOptional<z.ZodString>;
8
+ modelName: z.ZodString;
9
9
  baseUrl: z.ZodOptional<z.ZodString>;
10
10
  location: z.ZodOptional<z.ZodString>;
11
11
  projectId: z.ZodOptional<z.ZodString>;
12
12
  publisher: z.ZodOptional<z.ZodString>;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  accessToken: string;
15
- modelId?: string | undefined;
15
+ modelName: string;
16
16
  baseUrl?: string | undefined;
17
17
  location?: string | undefined;
18
18
  projectId?: string | undefined;
19
19
  publisher?: string | undefined;
20
20
  }, {
21
21
  accessToken: string;
22
- modelId?: string | undefined;
22
+ modelName: string;
23
23
  baseUrl?: string | undefined;
24
24
  location?: string | undefined;
25
25
  projectId?: string | undefined;
@@ -29,8 +29,8 @@ type BaseChatModelVertexOptionsType = z.infer<typeof BaseChatModelVertexOptions>
29
29
  declare class BaseChatModelVertex extends BaseChatModel {
30
30
  readonly version: "v1";
31
31
  modelSchema: ChatModelSchemaType;
32
+ modelName: string;
32
33
  private readonly accessToken;
33
- private readonly modelId;
34
34
  private readonly location;
35
35
  private readonly projectId;
36
36
  private readonly publisher;
@@ -54,54 +54,54 @@ declare const Gemini1_0ProSchema: {
54
54
  description: string;
55
55
  max: number;
56
56
  } | {
57
- type: "range";
57
+ type: "object-schema";
58
58
  param: string;
59
59
  title: string;
60
60
  description: string;
61
- max: number;
62
- min: number;
63
- step: number;
64
- default: number;
61
+ objectSchema?: any;
65
62
  } | {
66
- type: "select-string";
63
+ type: "range";
67
64
  param: string;
68
65
  title: string;
69
66
  description: string;
70
- default: string | null;
71
- choices: string[];
67
+ max: number;
68
+ default: number;
69
+ min: number;
70
+ step: number;
72
71
  } | {
73
- type: "object-schema";
72
+ type: "select-boolean";
74
73
  param: string;
75
74
  title: string;
76
75
  description: string;
77
- objectSchema?: any;
76
+ default: boolean | null;
78
77
  } | {
79
- type: "select-boolean";
78
+ type: "select-string";
80
79
  param: string;
81
80
  title: string;
82
81
  description: string;
83
- default: boolean | null;
82
+ default: string | null;
83
+ choices: string[];
84
84
  }>;
85
85
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
86
86
  };
87
87
  };
88
88
  declare const Gemini1_0ProOptions: z.ZodObject<{
89
89
  accessToken: z.ZodString;
90
- modelId: z.ZodOptional<z.ZodString>;
90
+ modelName: z.ZodString;
91
91
  baseUrl: z.ZodOptional<z.ZodString>;
92
92
  location: z.ZodOptional<z.ZodString>;
93
93
  projectId: z.ZodOptional<z.ZodString>;
94
94
  publisher: z.ZodOptional<z.ZodString>;
95
95
  }, "strip", z.ZodTypeAny, {
96
96
  accessToken: string;
97
- modelId?: string | undefined;
97
+ modelName: string;
98
98
  baseUrl?: string | undefined;
99
99
  location?: string | undefined;
100
100
  projectId?: string | undefined;
101
101
  publisher?: string | undefined;
102
102
  }, {
103
103
  accessToken: string;
104
- modelId?: string | undefined;
104
+ modelName: string;
105
105
  baseUrl?: string | undefined;
106
106
  location?: string | undefined;
107
107
  projectId?: string | undefined;
@@ -128,54 +128,54 @@ declare const Gemini1_0Pro001Schema: {
128
128
  description: string;
129
129
  max: number;
130
130
  } | {
131
- type: "range";
131
+ type: "object-schema";
132
132
  param: string;
133
133
  title: string;
134
134
  description: string;
135
- max: number;
136
- min: number;
137
- step: number;
138
- default: number;
135
+ objectSchema?: any;
139
136
  } | {
140
- type: "select-string";
137
+ type: "range";
141
138
  param: string;
142
139
  title: string;
143
140
  description: string;
144
- default: string | null;
145
- choices: string[];
141
+ max: number;
142
+ default: number;
143
+ min: number;
144
+ step: number;
146
145
  } | {
147
- type: "object-schema";
146
+ type: "select-boolean";
148
147
  param: string;
149
148
  title: string;
150
149
  description: string;
151
- objectSchema?: any;
150
+ default: boolean | null;
152
151
  } | {
153
- type: "select-boolean";
152
+ type: "select-string";
154
153
  param: string;
155
154
  title: string;
156
155
  description: string;
157
- default: boolean | null;
156
+ default: string | null;
157
+ choices: string[];
158
158
  }>;
159
159
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
160
160
  };
161
161
  };
162
162
  declare const Gemini1_0Pro001Options: z.ZodObject<{
163
163
  accessToken: z.ZodString;
164
- modelId: z.ZodOptional<z.ZodString>;
164
+ modelName: z.ZodString;
165
165
  baseUrl: z.ZodOptional<z.ZodString>;
166
166
  location: z.ZodOptional<z.ZodString>;
167
167
  projectId: z.ZodOptional<z.ZodString>;
168
168
  publisher: z.ZodOptional<z.ZodString>;
169
169
  }, "strip", z.ZodTypeAny, {
170
170
  accessToken: string;
171
- modelId?: string | undefined;
171
+ modelName: string;
172
172
  baseUrl?: string | undefined;
173
173
  location?: string | undefined;
174
174
  projectId?: string | undefined;
175
175
  publisher?: string | undefined;
176
176
  }, {
177
177
  accessToken: string;
178
- modelId?: string | undefined;
178
+ modelName: string;
179
179
  baseUrl?: string | undefined;
180
180
  location?: string | undefined;
181
181
  projectId?: string | undefined;
@@ -202,54 +202,54 @@ declare const Gemini1_0ProVisionSchema: {
202
202
  description: string;
203
203
  max: number;
204
204
  } | {
205
- type: "range";
205
+ type: "object-schema";
206
206
  param: string;
207
207
  title: string;
208
208
  description: string;
209
- max: number;
210
- min: number;
211
- step: number;
212
- default: number;
209
+ objectSchema?: any;
213
210
  } | {
214
- type: "select-string";
211
+ type: "range";
215
212
  param: string;
216
213
  title: string;
217
214
  description: string;
218
- default: string | null;
219
- choices: string[];
215
+ max: number;
216
+ default: number;
217
+ min: number;
218
+ step: number;
220
219
  } | {
221
- type: "object-schema";
220
+ type: "select-boolean";
222
221
  param: string;
223
222
  title: string;
224
223
  description: string;
225
- objectSchema?: any;
224
+ default: boolean | null;
226
225
  } | {
227
- type: "select-boolean";
226
+ type: "select-string";
228
227
  param: string;
229
228
  title: string;
230
229
  description: string;
231
- default: boolean | null;
230
+ default: string | null;
231
+ choices: string[];
232
232
  }>;
233
233
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
234
234
  };
235
235
  };
236
236
  declare const Gemini1_0ProVisionOptions: z.ZodObject<{
237
237
  accessToken: z.ZodString;
238
- modelId: z.ZodOptional<z.ZodString>;
238
+ modelName: z.ZodString;
239
239
  baseUrl: z.ZodOptional<z.ZodString>;
240
240
  location: z.ZodOptional<z.ZodString>;
241
241
  projectId: z.ZodOptional<z.ZodString>;
242
242
  publisher: z.ZodOptional<z.ZodString>;
243
243
  }, "strip", z.ZodTypeAny, {
244
244
  accessToken: string;
245
- modelId?: string | undefined;
245
+ modelName: string;
246
246
  baseUrl?: string | undefined;
247
247
  location?: string | undefined;
248
248
  projectId?: string | undefined;
249
249
  publisher?: string | undefined;
250
250
  }, {
251
251
  accessToken: string;
252
- modelId?: string | undefined;
252
+ modelName: string;
253
253
  baseUrl?: string | undefined;
254
254
  location?: string | undefined;
255
255
  projectId?: string | undefined;
@@ -276,54 +276,54 @@ declare const Gemini1_5Flash001Schema: {
276
276
  description: string;
277
277
  max: number;
278
278
  } | {
279
- type: "range";
279
+ type: "object-schema";
280
280
  param: string;
281
281
  title: string;
282
282
  description: string;
283
- max: number;
284
- min: number;
285
- step: number;
286
- default: number;
283
+ objectSchema?: any;
287
284
  } | {
288
- type: "select-string";
285
+ type: "range";
289
286
  param: string;
290
287
  title: string;
291
288
  description: string;
292
- default: string | null;
293
- choices: string[];
289
+ max: number;
290
+ default: number;
291
+ min: number;
292
+ step: number;
294
293
  } | {
295
- type: "object-schema";
294
+ type: "select-boolean";
296
295
  param: string;
297
296
  title: string;
298
297
  description: string;
299
- objectSchema?: any;
298
+ default: boolean | null;
300
299
  } | {
301
- type: "select-boolean";
300
+ type: "select-string";
302
301
  param: string;
303
302
  title: string;
304
303
  description: string;
305
- default: boolean | null;
304
+ default: string | null;
305
+ choices: string[];
306
306
  }>;
307
307
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
308
308
  };
309
309
  };
310
310
  declare const Gemini1_5Flash001Options: z.ZodObject<{
311
311
  accessToken: z.ZodString;
312
- modelId: z.ZodOptional<z.ZodString>;
312
+ modelName: z.ZodString;
313
313
  baseUrl: z.ZodOptional<z.ZodString>;
314
314
  location: z.ZodOptional<z.ZodString>;
315
315
  projectId: z.ZodOptional<z.ZodString>;
316
316
  publisher: z.ZodOptional<z.ZodString>;
317
317
  }, "strip", z.ZodTypeAny, {
318
318
  accessToken: string;
319
- modelId?: string | undefined;
319
+ modelName: string;
320
320
  baseUrl?: string | undefined;
321
321
  location?: string | undefined;
322
322
  projectId?: string | undefined;
323
323
  publisher?: string | undefined;
324
324
  }, {
325
325
  accessToken: string;
326
- modelId?: string | undefined;
326
+ modelName: string;
327
327
  baseUrl?: string | undefined;
328
328
  location?: string | undefined;
329
329
  projectId?: string | undefined;
@@ -350,54 +350,54 @@ declare const Gemini1_5Flash002Schema: {
350
350
  description: string;
351
351
  max: number;
352
352
  } | {
353
- type: "range";
353
+ type: "object-schema";
354
354
  param: string;
355
355
  title: string;
356
356
  description: string;
357
- max: number;
358
- min: number;
359
- step: number;
360
- default: number;
357
+ objectSchema?: any;
361
358
  } | {
362
- type: "select-string";
359
+ type: "range";
363
360
  param: string;
364
361
  title: string;
365
362
  description: string;
366
- default: string | null;
367
- choices: string[];
363
+ max: number;
364
+ default: number;
365
+ min: number;
366
+ step: number;
368
367
  } | {
369
- type: "object-schema";
368
+ type: "select-boolean";
370
369
  param: string;
371
370
  title: string;
372
371
  description: string;
373
- objectSchema?: any;
372
+ default: boolean | null;
374
373
  } | {
375
- type: "select-boolean";
374
+ type: "select-string";
376
375
  param: string;
377
376
  title: string;
378
377
  description: string;
379
- default: boolean | null;
378
+ default: string | null;
379
+ choices: string[];
380
380
  }>;
381
381
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
382
382
  };
383
383
  };
384
384
  declare const Gemini1_5Flash002Options: z.ZodObject<{
385
385
  accessToken: z.ZodString;
386
- modelId: z.ZodOptional<z.ZodString>;
386
+ modelName: z.ZodString;
387
387
  baseUrl: z.ZodOptional<z.ZodString>;
388
388
  location: z.ZodOptional<z.ZodString>;
389
389
  projectId: z.ZodOptional<z.ZodString>;
390
390
  publisher: z.ZodOptional<z.ZodString>;
391
391
  }, "strip", z.ZodTypeAny, {
392
392
  accessToken: string;
393
- modelId?: string | undefined;
393
+ modelName: string;
394
394
  baseUrl?: string | undefined;
395
395
  location?: string | undefined;
396
396
  projectId?: string | undefined;
397
397
  publisher?: string | undefined;
398
398
  }, {
399
399
  accessToken: string;
400
- modelId?: string | undefined;
400
+ modelName: string;
401
401
  baseUrl?: string | undefined;
402
402
  location?: string | undefined;
403
403
  projectId?: string | undefined;
@@ -424,54 +424,54 @@ declare const Gemini1_5FlashSchema: {
424
424
  description: string;
425
425
  max: number;
426
426
  } | {
427
- type: "range";
427
+ type: "object-schema";
428
428
  param: string;
429
429
  title: string;
430
430
  description: string;
431
- max: number;
432
- min: number;
433
- step: number;
434
- default: number;
431
+ objectSchema?: any;
435
432
  } | {
436
- type: "select-string";
433
+ type: "range";
437
434
  param: string;
438
435
  title: string;
439
436
  description: string;
440
- default: string | null;
441
- choices: string[];
437
+ max: number;
438
+ default: number;
439
+ min: number;
440
+ step: number;
442
441
  } | {
443
- type: "object-schema";
442
+ type: "select-boolean";
444
443
  param: string;
445
444
  title: string;
446
445
  description: string;
447
- objectSchema?: any;
446
+ default: boolean | null;
448
447
  } | {
449
- type: "select-boolean";
448
+ type: "select-string";
450
449
  param: string;
451
450
  title: string;
452
451
  description: string;
453
- default: boolean | null;
452
+ default: string | null;
453
+ choices: string[];
454
454
  }>;
455
455
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
456
456
  };
457
457
  };
458
458
  declare const Gemini1_5FlashOptions: z.ZodObject<{
459
459
  accessToken: z.ZodString;
460
- modelId: z.ZodOptional<z.ZodString>;
460
+ modelName: z.ZodString;
461
461
  baseUrl: z.ZodOptional<z.ZodString>;
462
462
  location: z.ZodOptional<z.ZodString>;
463
463
  projectId: z.ZodOptional<z.ZodString>;
464
464
  publisher: z.ZodOptional<z.ZodString>;
465
465
  }, "strip", z.ZodTypeAny, {
466
466
  accessToken: string;
467
- modelId?: string | undefined;
467
+ modelName: string;
468
468
  baseUrl?: string | undefined;
469
469
  location?: string | undefined;
470
470
  projectId?: string | undefined;
471
471
  publisher?: string | undefined;
472
472
  }, {
473
473
  accessToken: string;
474
- modelId?: string | undefined;
474
+ modelName: string;
475
475
  baseUrl?: string | undefined;
476
476
  location?: string | undefined;
477
477
  projectId?: string | undefined;
@@ -498,54 +498,54 @@ declare const Gemini1_5Pro001Schema: {
498
498
  description: string;
499
499
  max: number;
500
500
  } | {
501
- type: "range";
501
+ type: "object-schema";
502
502
  param: string;
503
503
  title: string;
504
504
  description: string;
505
- max: number;
506
- min: number;
507
- step: number;
508
- default: number;
505
+ objectSchema?: any;
509
506
  } | {
510
- type: "select-string";
507
+ type: "range";
511
508
  param: string;
512
509
  title: string;
513
510
  description: string;
514
- default: string | null;
515
- choices: string[];
511
+ max: number;
512
+ default: number;
513
+ min: number;
514
+ step: number;
516
515
  } | {
517
- type: "object-schema";
516
+ type: "select-boolean";
518
517
  param: string;
519
518
  title: string;
520
519
  description: string;
521
- objectSchema?: any;
520
+ default: boolean | null;
522
521
  } | {
523
- type: "select-boolean";
522
+ type: "select-string";
524
523
  param: string;
525
524
  title: string;
526
525
  description: string;
527
- default: boolean | null;
526
+ default: string | null;
527
+ choices: string[];
528
528
  }>;
529
529
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
530
530
  };
531
531
  };
532
532
  declare const Gemini1_5Pro001Options: z.ZodObject<{
533
533
  accessToken: z.ZodString;
534
- modelId: z.ZodOptional<z.ZodString>;
534
+ modelName: z.ZodString;
535
535
  baseUrl: z.ZodOptional<z.ZodString>;
536
536
  location: z.ZodOptional<z.ZodString>;
537
537
  projectId: z.ZodOptional<z.ZodString>;
538
538
  publisher: z.ZodOptional<z.ZodString>;
539
539
  }, "strip", z.ZodTypeAny, {
540
540
  accessToken: string;
541
- modelId?: string | undefined;
541
+ modelName: string;
542
542
  baseUrl?: string | undefined;
543
543
  location?: string | undefined;
544
544
  projectId?: string | undefined;
545
545
  publisher?: string | undefined;
546
546
  }, {
547
547
  accessToken: string;
548
- modelId?: string | undefined;
548
+ modelName: string;
549
549
  baseUrl?: string | undefined;
550
550
  location?: string | undefined;
551
551
  projectId?: string | undefined;
@@ -572,54 +572,54 @@ declare const Gemini1_5Pro002Schema: {
572
572
  description: string;
573
573
  max: number;
574
574
  } | {
575
- type: "range";
575
+ type: "object-schema";
576
576
  param: string;
577
577
  title: string;
578
578
  description: string;
579
- max: number;
580
- min: number;
581
- step: number;
582
- default: number;
579
+ objectSchema?: any;
583
580
  } | {
584
- type: "select-string";
581
+ type: "range";
585
582
  param: string;
586
583
  title: string;
587
584
  description: string;
588
- default: string | null;
589
- choices: string[];
585
+ max: number;
586
+ default: number;
587
+ min: number;
588
+ step: number;
590
589
  } | {
591
- type: "object-schema";
590
+ type: "select-boolean";
592
591
  param: string;
593
592
  title: string;
594
593
  description: string;
595
- objectSchema?: any;
594
+ default: boolean | null;
596
595
  } | {
597
- type: "select-boolean";
596
+ type: "select-string";
598
597
  param: string;
599
598
  title: string;
600
599
  description: string;
601
- default: boolean | null;
600
+ default: string | null;
601
+ choices: string[];
602
602
  }>;
603
603
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
604
604
  };
605
605
  };
606
606
  declare const Gemini1_5Pro002Options: z.ZodObject<{
607
607
  accessToken: z.ZodString;
608
- modelId: z.ZodOptional<z.ZodString>;
608
+ modelName: z.ZodString;
609
609
  baseUrl: z.ZodOptional<z.ZodString>;
610
610
  location: z.ZodOptional<z.ZodString>;
611
611
  projectId: z.ZodOptional<z.ZodString>;
612
612
  publisher: z.ZodOptional<z.ZodString>;
613
613
  }, "strip", z.ZodTypeAny, {
614
614
  accessToken: string;
615
- modelId?: string | undefined;
615
+ modelName: string;
616
616
  baseUrl?: string | undefined;
617
617
  location?: string | undefined;
618
618
  projectId?: string | undefined;
619
619
  publisher?: string | undefined;
620
620
  }, {
621
621
  accessToken: string;
622
- modelId?: string | undefined;
622
+ modelName: string;
623
623
  baseUrl?: string | undefined;
624
624
  location?: string | undefined;
625
625
  projectId?: string | undefined;
@@ -646,54 +646,54 @@ declare const Gemini1_5ProSchema: {
646
646
  description: string;
647
647
  max: number;
648
648
  } | {
649
- type: "range";
649
+ type: "object-schema";
650
650
  param: string;
651
651
  title: string;
652
652
  description: string;
653
- max: number;
654
- min: number;
655
- step: number;
656
- default: number;
653
+ objectSchema?: any;
657
654
  } | {
658
- type: "select-string";
655
+ type: "range";
659
656
  param: string;
660
657
  title: string;
661
658
  description: string;
662
- default: string | null;
663
- choices: string[];
659
+ max: number;
660
+ default: number;
661
+ min: number;
662
+ step: number;
664
663
  } | {
665
- type: "object-schema";
664
+ type: "select-boolean";
666
665
  param: string;
667
666
  title: string;
668
667
  description: string;
669
- objectSchema?: any;
668
+ default: boolean | null;
670
669
  } | {
671
- type: "select-boolean";
670
+ type: "select-string";
672
671
  param: string;
673
672
  title: string;
674
673
  description: string;
675
- default: boolean | null;
674
+ default: string | null;
675
+ choices: string[];
676
676
  }>;
677
677
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
678
678
  };
679
679
  };
680
680
  declare const Gemini1_5ProOptions: z.ZodObject<{
681
681
  accessToken: z.ZodString;
682
- modelId: z.ZodOptional<z.ZodString>;
682
+ modelName: z.ZodString;
683
683
  baseUrl: z.ZodOptional<z.ZodString>;
684
684
  location: z.ZodOptional<z.ZodString>;
685
685
  projectId: z.ZodOptional<z.ZodString>;
686
686
  publisher: z.ZodOptional<z.ZodString>;
687
687
  }, "strip", z.ZodTypeAny, {
688
688
  accessToken: string;
689
- modelId?: string | undefined;
689
+ modelName: string;
690
690
  baseUrl?: string | undefined;
691
691
  location?: string | undefined;
692
692
  projectId?: string | undefined;
693
693
  publisher?: string | undefined;
694
694
  }, {
695
695
  accessToken: string;
696
- modelId?: string | undefined;
696
+ modelName: string;
697
697
  baseUrl?: string | undefined;
698
698
  location?: string | undefined;
699
699
  projectId?: string | undefined;
@@ -706,21 +706,21 @@ declare class Gemini1_5Pro extends BaseChatModelVertex {
706
706
 
707
707
  declare const BaseEmbeddingModelOptions: z.ZodObject<{
708
708
  accessToken: z.ZodString;
709
- modelId: z.ZodOptional<z.ZodString>;
709
+ modelName: z.ZodString;
710
710
  baseUrl: z.ZodOptional<z.ZodString>;
711
711
  location: z.ZodOptional<z.ZodString>;
712
712
  projectId: z.ZodOptional<z.ZodString>;
713
713
  publisher: z.ZodOptional<z.ZodString>;
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  accessToken: string;
716
- modelId?: string | undefined;
716
+ modelName: string;
717
717
  baseUrl?: string | undefined;
718
718
  location?: string | undefined;
719
719
  projectId?: string | undefined;
720
720
  publisher?: string | undefined;
721
721
  }, {
722
722
  accessToken: string;
723
- modelId?: string | undefined;
723
+ modelName: string;
724
724
  baseUrl?: string | undefined;
725
725
  location?: string | undefined;
726
726
  projectId?: string | undefined;
@@ -730,10 +730,10 @@ type BaseEmbeddingModelOptionsType = z.infer<typeof BaseEmbeddingModelOptions>;
730
730
  declare class BaseEmbeddingModel implements EmbeddingModelV1<EmbeddingModelSchemaType> {
731
731
  readonly version: "v1";
732
732
  modelSchema: EmbeddingModelSchemaType;
733
+ modelName: string;
733
734
  private readonly accessToken;
734
735
  private readonly baseUrl;
735
736
  private readonly getEmbeddingsUrl;
736
- private readonly modelId;
737
737
  private readonly location;
738
738
  private readonly projectId;
739
739
  private readonly publisher;
@@ -774,54 +774,54 @@ declare const Text_Embedding_004Schema: {
774
774
  description: string;
775
775
  max: number;
776
776
  } | {
777
- type: "range";
777
+ type: "object-schema";
778
778
  param: string;
779
779
  title: string;
780
780
  description: string;
781
- max: number;
782
- min: number;
783
- step: number;
784
- default: number;
781
+ objectSchema?: any;
785
782
  } | {
786
- type: "select-string";
783
+ type: "range";
787
784
  param: string;
788
785
  title: string;
789
786
  description: string;
790
- default: string | null;
791
- choices: string[];
787
+ max: number;
788
+ default: number;
789
+ min: number;
790
+ step: number;
792
791
  } | {
793
- type: "object-schema";
792
+ type: "select-boolean";
794
793
  param: string;
795
794
  title: string;
796
795
  description: string;
797
- objectSchema?: any;
796
+ default: boolean | null;
798
797
  } | {
799
- type: "select-boolean";
798
+ type: "select-string";
800
799
  param: string;
801
800
  title: string;
802
801
  description: string;
803
- default: boolean | null;
802
+ default: string | null;
803
+ choices: string[];
804
804
  }>;
805
805
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
806
806
  };
807
807
  };
808
808
  declare const Text_Embedding_004Options: z.ZodObject<{
809
809
  accessToken: z.ZodString;
810
- modelId: z.ZodOptional<z.ZodString>;
810
+ modelName: z.ZodString;
811
811
  baseUrl: z.ZodOptional<z.ZodString>;
812
812
  location: z.ZodOptional<z.ZodString>;
813
813
  projectId: z.ZodOptional<z.ZodString>;
814
814
  publisher: z.ZodOptional<z.ZodString>;
815
815
  }, "strip", z.ZodTypeAny, {
816
816
  accessToken: string;
817
- modelId?: string | undefined;
817
+ modelName: string;
818
818
  baseUrl?: string | undefined;
819
819
  location?: string | undefined;
820
820
  projectId?: string | undefined;
821
821
  publisher?: string | undefined;
822
822
  }, {
823
823
  accessToken: string;
824
- modelId?: string | undefined;
824
+ modelName: string;
825
825
  baseUrl?: string | undefined;
826
826
  location?: string | undefined;
827
827
  projectId?: string | undefined;
@@ -847,54 +847,54 @@ declare const Text_Multilingual_Embedding_002Schema: {
847
847
  description: string;
848
848
  max: number;
849
849
  } | {
850
- type: "range";
850
+ type: "object-schema";
851
851
  param: string;
852
852
  title: string;
853
853
  description: string;
854
- max: number;
855
- min: number;
856
- step: number;
857
- default: number;
854
+ objectSchema?: any;
858
855
  } | {
859
- type: "select-string";
856
+ type: "range";
860
857
  param: string;
861
858
  title: string;
862
859
  description: string;
863
- default: string | null;
864
- choices: string[];
860
+ max: number;
861
+ default: number;
862
+ min: number;
863
+ step: number;
865
864
  } | {
866
- type: "object-schema";
865
+ type: "select-boolean";
867
866
  param: string;
868
867
  title: string;
869
868
  description: string;
870
- objectSchema?: any;
869
+ default: boolean | null;
871
870
  } | {
872
- type: "select-boolean";
871
+ type: "select-string";
873
872
  param: string;
874
873
  title: string;
875
874
  description: string;
876
- default: boolean | null;
875
+ default: string | null;
876
+ choices: string[];
877
877
  }>;
878
878
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
879
879
  };
880
880
  };
881
881
  declare const Text_Multilingual_Embedding_002Options: z.ZodObject<{
882
882
  accessToken: z.ZodString;
883
- modelId: z.ZodOptional<z.ZodString>;
883
+ modelName: z.ZodString;
884
884
  baseUrl: z.ZodOptional<z.ZodString>;
885
885
  location: z.ZodOptional<z.ZodString>;
886
886
  projectId: z.ZodOptional<z.ZodString>;
887
887
  publisher: z.ZodOptional<z.ZodString>;
888
888
  }, "strip", z.ZodTypeAny, {
889
889
  accessToken: string;
890
- modelId?: string | undefined;
890
+ modelName: string;
891
891
  baseUrl?: string | undefined;
892
892
  location?: string | undefined;
893
893
  projectId?: string | undefined;
894
894
  publisher?: string | undefined;
895
895
  }, {
896
896
  accessToken: string;
897
- modelId?: string | undefined;
897
+ modelName: string;
898
898
  baseUrl?: string | undefined;
899
899
  location?: string | undefined;
900
900
  projectId?: string | undefined;
@@ -920,54 +920,54 @@ declare const Text_Embedding_Gecko_Multilingual_001Schema: {
920
920
  description: string;
921
921
  max: number;
922
922
  } | {
923
- type: "range";
923
+ type: "object-schema";
924
924
  param: string;
925
925
  title: string;
926
926
  description: string;
927
- max: number;
928
- min: number;
929
- step: number;
930
- default: number;
927
+ objectSchema?: any;
931
928
  } | {
932
- type: "select-string";
929
+ type: "range";
933
930
  param: string;
934
931
  title: string;
935
932
  description: string;
936
- default: string | null;
937
- choices: string[];
933
+ max: number;
934
+ default: number;
935
+ min: number;
936
+ step: number;
938
937
  } | {
939
- type: "object-schema";
938
+ type: "select-boolean";
940
939
  param: string;
941
940
  title: string;
942
941
  description: string;
943
- objectSchema?: any;
942
+ default: boolean | null;
944
943
  } | {
945
- type: "select-boolean";
944
+ type: "select-string";
946
945
  param: string;
947
946
  title: string;
948
947
  description: string;
949
- default: boolean | null;
948
+ default: string | null;
949
+ choices: string[];
950
950
  }>;
951
951
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
952
952
  };
953
953
  };
954
954
  declare const Text_Embedding_Gecko_Multilingual_001Options: z.ZodObject<{
955
955
  accessToken: z.ZodString;
956
- modelId: z.ZodOptional<z.ZodString>;
956
+ modelName: z.ZodString;
957
957
  baseUrl: z.ZodOptional<z.ZodString>;
958
958
  location: z.ZodOptional<z.ZodString>;
959
959
  projectId: z.ZodOptional<z.ZodString>;
960
960
  publisher: z.ZodOptional<z.ZodString>;
961
961
  }, "strip", z.ZodTypeAny, {
962
962
  accessToken: string;
963
- modelId?: string | undefined;
963
+ modelName: string;
964
964
  baseUrl?: string | undefined;
965
965
  location?: string | undefined;
966
966
  projectId?: string | undefined;
967
967
  publisher?: string | undefined;
968
968
  }, {
969
969
  accessToken: string;
970
- modelId?: string | undefined;
970
+ modelName: string;
971
971
  baseUrl?: string | undefined;
972
972
  location?: string | undefined;
973
973
  projectId?: string | undefined;
@@ -993,54 +993,54 @@ declare const Text_Embedding_Gecko_003Schema: {
993
993
  description: string;
994
994
  max: number;
995
995
  } | {
996
- type: "range";
996
+ type: "object-schema";
997
997
  param: string;
998
998
  title: string;
999
999
  description: string;
1000
- max: number;
1001
- min: number;
1002
- step: number;
1003
- default: number;
1000
+ objectSchema?: any;
1004
1001
  } | {
1005
- type: "select-string";
1002
+ type: "range";
1006
1003
  param: string;
1007
1004
  title: string;
1008
1005
  description: string;
1009
- default: string | null;
1010
- choices: string[];
1006
+ max: number;
1007
+ default: number;
1008
+ min: number;
1009
+ step: number;
1011
1010
  } | {
1012
- type: "object-schema";
1011
+ type: "select-boolean";
1013
1012
  param: string;
1014
1013
  title: string;
1015
1014
  description: string;
1016
- objectSchema?: any;
1015
+ default: boolean | null;
1017
1016
  } | {
1018
- type: "select-boolean";
1017
+ type: "select-string";
1019
1018
  param: string;
1020
1019
  title: string;
1021
1020
  description: string;
1022
- default: boolean | null;
1021
+ default: string | null;
1022
+ choices: string[];
1023
1023
  }>;
1024
1024
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
1025
1025
  };
1026
1026
  };
1027
1027
  declare const Text_Embedding_Gecko_003Options: z.ZodObject<{
1028
1028
  accessToken: z.ZodString;
1029
- modelId: z.ZodOptional<z.ZodString>;
1029
+ modelName: z.ZodString;
1030
1030
  baseUrl: z.ZodOptional<z.ZodString>;
1031
1031
  location: z.ZodOptional<z.ZodString>;
1032
1032
  projectId: z.ZodOptional<z.ZodString>;
1033
1033
  publisher: z.ZodOptional<z.ZodString>;
1034
1034
  }, "strip", z.ZodTypeAny, {
1035
1035
  accessToken: string;
1036
- modelId?: string | undefined;
1036
+ modelName: string;
1037
1037
  baseUrl?: string | undefined;
1038
1038
  location?: string | undefined;
1039
1039
  projectId?: string | undefined;
1040
1040
  publisher?: string | undefined;
1041
1041
  }, {
1042
1042
  accessToken: string;
1043
- modelId?: string | undefined;
1043
+ modelName: string;
1044
1044
  baseUrl?: string | undefined;
1045
1045
  location?: string | undefined;
1046
1046
  projectId?: string | undefined;
@@ -1058,13 +1058,11 @@ declare class Vertex<O extends Record<string, any> = Record<string, any>> implem
1058
1058
  private readonly chatModelFactories;
1059
1059
  private readonly embeddingModelFactories;
1060
1060
  chatModelLiterals(): string[];
1061
- chatModel(name: string, options: O): ChatModelV1;
1062
- chatModelSchema(name: string): ChatModelSchemaType;
1063
1061
  chatModelSchemas(): Record<string, ChatModelSchemaType>;
1062
+ chatModel(options: O): ChatModelV1;
1064
1063
  embeddingModelLiterals(): string[];
1065
- embeddingModel(name: string, options: O): EmbeddingModelV1;
1066
- embeddingModelSchema(name: string): EmbeddingModelSchemaType;
1067
1064
  embeddingModelSchemas(): Record<string, EmbeddingModelSchemaType>;
1065
+ embeddingModel(options: O): EmbeddingModelV1;
1068
1066
  }
1069
1067
 
1070
1068
  export { BaseChatModelVertex, BaseChatModelVertexOptions, type BaseChatModelVertexOptionsType, BaseEmbeddingModel, BaseEmbeddingModelOptions, type BaseEmbeddingModelOptionsType, Gemini1_0Pro, Gemini1_0Pro001, Gemini1_0Pro001Literal, Gemini1_0Pro001Options, type Gemini1_0Pro001OptionsType, Gemini1_0Pro001Schema, Gemini1_0ProLiteral, Gemini1_0ProOptions, type Gemini1_0ProOptionsType, Gemini1_0ProSchema, Gemini1_0ProVision, Gemini1_0ProVisionLiteral, Gemini1_0ProVisionOptions, type Gemini1_0ProVisionOptionsType, Gemini1_0ProVisionSchema, 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_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_5ProLiteral, Gemini1_5ProOptions, type Gemini1_5ProOptionsType, Gemini1_5ProSchema, Text_Embedding_004, Text_Embedding_004Literal, Text_Embedding_004Options, type Text_Embedding_004OptionsType, Text_Embedding_004Schema, Text_Embedding_Gecko_003, Text_Embedding_Gecko_003Literal, Text_Embedding_Gecko_003Options, type Text_Embedding_Gecko_003OptionsType, Text_Embedding_Gecko_003Schema, Text_Embedding_Gecko_Multilingual_001, Text_Embedding_Gecko_Multilingual_001Literal, Text_Embedding_Gecko_Multilingual_001Options, type Text_Embedding_Gecko_Multilingual_001OptionsType, Text_Embedding_Gecko_Multilingual_001Schema, Text_Multilingual_Embedding_002, Text_Multilingual_Embedding_002Literal, Text_Multilingual_Embedding_002Options, type Text_Multilingual_Embedding_002OptionsType, Text_Multilingual_Embedding_002Schema, Vertex };