Skip to content

Commit 5108aa6

Browse files
committed
feat(BE-190): As a user, i want able to use ollama-client
- support llama3
1 parent d625cb9 commit 5108aa6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android.useAndroidX=true
1212
android.nonTransitiveRClass=true
1313

1414
#publishing for kmmbridge
15-
LIBRARY_VERSION=0.1.2
15+
LIBRARY_VERSION=0.1.3
1616
GROUP=com.tddworks
1717

1818
# POM

ollama-client/ollama-client-core/src/commonMain/kotlin/com/tddworks/ollama/api/OllamaModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import kotlin.jvm.JvmInline
88
value class OllamaModel(val value: String) {
99
companion object {
1010
val LLAMA2 = OllamaModel("llama2")
11+
val LLAMA3 = OllamaModel("llama3")
1112
val CODE_LLAMA = OllamaModel("codellama")
1213
val MISTRAL = OllamaModel("mistral")
1314
val availableModels = listOf(LLAMA2, CODE_LLAMA, MISTRAL)

ollama-client/ollama-client-core/src/jvmTest/kotlin/com/tddworks/ollama/api/OllamaModelTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class OllamaModelTest {
77

88
@Test
99
fun `should return correct latest API model name`() {
10+
assertEquals("llama3", OllamaModel.LLAMA3.value)
1011
assertEquals("llama2", OllamaModel.LLAMA2.value)
1112
assertEquals("codellama", OllamaModel.CODE_LLAMA.value)
1213
assertEquals("mistral", OllamaModel.MISTRAL.value)

0 commit comments

Comments
 (0)