Skip to content

Commit

Permalink
feat(BE-174): integrate anthropic api
Browse files Browse the repository at this point in the history
 - fix ut
  • Loading branch information
hanrw committed Mar 15, 2024
1 parent 85934b8 commit 1ed6334
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import app.cash.turbine.test
import com.tddworks.openai.api.chat.api.*
import com.tddworks.openai.api.common.mockHttpClient
import com.tddworks.common.network.api.ktor.internal.DefaultHttpRequester
import com.tddworks.di.initKoin
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.ExperimentalSerializationApi
import org.junit.jupiter.api.Assertions.assertEquals
Expand Down Expand Up @@ -63,6 +64,9 @@ class DefaultChatApiTest {

@Test
fun `should return stream of completions`() = runBlocking {

initKoin()

val request = ChatCompletionRequest.chatCompletionsRequest(listOf(ChatMessage.UserMessage("hello")))

val chat = DefaultChatApi(
Expand Down

0 comments on commit 1ed6334

Please sign in to comment.