Skip to content

Commit 6c28594

Browse files
author
David Motsonashvili
committed
fixed up docs
1 parent 4b9bd3a commit 6c28594

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/FirebaseAI.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ internal constructor(
212212
}
213213

214214
public companion object {
215-
/** The [FirebaseAI] instance for the default [FirebaseApp] */
215+
/** The [FirebaseAI] instance for the default [FirebaseApp] using the Google AI Backend. */
216216
@JvmStatic
217217
public val instance: FirebaseAI
218218
get() = getInstance(backend = GenerativeBackend.googleAI())
@@ -232,7 +232,7 @@ internal constructor(
232232
return multiResourceComponent.get(backend)
233233
}
234234

235-
/** Returns the [FirebaseAI] instance for the provided [FirebaseApp] */
235+
/** The [FirebaseAI] instance for the provided [FirebaseApp] using the Google AI Backend. */
236236
@JvmStatic public fun getInstance(app: FirebaseApp): FirebaseAI = getInstance(app)
237237

238238
private const val GEMINI_MODEL_NAME_PREFIX = "gemini-"
@@ -243,14 +243,14 @@ internal constructor(
243243
}
244244
}
245245

246-
/** Returns the [FirebaseAI] instance of the default [FirebaseApp]. */
246+
/** The [FirebaseAI] instance for the default [FirebaseApp] using the Google AI Backend. */
247247
public val Firebase.ai: FirebaseAI
248248
get() = FirebaseAI.instance
249249

250250
/**
251251
* Returns the [FirebaseAI] instance for the provided [FirebaseApp] and [backend].
252252
*
253-
* @param backend the backend reference to make generative AI requests to. .
253+
* @param backend the backend reference to make generative AI requests to.
254254
*/
255255
public fun Firebase.ai(
256256
app: FirebaseApp = Firebase.app,

firebase-ai/src/main/kotlin/com/google/firebase/ai/FirebaseAIMultiResourceComponent.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ internal class FirebaseAIMultiResourceComponent(
3737
private val internalAuthProvider: Provider<InternalAuthProvider>,
3838
) {
3939

40-
@GuardedBy("this") private val aiInstances: MutableMap<String, FirebaseAI> = mutableMapOf()
40+
@GuardedBy("this") private val instances: MutableMap<String, FirebaseAI> = mutableMapOf()
4141

4242
fun get(backend: GenerativeBackend): FirebaseAI =
4343
synchronized(this) {
44-
aiInstances[backend.location]
44+
instances[backend.location]
4545
?: FirebaseAI(
4646
app,
4747
backend,
4848
blockingDispatcher,
4949
appCheckProvider,
5050
internalAuthProvider,
5151
)
52-
.also { aiInstances[backend.location] = it }
52+
.also { instances[backend.location] = it }
5353
}
5454
}

0 commit comments

Comments
 (0)