Kotlin client for OpenAI's API with multiplatform and coroutines capabilities, which fixed all errors when using Gemini API.
Forked from aallam/openai-kotlin
- Install OpenAI API Kotlin client by adding the following dependency to your
build.gradlefile:
repositories {
mavenCentral()
}
dependencies {
implementation "org.simpmusic.gemini-kotlin:openai-client:<latest-version>"
}- Choose and add to your dependencies one of Ktor's engines.