All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonTest.com.aallam.openai.client.TestModels.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta01
Show newest version
package com.aallam.openai.client

import kotlinx.coroutines.test.runTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue

class TestModels : TestOpenAI() {

    @Test
    fun models() = runTest {
        val resModels = openAI.models()
        assertTrue { resModels.isNotEmpty() }
        val resModel = resModels.first()
        val model = openAI.model(resModel.id)
        assertEquals(resModel, model)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy