We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a35df6 commit b50cc43Copy full SHA for b50cc43
composeApp/src/iosMain/kotlin/dev/johnoreilly/vertexai/di/Koin.ios.kt
@@ -0,0 +1,16 @@
1
+package dev.johnoreilly.vertexai.di
2
+
3
+import dev.johnoreilly.vertexai.GenerativeModel
4
+import org.koin.core.context.startKoin
5
+import org.koin.dsl.module
6
7
8
+fun initialiseKoin(generativeModel: GenerativeModel) {
9
+ startKoin {
10
+ modules(
11
+ commonModule,
12
+ module { single<GenerativeModel> { generativeModel } }
13
+ )
14
+ }
15
16
+}
0 commit comments