Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
David Motsonashvili committed Mar 18, 2024
1 parent 0d567dd commit 9d7a3eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import kotlinx.coroutines.flow.transform
@OptIn(GenerativeBeta::class)
class Chat(private val model: GenerativeModel, val history: MutableList<Content> = ArrayList()) {
private var lock = Semaphore(1)
private val VALID_ROLES = listOf("user","function")
private val VALID_ROLES = listOf("user", "function")

/**
* Generates a response from the backend with the provided [Content], and any previous ones
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ internal enum class HarmCategory {

typealias Base64 = String


@ExperimentalSerializationApi
@Serializable
internal data class Content(@EncodeDefault val role: String? = "user", val parts: List<Part>)
Expand Down

0 comments on commit 9d7a3eb

Please sign in to comment.