Skip to content

Commit f4649cd

Browse files
authored
Update headers to track vertex ai/developer usage in kotlin (#6944)
This change is required to track the usage of vertex ai/developer api in kotlin. This change adds a suffix to the version value in the headers we send to the backend (This will mainly distinguish between the 16.0.0 versions from the old sdk and the new one)
1 parent 7b1855d commit f4649cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/GenerativeModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal constructor(
8484
apiKey,
8585
modelName,
8686
requestOptions,
87-
"gl-kotlin/${KotlinVersion.CURRENT} fire/${BuildConfig.VERSION_NAME}",
87+
"gl-kotlin/${KotlinVersion.CURRENT}-ai fire/${BuildConfig.VERSION_NAME}",
8888
firebaseApp,
8989
AppCheckHeaderProvider(TAG, appCheckTokenProvider, internalAuthProvider),
9090
),

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/ImagenModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ internal constructor(
6565
apiKey,
6666
modelName,
6767
requestOptions,
68-
"gl-kotlin/${KotlinVersion.CURRENT} fire/${BuildConfig.VERSION_NAME}",
68+
"gl-kotlin/${KotlinVersion.CURRENT}-ai fire/${BuildConfig.VERSION_NAME}",
6969
firebaseApp,
7070
AppCheckHeaderProvider(TAG, appCheckTokenProvider, internalAuthProvider),
7171
),

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/LiveGenerativeModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ internal constructor(
8383
apiKey,
8484
modelName,
8585
requestOptions,
86-
"gl-kotlin/${KotlinVersion.CURRENT} fire/${BuildConfig.VERSION_NAME}",
86+
"gl-kotlin/${KotlinVersion.CURRENT}-ai fire/${BuildConfig.VERSION_NAME}",
8787
firebaseApp,
8888
AppCheckHeaderProvider(TAG, appCheckTokenProvider, internalAuthProvider),
8989
),

0 commit comments

Comments
 (0)