@@ -104,7 +104,7 @@ def to_mapping_value(value) -> struct_pb2.Struct:
104
104
OutputMimeType = Literal ["image/png" , "image/jpeg" ]
105
105
OUTPUT_MIME_TYPES = OutputMimeType .__args__ # type: ignore
106
106
107
- SafetyFilterLevel = Literal ["block_most" , "block_some" , "block_few" , "block_fewest" ]
107
+ SafetyFilterLevel = Literal ["block_most" , "block_some" , "block_few" ]
108
108
SAFETY_FILTER_LEVELS = SafetyFilterLevel .__args__ # type: ignore
109
109
110
110
PersonGeneration = Literal ["dont_allow" , "allow_adult" , "allow_all" ]
@@ -277,14 +277,15 @@ def _generate_images(
277
277
Japanese, `"ko"` for Korean, and `"auto"` for automatic language
278
278
detection.
279
279
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
284
284
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
288
289
289
290
Returns:
290
291
An `ImageGenerationResponse` object.
@@ -408,7 +409,6 @@ def generate_images(
408
409
blocking
409
410
* "block_some" : Block some problematic prompts and responses
410
411
* "block_few" : Block fewer problematic prompts and responses
411
- * "block_fewest" : Block very few problematic prompts and responses
412
412
person_generation: Allow generation of people by the model Supported
413
413
values are:
414
414
* "dont_allow" : Block generation of people
0 commit comments