Skip to content

Commit 4e027a9

Browse files
authored
Update ImagenPersonFilterLevel refdocs to match the iOS SDK (#6995)
This PR updates the ImagenPersonFilter refdocs to match the [iOS SDK](https://github.com/firebase/firebase-ios-sdk/blob/4f6c342424df416d78dfc12d08c97769fd4e1152/FirebaseAI/Sources/Types/Public/Imagen/ImagenPersonFilterLevel.swift#L33-L45), including the information about the [Person and face generation allowlist](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen).
1 parent ec4b353 commit 4e027a9

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

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

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,30 @@ 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+
/**
24+
* Allow generation of images containing people of all ages.
25+
*
26+
* > Important: Generation of images containing people or faces may require your use case to be
27+
* reviewed and approved by Cloud support; see the
28+
* [Responsible AI and usage
29+
* guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen)
30+
* for more details.
31+
*/
2432
@JvmField public val ALLOW_ALL: ImagenPersonFilterLevel = ImagenPersonFilterLevel("allow_all")
25-
/** Filters out any images containing depictions of children. */
33+
/**
34+
* Allow generation of images containing adults only; images of children are filtered out.
35+
*
36+
* > Important: Generation of images containing people or faces may require your use case to be
37+
* reviewed and approved by Cloud support; see the
38+
* [Responsible AI and usage
39+
* guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen)
40+
* for more details.
41+
*/
2642
@JvmField
2743
public val ALLOW_ADULT: ImagenPersonFilterLevel = ImagenPersonFilterLevel("allow_adult")
28-
/** Filters out any images containing depictions of people. */
44+
/**
45+
* Disallow generation of images containing people or faces; images of people are filtered out.
46+
*/
2947
@JvmField public val BLOCK_ALL: ImagenPersonFilterLevel = ImagenPersonFilterLevel("dont_allow")
3048
}
3149
}

0 commit comments

Comments
 (0)