Skip to content

Commit e09b902

Browse files
committed
Update safety filter levels
Change-Id: Idf5990bf6ebf33da07318c0348a42bb7efd04582
1 parent 0da9b2d commit e09b902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/vision_models/_vision_models.py

Lines changed: 1 addition & 1 deletion
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"]
107+
SafetyFilterLevel = Literal["block_low_and_above", "block_medium_and_above", "block_only_high"]
108108
SAFETY_FILTER_LEVELS = SafetyFilterLevel.__args__ # type: ignore
109109

110110
PersonGeneration = Literal["dont_allow", "allow_adult"]

0 commit comments

Comments
 (0)