From 793b293818d9af984c6c6550c456833793487798 Mon Sep 17 00:00:00 2001 From: Emily Ploszaj Date: Thu, 6 Jun 2024 14:10:09 -0500 Subject: [PATCH] Remove test changes --- .../main/java/com/google/ai/client/generativeai/Chat.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/generativeai/src/main/java/com/google/ai/client/generativeai/Chat.kt b/generativeai/src/main/java/com/google/ai/client/generativeai/Chat.kt index ce0e3099..fbe8f346 100644 --- a/generativeai/src/main/java/com/google/ai/client/generativeai/Chat.kt +++ b/generativeai/src/main/java/com/google/ai/client/generativeai/Chat.kt @@ -45,10 +45,6 @@ import kotlinx.coroutines.flow.onEach class Chat(private val model: GenerativeModel, val history: MutableList = ArrayList()) { private var lock = Semaphore(1) - fun foo(bar: String) { - - } - /** * Generates a response from the backend with the provided [Content], and any previous ones * sent/returned from this chat. @@ -57,7 +53,7 @@ class Chat(private val model: GenerativeModel, val history: MutableList * @throws InvalidStateException if the prompt is not coming from the 'user' role * @throws InvalidStateException if the [Chat] instance has an active request. */ - suspend fun sendMessage(prompt: Content, some: String = ""): GenerateContentResponse { + suspend fun sendMessage(prompt: Content): GenerateContentResponse { prompt.assertComesFromUser() attemptLock() try { @@ -76,7 +72,7 @@ class Chat(private val model: GenerativeModel, val history: MutableList * @param prompt The text to be converted into a single piece of [Content] to send to the model. * @throws InvalidStateException if the [Chat] instance has an active request. */ - suspend fun sendMessage(prompt: String, foo: Bitmap? = null, bar: Float = 0f): GenerateContentResponse { + suspend fun sendMessage(prompt: String): GenerateContentResponse { val content = content { text(prompt) } return sendMessage(content) }