Skip to content

Commit 3fcf824

Browse files
authored
Remove block_fewest
1 parent bbd5af3 commit 3fcf824

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

google/generativeai/vision_models/_vision_models.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def to_mapping_value(value) -> struct_pb2.Struct:
104104
OutputMimeType = Literal["image/png", "image/jpeg"]
105105
OUTPUT_MIME_TYPES = OutputMimeType.__args__ # type: ignore
106106

107-
SafetyFilterLevel = Literal["block_most", "block_some", "block_few", "block_fewest"]
107+
SafetyFilterLevel = Literal["block_most", "block_some", "block_few"]
108108
SAFETY_FILTER_LEVELS = SafetyFilterLevel.__args__ # type: ignore
109109

110110
PersonGeneration = Literal["dont_allow", "allow_adult", "allow_all"]
@@ -277,14 +277,15 @@ def _generate_images(
277277
Japanese, `"ko"` for Korean, and `"auto"` for automatic language
278278
detection.
279279
safety_filter_level: Adds a filter level to Safety filtering. Supported
280-
values are: * "block_most" : Strongest filtering level, most strict
281-
blocking * "block_some" : Block some problematic prompts and responses
282-
* "block_few" : Block fewer problematic prompts and responses *
283-
"block_fewest" : Block very few problematic prompts and responses
280+
values are:
281+
* "block_most" : Strongest filtering level, most strict blocking
282+
* "block_some" : Block some problematic prompts and responses
283+
* "block_few" : Block fewer problematic prompts and responses
284284
person_generation: Allow generation of people by the model Supported
285-
values are: * "dont_allow" : Block generation of people *
286-
"allow_adult" : Generate adults, but not children * "allow_all" :
287-
Generate adults and children
285+
values are:
286+
* "dont_allow" : Block generation of people
287+
* "allow_adult" : Generate adults, but not children
288+
* "allow_all" : Generate adults and children
288289
289290
Returns:
290291
An `ImageGenerationResponse` object.
@@ -408,7 +409,6 @@ def generate_images(
408409
blocking
409410
* "block_some" : Block some problematic prompts and responses
410411
* "block_few" : Block fewer problematic prompts and responses
411-
* "block_fewest" : Block very few problematic prompts and responses
412412
person_generation: Allow generation of people by the model Supported
413413
values are:
414414
* "dont_allow" : Block generation of people

0 commit comments

Comments
 (0)