Skip to content

Commit 502aec8

Browse files
authored
Update ImagenPersonFilterLevel refdocs to match the iOS SDK
1 parent ec4b353 commit 502aec8

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,24 @@ package com.google.firebase.ai.type
2020
@PublicPreviewAPI
2121
public class ImagenPersonFilterLevel private constructor(internal val internalVal: String) {
2222
public companion object {
23-
/** No filters applied. */
23+
/** Allow generation of images containing people of all ages.
24+
*
25+
* > Important: Generation of images containing people or faces may require your use case to be
26+
* reviewed and approved by Cloud support; see the [Responsible AI and usage
27+
* guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen)
28+
* for more details.
29+
*/
2430
@JvmField public val ALLOW_ALL: ImagenPersonFilterLevel = ImagenPersonFilterLevel("allow_all")
25-
/** Filters out any images containing depictions of children. */
31+
/** Allow generation of images containing adults only; images of children are filtered out.
32+
*
33+
* > Important: Generation of images containing people or faces may require your use case to be
34+
* reviewed and approved by Cloud support; see the [Responsible AI and usage
35+
* guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen)
36+
* for more details.
37+
*/
2638
@JvmField
2739
public val ALLOW_ADULT: ImagenPersonFilterLevel = ImagenPersonFilterLevel("allow_adult")
28-
/** Filters out any images containing depictions of people. */
40+
/** Disallow generation of images containing people or faces; images of people are filtered out. */
2941
@JvmField public val BLOCK_ALL: ImagenPersonFilterLevel = ImagenPersonFilterLevel("dont_allow")
3042
}
3143
}

0 commit comments

Comments
 (0)