Skip to content

Commit e125fb7

Browse files
authored
docs: update ImagePart refdocs (#6681)
The current refdocs are somewhat confusing and may lead to assume that the conversion happens server-side, when it's actually client side.
1 parent ed5621e commit e125fb7

File tree

1 file changed

+2
-2
lines changed
  • firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type

1 file changed

+2
-2
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/type/Part.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public class TextPart(public val text: String) : Part {
4040
}
4141

4242
/**
43-
* Represents image data sent to and received from requests. When this is sent to the server it is
44-
* converted to jpeg encoding at 80% quality.
43+
* Represents image data sent to and received from requests. The image is converted client-side to
44+
* JPEG encoding at 80% quality before being sent to the server.
4545
*
4646
* @param image [Bitmap] to convert into a [Part]
4747
*/

0 commit comments

Comments
 (0)