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(
42
42
/* *
43
43
* Instantiates a new [GenerativeModel] given the provided parameters.
44
44
*
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"` .
46
46
* @param generationConfig The configuration parameters to use for content generation.
47
47
* @param safetySettings The safety bounds the model will abide to during content generation.
48
48
* @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
21
21
import com.google.firebase.vertexai.Chat
22
22
import com.google.firebase.vertexai.type.Content
23
23
import com.google.firebase.vertexai.type.GenerateContentResponse
24
+ import com.google.firebase.vertexai.type.InvalidStateException
24
25
import kotlinx.coroutines.reactive.asPublisher
25
26
import org.reactivestreams.Publisher
26
27
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import com.google.firebase.vertexai.GenerativeModel
22
22
import com.google.firebase.vertexai.java.ChatFutures.Companion.from
23
23
import com.google.firebase.vertexai.type.Content
24
24
import com.google.firebase.vertexai.type.CountTokensResponse
25
+ import com.google.firebase.vertexai.type.FirebaseVertexAIException
25
26
import com.google.firebase.vertexai.type.GenerateContentResponse
26
27
import kotlinx.coroutines.reactive.asPublisher
27
28
import org.reactivestreams.Publisher
@@ -65,13 +66,13 @@ public abstract class GenerativeModelFutures internal constructor() {
65
66
public abstract fun countTokens (vararg prompt : Content ): ListenableFuture <CountTokensResponse >
66
67
67
68
/* *
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
69
70
* model.
70
71
*/
71
72
public abstract fun startChat (): ChatFutures
72
73
73
74
/* *
74
- * Creates a [ChatFuture ] instance, initialized using the optionally provided [history].
75
+ * Creates a [ChatFutures ] instance, initialized using the optionally provided [history].
75
76
*
76
77
* @param history A list of previous interactions with the model to use as a starting point
77
78
*/
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ import android.graphics.Bitmap
24
24
* `Content` is composed of a one or more heterogeneous parts that can be represent data in
25
25
* different formats, like text or images.
26
26
*
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"` .
29
29
* @param parts An ordered list of [Part] that constitute this content.
30
30
*/
31
31
public class Content
You can’t perform that action at this time.
0 commit comments