Skip to content

Commit

Permalink
chore(di): Updated the function name iniOllama to initOllama for …
Browse files Browse the repository at this point in the history
…consistency.
  • Loading branch information
hanrw committed Jun 9, 2024
1 parent 25e5ccb commit 57438f3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.koin.core.qualifier.named
import org.koin.dsl.KoinAppDeclaration
import org.koin.dsl.module

fun iniOllama(config: OllamaConfig, appDeclaration: KoinAppDeclaration = {}): Ollama {
fun initOllama(config: OllamaConfig, appDeclaration: KoinAppDeclaration = {}): Ollama {
return startKoin {
appDeclaration()
modules(commonModule(false) + ollamaModules(config))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.tddworks.ollama.api

import com.tddworks.di.getInstance
import com.tddworks.ollama.di.iniOllama
import com.tddworks.ollama.di.initOllama
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
Expand All @@ -11,7 +11,7 @@ class OllamaTestTest : AutoCloseKoinTest() {

@BeforeEach
fun setUp() {
iniOllama(
initOllama(
config = OllamaConfig(
baseUrl = { "127.0.0.1" },
port = { 8080 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.tddworks.ollama.api.Ollama
import com.tddworks.ollama.api.OllamaConfig
import com.tddworks.ollama.api.chat.OllamaChatMessage
import com.tddworks.ollama.api.chat.OllamaChatRequest
import com.tddworks.ollama.di.iniOllama
import com.tddworks.ollama.di.initOllama
import kotlinx.coroutines.test.runTest
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNotNull
Expand All @@ -19,7 +19,7 @@ class DefaultOllamaChatITest : AutoCloseKoinTest() {

@BeforeEach
fun setUp() {
iniOllama(
initOllama(
config = OllamaConfig(
protocol = { "http" },
baseUrl = { "localhost" },
Expand Down
Empty file.

This file was deleted.

0 comments on commit 57438f3

Please sign in to comment.