Skip to content

Commit 4d40615

Browse files
author
David Motsonashvili
committed
format fixes
1 parent 67e1dfe commit 4d40615

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/FirebaseVertexAI.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ internal constructor(
8282
}
8383

8484
/**
85-
* Instantiates a new [ImageModel] given the provided parameters.
85+
* Instantiates a new [ImagenModel] given the provided parameters.
8686
*
8787
* @param modelName The name of the model to use, for example `"imagen-3.0-generate-001"`.
8888
* @param generationConfig The configuration parameters to use for image generation.
8989
* @param safetySettings The safety bounds the model will abide to during image generation.
9090
* @param requestOptions Configuration options for sending requests to the backend.
91-
* @return The initialized [ImageModel] instance.
91+
* @return The initialized [ImagenModel] instance.
9292
*/
9393
@JvmOverloads
9494
public fun imagenModel(

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/ImagenModel.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ internal constructor(
7171

7272
/**
7373
* Generates an image, returning the result directly to the caller.
74-
* @param prompt The main text prompt from which the image is generated.
75-
* @param config contains secondary image generation parameters.
74+
*
75+
* @param prompt The input(s) given to the model as a prompt.
7676
*/
7777
public suspend fun generateImages(prompt: String): ImagenGenerationResponse<ImagenInlineImage> =
7878
try {
@@ -87,9 +87,9 @@ internal constructor(
8787

8888
/**
8989
* Generates an image, storing the result in Google Cloud Storage and returning a URL
90-
* @param prompt The main text prompt from which the image is generated.
90+
*
91+
* @param prompt The input(s) given to the model as a prompt.
9192
* @param gcsUri Specifies the GCS bucket in which to store the image.
92-
* @param config contains secondary image generation parameters.
9393
*/
9494
public suspend fun generateImages(
9595
prompt: String,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
package com.google.firebase.vertexai.type
1818

1919
/**
20-
* Contains extra settings to configure image generation
20+
* Contains extra settings to configure image generation.
21+
*
2122
* @param negativePrompt This string contains things that should be explicitly be excluded from
2223
* generated images.
2324
* @param numberOfImages How many images should be generated.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ private constructor(public val mimeType: String, public val compressionQuality:
2929
public companion object {
3030
/**
3131
* An [ImagenImageFormat] representing a JPEG image.
32+
*
3233
* @param compressionQuality an int (1-100) representing how the quality of the image, a lower
3334
* number meaning the image is permitted to be lower quality to reduce size.
3435
*/

0 commit comments

Comments
 (0)