nirmato ollama
1.0.0
Klien API Ollama tidak resmi untuk multiplatform Kotlin.
Implementasinya mengikuti definisi OpenAPI Ollama API yang dijelaskan dalam Dokumen Ollama API.
Peringatan
nirmato-ollama sedang dalam pengembangan.
Laporkan masalah atau bug apa pun di repositori GitHub.
Platform Sasaran | Target yang telah ditetapkan sebelumnya |
---|---|
Kotlin/JVM |
|
Kotlin/WasmJS |
|
Kotlin/JS |
|
Linux |
|
MingwX64 |
|
iOS |
|
macOS |
|
jam tanganOS |
|
televisi |
|
Versi | API Ollama |
---|---|
1.0.x | 0.3.3 |
< 1.0.0 | 0.3.3 |
val ollama = OllamaClient {
logging = LoggingConfig (logLevel = LogLevel . All )
timeout = TimeoutConfig (socket = 30 .seconds)
host = OllamaHost . Local
retry = RetryStrategy ( 0 )
engine = CIO .create()
}
val response = ollama.completion {
model = " tinyllama "
prompt = " Why is the sky blue? "
}
repositories {
maven {
name = " GitHub Apache Maven Packages "
url = uri( " https://maven.pkg.github.com/nirmato/nirmato-ollama " )
}
}
build.gradle.kt
dependencies {
implementation( " org.nirmato.ollama:nirmato-ollama-client:VERSION " )
}
settings.xml
proyek Anda < repositories >
< repository >
< id >github</ id >
< name >GitHub Apache Maven Packages</ name >
< url >https://maven.pkg.github.com/nirmato/nirmato-ollama</ url >
< releases >
< enabled >true</ enabled >
</ releases >
< snapshots >
< enabled >false</ enabled >
</ snapshots >
</ repository >
</ repositories >
< dependency >
< groupId >org.nirmato.ollama</ groupId >
< artifactId >nirmato-ollama-client-[jvm]</ artifactId >
< version >VERSION</ version >
</ dependency >
Silakan kirimkan permintaan penarikan. Kontribusi dipersilahkan!
JetBrains untuk membuat Kotlin.
Kode sumber didistribusikan di bawah Lisensi Apache 2.0.