Skip to content

Commit e5be3bf

Browse files
author
David Motsonashvili
committed
fix constructor
1 parent 8086ccb commit e5be3bf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ internal constructor(public val images: List<T>, public val filteredReason: Stri
5555
val safetyAttributes: ImagenSafetyAttributes? = null,
5656
) {
5757
internal fun toPublicInline() =
58-
ImagenInlineImage(
59-
Base64.decode(bytesBase64Encoded!!, Base64.NO_WRAP),
60-
mimeType!!,
61-
safetyAttributes?.toPublic() ?: emptyMap()
62-
)
58+
ImagenInlineImage(Base64.decode(bytesBase64Encoded!!, Base64.NO_WRAP), mimeType!!)
6359

6460
internal fun toPublicGCS() = ImagenGCSImage(gcsUri!!, mimeType!!)
6561
}

0 commit comments

Comments
 (0)