Skip to content

Commit 25fe73c

Browse files
committed
Update javadocs
1 parent 34c2420 commit 25fe73c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ internal constructor(
4242
/**
4343
* Instantiates a new [GenerativeModel] given the provided parameters.
4444
*
45-
* @param modelName The name of the model to use, for example "gemini-1.5-pro".
45+
* @param modelName The name of the model to use, for example `"gemini-1.5-pro"`.
4646
* @param generationConfig The configuration parameters to use for content generation.
4747
* @param safetySettings The safety bounds the model will abide to during content generation.
4848
* @param tools A list of [Tool]s the model may use to generate content.

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/ChatFutures.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import com.google.common.util.concurrent.ListenableFuture
2121
import com.google.firebase.vertexai.Chat
2222
import com.google.firebase.vertexai.type.Content
2323
import com.google.firebase.vertexai.type.GenerateContentResponse
24+
import com.google.firebase.vertexai.type.InvalidStateException
2425
import kotlinx.coroutines.reactive.asPublisher
2526
import org.reactivestreams.Publisher
2627

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/GenerativeModelFutures.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import com.google.firebase.vertexai.GenerativeModel
2222
import com.google.firebase.vertexai.java.ChatFutures.Companion.from
2323
import com.google.firebase.vertexai.type.Content
2424
import com.google.firebase.vertexai.type.CountTokensResponse
25+
import com.google.firebase.vertexai.type.FirebaseVertexAIException
2526
import com.google.firebase.vertexai.type.GenerateContentResponse
2627
import kotlinx.coroutines.reactive.asPublisher
2728
import org.reactivestreams.Publisher
@@ -65,13 +66,13 @@ public abstract class GenerativeModelFutures internal constructor() {
6566
public abstract fun countTokens(vararg prompt: Content): ListenableFuture<CountTokensResponse>
6667

6768
/**
68-
* Creates a [ChatFuture] instance which internally tracks the ongoing conversation with the
69+
* Creates a [ChatFutures] instance which internally tracks the ongoing conversation with the
6970
* model.
7071
*/
7172
public abstract fun startChat(): ChatFutures
7273

7374
/**
74-
* Creates a [ChatFuture] instance, initialized using the optionally provided [history].
75+
* Creates a [ChatFutures] instance, initialized using the optionally provided [history].
7576
*
7677
* @param history A list of previous interactions with the model to use as a starting point
7778
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import android.graphics.Bitmap
2424
* `Content` is composed of a one or more heterogeneous parts that can be represent data in
2525
* different formats, like text or images.
2626
*
27-
* @param role The producer of the content. Must be either 'user' or 'model'. By default, it's
28-
* "user".
27+
* @param role The producer of the content. Must be either `"user"` or `"model"`. By default, it's
28+
* `"user"`.
2929
* @param parts An ordered list of [Part] that constitute this content.
3030
*/
3131
public class Content

0 commit comments

Comments
 (0)