Skip to content

Commit 3cddb09

Browse files
authoredMay 3, 2024
feat: create Vertex AI in Firebase snippets (#548)
* Initial Commit of the Vertex AI snippets app * add snippets for generateContent and chat * use viewModelScope instead of suspend functions * create countTokens snippets * add model parameters and safety settings snippets * chore: use version alpha01 * use Log.d() instead of print() * feat: add java snippets * remove wildcard imports * add totalBillableCharacters to countTokens * chore: update to alpha02 * feat: add text and video snippets * chore: make vertexai compilable :) * feat: add function calling snippets * feat: add system instruction snippets * chore: bump vertexai ti alpha03 * chore: bump dependencies in version catalog * chore(vertexai): use compose compiler 1.5.13
1 parent 9d791b5 commit 3cddb09

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2075
-1
lines changed
 

‎gradle/libs.versions.toml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[versions]
2+
agp = "8.4.0"
3+
guava = "32.0.1-android"
4+
kotlin = "1.9.23"
5+
coreKtx = "1.13.1"
6+
junit = "4.13.2"
7+
junitVersion = "1.1.5"
8+
espressoCore = "3.5.1"
9+
lifecycleRuntimeKtx = "2.7.0"
10+
activityCompose = "1.9.0"
11+
composeBom = "2024.05.00"
12+
reactiveStreams = "1.0.4"
13+
vertexAI = "16.0.0-alpha03"
14+
15+
[libraries]
16+
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
17+
guava = { module = "com.google.guava:guava", version.ref = "guava" }
18+
junit = { group = "junit", name = "junit", version.ref = "junit" }
19+
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
20+
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
21+
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
22+
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
23+
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
24+
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
25+
androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
26+
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
27+
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
28+
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
29+
androidx-ui-test-junit4 = { group = "androidx.compose.ui", name = "ui-test-junit4" }
30+
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
31+
32+
# Vertex AI SDKs in Firebase
33+
firebase-vertex-ai ={ group = "com.google.firebase", name = "firebase-vertexai", version.ref = "vertexAI" }
34+
reactive-streams = { module = "org.reactivestreams:reactive-streams", version.ref = "reactiveStreams" }
35+
36+
[plugins]
37+
androidApplication = { id = "com.android.application", version.ref = "agp" }
38+
jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
39+

‎settings.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ include(":auth:app",
2424
":perf:app",
2525
":test-lab:app",
2626
":analytics:app",
27-
":installations:app"
27+
":installations:app",
28+
":vertexai:app"
2829
)
2930

0 commit comments

Comments
 (0)
Please sign in to comment.