Skip to content

Commit d3f71c1

Browse files
authored
Remove allow_all
1 parent b58308a commit d3f71c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

google/generativeai/vision_models/_vision_models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def to_mapping_value(value) -> struct_pb2.Struct:
107107
SafetyFilterLevel = Literal["block_most", "block_some", "block_few"]
108108
SAFETY_FILTER_LEVELS = SafetyFilterLevel.__args__ # type: ignore
109109

110-
PersonGeneration = Literal["dont_allow", "allow_adult", "allow_all"]
110+
PersonGeneration = Literal["dont_allow", "allow_adult"]
111111
PERSON_GENERATIONS = PersonGeneration.__args__ # type: ignore
112112

113113

@@ -285,7 +285,6 @@ def _generate_images(
285285
values are:
286286
* "dont_allow" : Block generation of people
287287
* "allow_adult" : Generate adults, but not children
288-
* "allow_all" : Generate adults and children
289288
290289
Returns:
291290
An `ImageGenerationResponse` object.
@@ -413,7 +412,6 @@ def generate_images(
413412
values are:
414413
* "dont_allow" : Block generation of people
415414
* "allow_adult" : Generate adults, but not children
416-
* "allow_all" : Generate adults and children
417415
Returns:
418416
An `ImageGenerationResponse` object.
419417
"""

0 commit comments

Comments
 (0)