@google/genai 1.43.0 → 1.45.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/genai.d.ts +629 -257
- package/dist/index.cjs +531 -364
- package/dist/index.mjs +531 -365
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +532 -365
- package/dist/node/index.mjs +532 -366
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +629 -257
- package/dist/tokenizer/node.cjs +171 -67
- package/dist/tokenizer/node.d.ts +96 -83
- package/dist/tokenizer/node.mjs +171 -67
- package/dist/tokenizer/node.mjs.map +1 -1
- package/dist/vertex_internal/index.cjs +2980 -0
- package/dist/vertex_internal/index.cjs.map +1 -0
- package/dist/vertex_internal/index.d.ts +7960 -0
- package/dist/vertex_internal/index.js +2951 -0
- package/dist/vertex_internal/index.js.map +1 -0
- package/dist/web/index.mjs +531 -365
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +629 -257
- package/package.json +13 -1
package/dist/tokenizer/node.cjs
CHANGED
|
@@ -85,7 +85,7 @@ var FunctionResponseScheduling;
|
|
|
85
85
|
*/
|
|
86
86
|
FunctionResponseScheduling["INTERRUPT"] = "INTERRUPT";
|
|
87
87
|
})(FunctionResponseScheduling || (FunctionResponseScheduling = {}));
|
|
88
|
-
/**
|
|
88
|
+
/** Data type of the schema field. */
|
|
89
89
|
var Type;
|
|
90
90
|
(function (Type) {
|
|
91
91
|
/**
|
|
@@ -153,22 +153,6 @@ var PhishBlockThreshold;
|
|
|
153
153
|
*/
|
|
154
154
|
PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
|
|
155
155
|
})(PhishBlockThreshold || (PhishBlockThreshold = {}));
|
|
156
|
-
/** The API spec that the external API implements. This enum is not supported in Gemini API. */
|
|
157
|
-
var ApiSpec;
|
|
158
|
-
(function (ApiSpec) {
|
|
159
|
-
/**
|
|
160
|
-
* Unspecified API spec. This value should not be used.
|
|
161
|
-
*/
|
|
162
|
-
ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
|
|
163
|
-
/**
|
|
164
|
-
* Simple search API spec.
|
|
165
|
-
*/
|
|
166
|
-
ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
|
|
167
|
-
/**
|
|
168
|
-
* Elastic search API spec.
|
|
169
|
-
*/
|
|
170
|
-
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
171
|
-
})(ApiSpec || (ApiSpec = {}));
|
|
172
156
|
/** Type of auth scheme. This enum is not supported in Gemini API. */
|
|
173
157
|
var AuthType;
|
|
174
158
|
(function (AuthType) {
|
|
@@ -223,6 +207,22 @@ var HttpElementLocation;
|
|
|
223
207
|
*/
|
|
224
208
|
HttpElementLocation["HTTP_IN_COOKIE"] = "HTTP_IN_COOKIE";
|
|
225
209
|
})(HttpElementLocation || (HttpElementLocation = {}));
|
|
210
|
+
/** The API spec that the external API implements. This enum is not supported in Gemini API. */
|
|
211
|
+
var ApiSpec;
|
|
212
|
+
(function (ApiSpec) {
|
|
213
|
+
/**
|
|
214
|
+
* Unspecified API spec. This value should not be used.
|
|
215
|
+
*/
|
|
216
|
+
ApiSpec["API_SPEC_UNSPECIFIED"] = "API_SPEC_UNSPECIFIED";
|
|
217
|
+
/**
|
|
218
|
+
* Simple search API spec.
|
|
219
|
+
*/
|
|
220
|
+
ApiSpec["SIMPLE_SEARCH"] = "SIMPLE_SEARCH";
|
|
221
|
+
/**
|
|
222
|
+
* Elastic search API spec.
|
|
223
|
+
*/
|
|
224
|
+
ApiSpec["ELASTIC_SEARCH"] = "ELASTIC_SEARCH";
|
|
225
|
+
})(ApiSpec || (ApiSpec = {}));
|
|
226
226
|
/** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
|
|
227
227
|
var Behavior;
|
|
228
228
|
(function (Behavior) {
|
|
@@ -299,27 +299,43 @@ var ThinkingLevel;
|
|
|
299
299
|
*/
|
|
300
300
|
ThinkingLevel["MINIMAL"] = "MINIMAL";
|
|
301
301
|
})(ThinkingLevel || (ThinkingLevel = {}));
|
|
302
|
-
/**
|
|
302
|
+
/** Enum that controls the generation of people. */
|
|
303
|
+
var PersonGeneration;
|
|
304
|
+
(function (PersonGeneration) {
|
|
305
|
+
/**
|
|
306
|
+
* Block generation of images of people.
|
|
307
|
+
*/
|
|
308
|
+
PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
|
|
309
|
+
/**
|
|
310
|
+
* Generate images of adults, but not children.
|
|
311
|
+
*/
|
|
312
|
+
PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
|
|
313
|
+
/**
|
|
314
|
+
* Generate images that include adults and children.
|
|
315
|
+
*/
|
|
316
|
+
PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
|
|
317
|
+
})(PersonGeneration || (PersonGeneration = {}));
|
|
318
|
+
/** The harm category to be blocked. */
|
|
303
319
|
var HarmCategory;
|
|
304
320
|
(function (HarmCategory) {
|
|
305
321
|
/**
|
|
306
|
-
*
|
|
322
|
+
* Default value. This value is unused.
|
|
307
323
|
*/
|
|
308
324
|
HarmCategory["HARM_CATEGORY_UNSPECIFIED"] = "HARM_CATEGORY_UNSPECIFIED";
|
|
309
325
|
/**
|
|
310
|
-
*
|
|
326
|
+
* Abusive, threatening, or content intended to bully, torment, or ridicule.
|
|
311
327
|
*/
|
|
312
328
|
HarmCategory["HARM_CATEGORY_HARASSMENT"] = "HARM_CATEGORY_HARASSMENT";
|
|
313
329
|
/**
|
|
314
|
-
*
|
|
330
|
+
* Content that promotes violence or incites hatred against individuals or groups based on certain attributes.
|
|
315
331
|
*/
|
|
316
332
|
HarmCategory["HARM_CATEGORY_HATE_SPEECH"] = "HARM_CATEGORY_HATE_SPEECH";
|
|
317
333
|
/**
|
|
318
|
-
*
|
|
334
|
+
* Content that contains sexually explicit material.
|
|
319
335
|
*/
|
|
320
336
|
HarmCategory["HARM_CATEGORY_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_SEXUALLY_EXPLICIT";
|
|
321
337
|
/**
|
|
322
|
-
*
|
|
338
|
+
* Content that promotes, facilitates, or enables dangerous activities.
|
|
323
339
|
*/
|
|
324
340
|
HarmCategory["HARM_CATEGORY_DANGEROUS_CONTENT"] = "HARM_CATEGORY_DANGEROUS_CONTENT";
|
|
325
341
|
/**
|
|
@@ -327,27 +343,27 @@ var HarmCategory;
|
|
|
327
343
|
*/
|
|
328
344
|
HarmCategory["HARM_CATEGORY_CIVIC_INTEGRITY"] = "HARM_CATEGORY_CIVIC_INTEGRITY";
|
|
329
345
|
/**
|
|
330
|
-
*
|
|
346
|
+
* Images that contain hate speech. This enum value is not supported in Gemini API.
|
|
331
347
|
*/
|
|
332
348
|
HarmCategory["HARM_CATEGORY_IMAGE_HATE"] = "HARM_CATEGORY_IMAGE_HATE";
|
|
333
349
|
/**
|
|
334
|
-
*
|
|
350
|
+
* Images that contain dangerous content. This enum value is not supported in Gemini API.
|
|
335
351
|
*/
|
|
336
352
|
HarmCategory["HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT"] = "HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT";
|
|
337
353
|
/**
|
|
338
|
-
*
|
|
354
|
+
* Images that contain harassment. This enum value is not supported in Gemini API.
|
|
339
355
|
*/
|
|
340
356
|
HarmCategory["HARM_CATEGORY_IMAGE_HARASSMENT"] = "HARM_CATEGORY_IMAGE_HARASSMENT";
|
|
341
357
|
/**
|
|
342
|
-
*
|
|
358
|
+
* Images that contain sexually explicit content. This enum value is not supported in Gemini API.
|
|
343
359
|
*/
|
|
344
360
|
HarmCategory["HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"] = "HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT";
|
|
345
361
|
/**
|
|
346
|
-
*
|
|
362
|
+
* Prompts designed to bypass safety filters. This enum value is not supported in Gemini API.
|
|
347
363
|
*/
|
|
348
364
|
HarmCategory["HARM_CATEGORY_JAILBREAK"] = "HARM_CATEGORY_JAILBREAK";
|
|
349
365
|
})(HarmCategory || (HarmCategory = {}));
|
|
350
|
-
/**
|
|
366
|
+
/** The method for blocking content. If not specified, the default behavior is to use the probability score. This enum is not supported in Gemini API. */
|
|
351
367
|
var HarmBlockMethod;
|
|
352
368
|
(function (HarmBlockMethod) {
|
|
353
369
|
/**
|
|
@@ -363,31 +379,31 @@ var HarmBlockMethod;
|
|
|
363
379
|
*/
|
|
364
380
|
HarmBlockMethod["PROBABILITY"] = "PROBABILITY";
|
|
365
381
|
})(HarmBlockMethod || (HarmBlockMethod = {}));
|
|
366
|
-
/** The harm
|
|
382
|
+
/** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */
|
|
367
383
|
var HarmBlockThreshold;
|
|
368
384
|
(function (HarmBlockThreshold) {
|
|
369
385
|
/**
|
|
370
|
-
*
|
|
386
|
+
* The harm block threshold is unspecified.
|
|
371
387
|
*/
|
|
372
388
|
HarmBlockThreshold["HARM_BLOCK_THRESHOLD_UNSPECIFIED"] = "HARM_BLOCK_THRESHOLD_UNSPECIFIED";
|
|
373
389
|
/**
|
|
374
|
-
* Block
|
|
390
|
+
* Block content with a low harm probability or higher.
|
|
375
391
|
*/
|
|
376
392
|
HarmBlockThreshold["BLOCK_LOW_AND_ABOVE"] = "BLOCK_LOW_AND_ABOVE";
|
|
377
393
|
/**
|
|
378
|
-
* Block medium
|
|
394
|
+
* Block content with a medium harm probability or higher.
|
|
379
395
|
*/
|
|
380
396
|
HarmBlockThreshold["BLOCK_MEDIUM_AND_ABOVE"] = "BLOCK_MEDIUM_AND_ABOVE";
|
|
381
397
|
/**
|
|
382
|
-
* Block
|
|
398
|
+
* Block content with a high harm probability.
|
|
383
399
|
*/
|
|
384
400
|
HarmBlockThreshold["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
|
|
385
401
|
/**
|
|
386
|
-
*
|
|
402
|
+
* Do not block any content, regardless of its harm probability.
|
|
387
403
|
*/
|
|
388
404
|
HarmBlockThreshold["BLOCK_NONE"] = "BLOCK_NONE";
|
|
389
405
|
/**
|
|
390
|
-
* Turn off the safety filter.
|
|
406
|
+
* Turn off the safety filter entirely.
|
|
391
407
|
*/
|
|
392
408
|
HarmBlockThreshold["OFF"] = "OFF";
|
|
393
409
|
})(HarmBlockThreshold || (HarmBlockThreshold = {}));
|
|
@@ -465,55 +481,55 @@ var FinishReason;
|
|
|
465
481
|
*/
|
|
466
482
|
FinishReason["IMAGE_OTHER"] = "IMAGE_OTHER";
|
|
467
483
|
})(FinishReason || (FinishReason = {}));
|
|
468
|
-
/** Output only.
|
|
484
|
+
/** Output only. The probability of harm for this category. */
|
|
469
485
|
var HarmProbability;
|
|
470
486
|
(function (HarmProbability) {
|
|
471
487
|
/**
|
|
472
|
-
*
|
|
488
|
+
* The harm probability is unspecified.
|
|
473
489
|
*/
|
|
474
490
|
HarmProbability["HARM_PROBABILITY_UNSPECIFIED"] = "HARM_PROBABILITY_UNSPECIFIED";
|
|
475
491
|
/**
|
|
476
|
-
*
|
|
492
|
+
* The harm probability is negligible.
|
|
477
493
|
*/
|
|
478
494
|
HarmProbability["NEGLIGIBLE"] = "NEGLIGIBLE";
|
|
479
495
|
/**
|
|
480
|
-
*
|
|
496
|
+
* The harm probability is low.
|
|
481
497
|
*/
|
|
482
498
|
HarmProbability["LOW"] = "LOW";
|
|
483
499
|
/**
|
|
484
|
-
*
|
|
500
|
+
* The harm probability is medium.
|
|
485
501
|
*/
|
|
486
502
|
HarmProbability["MEDIUM"] = "MEDIUM";
|
|
487
503
|
/**
|
|
488
|
-
*
|
|
504
|
+
* The harm probability is high.
|
|
489
505
|
*/
|
|
490
506
|
HarmProbability["HIGH"] = "HIGH";
|
|
491
507
|
})(HarmProbability || (HarmProbability = {}));
|
|
492
|
-
/** Output only.
|
|
508
|
+
/** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */
|
|
493
509
|
var HarmSeverity;
|
|
494
510
|
(function (HarmSeverity) {
|
|
495
511
|
/**
|
|
496
|
-
*
|
|
512
|
+
* The harm severity is unspecified.
|
|
497
513
|
*/
|
|
498
514
|
HarmSeverity["HARM_SEVERITY_UNSPECIFIED"] = "HARM_SEVERITY_UNSPECIFIED";
|
|
499
515
|
/**
|
|
500
|
-
*
|
|
516
|
+
* The harm severity is negligible.
|
|
501
517
|
*/
|
|
502
518
|
HarmSeverity["HARM_SEVERITY_NEGLIGIBLE"] = "HARM_SEVERITY_NEGLIGIBLE";
|
|
503
519
|
/**
|
|
504
|
-
*
|
|
520
|
+
* The harm severity is low.
|
|
505
521
|
*/
|
|
506
522
|
HarmSeverity["HARM_SEVERITY_LOW"] = "HARM_SEVERITY_LOW";
|
|
507
523
|
/**
|
|
508
|
-
*
|
|
524
|
+
* The harm severity is medium.
|
|
509
525
|
*/
|
|
510
526
|
HarmSeverity["HARM_SEVERITY_MEDIUM"] = "HARM_SEVERITY_MEDIUM";
|
|
511
527
|
/**
|
|
512
|
-
*
|
|
528
|
+
* The harm severity is high.
|
|
513
529
|
*/
|
|
514
530
|
HarmSeverity["HARM_SEVERITY_HIGH"] = "HARM_SEVERITY_HIGH";
|
|
515
531
|
})(HarmSeverity || (HarmSeverity = {}));
|
|
516
|
-
/**
|
|
532
|
+
/** The status of the URL retrieval. */
|
|
517
533
|
var UrlRetrievalStatus;
|
|
518
534
|
(function (UrlRetrievalStatus) {
|
|
519
535
|
/**
|
|
@@ -521,11 +537,11 @@ var UrlRetrievalStatus;
|
|
|
521
537
|
*/
|
|
522
538
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_UNSPECIFIED"] = "URL_RETRIEVAL_STATUS_UNSPECIFIED";
|
|
523
539
|
/**
|
|
524
|
-
*
|
|
540
|
+
* The URL was retrieved successfully.
|
|
525
541
|
*/
|
|
526
542
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_SUCCESS"] = "URL_RETRIEVAL_STATUS_SUCCESS";
|
|
527
543
|
/**
|
|
528
|
-
*
|
|
544
|
+
* The URL retrieval failed.
|
|
529
545
|
*/
|
|
530
546
|
UrlRetrievalStatus["URL_RETRIEVAL_STATUS_ERROR"] = "URL_RETRIEVAL_STATUS_ERROR";
|
|
531
547
|
/**
|
|
@@ -584,6 +600,14 @@ var TrafficType;
|
|
|
584
600
|
* The request was processed using Pay-As-You-Go quota.
|
|
585
601
|
*/
|
|
586
602
|
TrafficType["ON_DEMAND"] = "ON_DEMAND";
|
|
603
|
+
/**
|
|
604
|
+
* Type for Priority Pay-As-You-Go traffic.
|
|
605
|
+
*/
|
|
606
|
+
TrafficType["ON_DEMAND_PRIORITY"] = "ON_DEMAND_PRIORITY";
|
|
607
|
+
/**
|
|
608
|
+
* Type for Flex traffic.
|
|
609
|
+
*/
|
|
610
|
+
TrafficType["ON_DEMAND_FLEX"] = "ON_DEMAND_FLEX";
|
|
587
611
|
/**
|
|
588
612
|
* Type for Provisioned Throughput traffic.
|
|
589
613
|
*/
|
|
@@ -729,6 +753,102 @@ var JobState;
|
|
|
729
753
|
*/
|
|
730
754
|
JobState["JOB_STATE_PARTIALLY_SUCCEEDED"] = "JOB_STATE_PARTIALLY_SUCCEEDED";
|
|
731
755
|
})(JobState || (JobState = {}));
|
|
756
|
+
/** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */
|
|
757
|
+
var TuningJobState;
|
|
758
|
+
(function (TuningJobState) {
|
|
759
|
+
/**
|
|
760
|
+
* Default tuning job state.
|
|
761
|
+
*/
|
|
762
|
+
TuningJobState["TUNING_JOB_STATE_UNSPECIFIED"] = "TUNING_JOB_STATE_UNSPECIFIED";
|
|
763
|
+
/**
|
|
764
|
+
* Tuning job is waiting for job quota.
|
|
765
|
+
*/
|
|
766
|
+
TuningJobState["TUNING_JOB_STATE_WAITING_FOR_QUOTA"] = "TUNING_JOB_STATE_WAITING_FOR_QUOTA";
|
|
767
|
+
/**
|
|
768
|
+
* Tuning job is validating the dataset.
|
|
769
|
+
*/
|
|
770
|
+
TuningJobState["TUNING_JOB_STATE_PROCESSING_DATASET"] = "TUNING_JOB_STATE_PROCESSING_DATASET";
|
|
771
|
+
/**
|
|
772
|
+
* Tuning job is waiting for hardware capacity.
|
|
773
|
+
*/
|
|
774
|
+
TuningJobState["TUNING_JOB_STATE_WAITING_FOR_CAPACITY"] = "TUNING_JOB_STATE_WAITING_FOR_CAPACITY";
|
|
775
|
+
/**
|
|
776
|
+
* Tuning job is running.
|
|
777
|
+
*/
|
|
778
|
+
TuningJobState["TUNING_JOB_STATE_TUNING"] = "TUNING_JOB_STATE_TUNING";
|
|
779
|
+
/**
|
|
780
|
+
* Tuning job is doing some post processing steps.
|
|
781
|
+
*/
|
|
782
|
+
TuningJobState["TUNING_JOB_STATE_POST_PROCESSING"] = "TUNING_JOB_STATE_POST_PROCESSING";
|
|
783
|
+
})(TuningJobState || (TuningJobState = {}));
|
|
784
|
+
/** Aggregation metric. This enum is not supported in Gemini API. */
|
|
785
|
+
var AggregationMetric;
|
|
786
|
+
(function (AggregationMetric) {
|
|
787
|
+
/**
|
|
788
|
+
* Unspecified aggregation metric.
|
|
789
|
+
*/
|
|
790
|
+
AggregationMetric["AGGREGATION_METRIC_UNSPECIFIED"] = "AGGREGATION_METRIC_UNSPECIFIED";
|
|
791
|
+
/**
|
|
792
|
+
* Average aggregation metric. Not supported for Pairwise metric.
|
|
793
|
+
*/
|
|
794
|
+
AggregationMetric["AVERAGE"] = "AVERAGE";
|
|
795
|
+
/**
|
|
796
|
+
* Mode aggregation metric.
|
|
797
|
+
*/
|
|
798
|
+
AggregationMetric["MODE"] = "MODE";
|
|
799
|
+
/**
|
|
800
|
+
* Standard deviation aggregation metric. Not supported for pairwise metric.
|
|
801
|
+
*/
|
|
802
|
+
AggregationMetric["STANDARD_DEVIATION"] = "STANDARD_DEVIATION";
|
|
803
|
+
/**
|
|
804
|
+
* Variance aggregation metric. Not supported for pairwise metric.
|
|
805
|
+
*/
|
|
806
|
+
AggregationMetric["VARIANCE"] = "VARIANCE";
|
|
807
|
+
/**
|
|
808
|
+
* Minimum aggregation metric. Not supported for pairwise metric.
|
|
809
|
+
*/
|
|
810
|
+
AggregationMetric["MINIMUM"] = "MINIMUM";
|
|
811
|
+
/**
|
|
812
|
+
* Maximum aggregation metric. Not supported for pairwise metric.
|
|
813
|
+
*/
|
|
814
|
+
AggregationMetric["MAXIMUM"] = "MAXIMUM";
|
|
815
|
+
/**
|
|
816
|
+
* Median aggregation metric. Not supported for pairwise metric.
|
|
817
|
+
*/
|
|
818
|
+
AggregationMetric["MEDIAN"] = "MEDIAN";
|
|
819
|
+
/**
|
|
820
|
+
* 90th percentile aggregation metric. Not supported for pairwise metric.
|
|
821
|
+
*/
|
|
822
|
+
AggregationMetric["PERCENTILE_P90"] = "PERCENTILE_P90";
|
|
823
|
+
/**
|
|
824
|
+
* 95th percentile aggregation metric. Not supported for pairwise metric.
|
|
825
|
+
*/
|
|
826
|
+
AggregationMetric["PERCENTILE_P95"] = "PERCENTILE_P95";
|
|
827
|
+
/**
|
|
828
|
+
* 99th percentile aggregation metric. Not supported for pairwise metric.
|
|
829
|
+
*/
|
|
830
|
+
AggregationMetric["PERCENTILE_P99"] = "PERCENTILE_P99";
|
|
831
|
+
})(AggregationMetric || (AggregationMetric = {}));
|
|
832
|
+
/** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */
|
|
833
|
+
var PairwiseChoice;
|
|
834
|
+
(function (PairwiseChoice) {
|
|
835
|
+
/**
|
|
836
|
+
* Unspecified prediction choice.
|
|
837
|
+
*/
|
|
838
|
+
PairwiseChoice["PAIRWISE_CHOICE_UNSPECIFIED"] = "PAIRWISE_CHOICE_UNSPECIFIED";
|
|
839
|
+
/**
|
|
840
|
+
* Baseline prediction wins
|
|
841
|
+
*/
|
|
842
|
+
PairwiseChoice["BASELINE"] = "BASELINE";
|
|
843
|
+
/**
|
|
844
|
+
* Candidate prediction wins
|
|
845
|
+
*/
|
|
846
|
+
PairwiseChoice["CANDIDATE"] = "CANDIDATE";
|
|
847
|
+
/**
|
|
848
|
+
* Winner cannot be determined
|
|
849
|
+
*/
|
|
850
|
+
PairwiseChoice["TIE"] = "TIE";
|
|
851
|
+
})(PairwiseChoice || (PairwiseChoice = {}));
|
|
732
852
|
/** The tuning task. Either I2V or T2V. This enum is not supported in Gemini API. */
|
|
733
853
|
var TuningTask;
|
|
734
854
|
(function (TuningTask) {
|
|
@@ -841,22 +961,6 @@ var SafetyFilterLevel;
|
|
|
841
961
|
SafetyFilterLevel["BLOCK_ONLY_HIGH"] = "BLOCK_ONLY_HIGH";
|
|
842
962
|
SafetyFilterLevel["BLOCK_NONE"] = "BLOCK_NONE";
|
|
843
963
|
})(SafetyFilterLevel || (SafetyFilterLevel = {}));
|
|
844
|
-
/** Enum that controls the generation of people. */
|
|
845
|
-
var PersonGeneration;
|
|
846
|
-
(function (PersonGeneration) {
|
|
847
|
-
/**
|
|
848
|
-
* Block generation of images of people.
|
|
849
|
-
*/
|
|
850
|
-
PersonGeneration["DONT_ALLOW"] = "DONT_ALLOW";
|
|
851
|
-
/**
|
|
852
|
-
* Generate images of adults, but not children.
|
|
853
|
-
*/
|
|
854
|
-
PersonGeneration["ALLOW_ADULT"] = "ALLOW_ADULT";
|
|
855
|
-
/**
|
|
856
|
-
* Generate images that include adults and children.
|
|
857
|
-
*/
|
|
858
|
-
PersonGeneration["ALLOW_ALL"] = "ALLOW_ALL";
|
|
859
|
-
})(PersonGeneration || (PersonGeneration = {}));
|
|
860
964
|
/** Enum that specifies the language of the text in the prompt. */
|
|
861
965
|
var ImagePromptLanguage;
|
|
862
966
|
(function (ImagePromptLanguage) {
|