File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ internal constructor(
128128 }
129129}
130130
131+ @OptIn(PublicPreviewAPI ::class )
131132private fun ImagenGenerationResponse.Internal.validate (): ImagenGenerationResponse .Internal {
132133 if (predictions.none { it.mimeType != null }) {
133134 throw ContentBlockedException (
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package com.google.firebase.vertexai.java
1919import androidx.concurrent.futures.SuspendToFutureAdapter
2020import com.google.common.util.concurrent.ListenableFuture
2121import com.google.firebase.vertexai.ImagenModel
22+ import com.google.firebase.vertexai.common.PublicPreviewAPI
2223import com.google.firebase.vertexai.type.ImagenGCSImage
2324import com.google.firebase.vertexai.type.ImagenGenerationResponse
2425import com.google.firebase.vertexai.type.ImagenInlineImage
@@ -28,6 +29,7 @@ import com.google.firebase.vertexai.type.ImagenInlineImage
2829 *
2930 * @see [ImagenModel]
3031 */
32+ @OptIn(PublicPreviewAPI ::class )
3133public abstract class ImagenModelFutures internal constructor() {
3234 /* *
3335 * Generates an image, returning the result directly to the caller.
You can’t perform that action at this time.
0 commit comments