File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import com.google.common.util.concurrent.ListenableFuture
2121import com.google.firebase.vertexai.Chat
2222import com.google.firebase.vertexai.type.Content
2323import com.google.firebase.vertexai.type.GenerateContentResponse
24+ import com.google.firebase.vertexai.type.InvalidStateException
2425import kotlinx.coroutines.reactive.asPublisher
2526import org.reactivestreams.Publisher
2627
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import com.google.firebase.vertexai.GenerativeModel
2222import com.google.firebase.vertexai.java.ChatFutures.Companion.from
2323import com.google.firebase.vertexai.type.Content
2424import com.google.firebase.vertexai.type.CountTokensResponse
25+ import com.google.firebase.vertexai.type.FirebaseVertexAIException
2526import com.google.firebase.vertexai.type.GenerateContentResponse
2627import kotlinx.coroutines.reactive.asPublisher
2728import 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 */
Original file line number Diff line number Diff 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 */
3131public class Content
You can’t perform that action at this time.
0 commit comments