E5FC Fix vertexAI authorization header by rlazo · Pull Request #6400 · firebase/firebase-android-sdk · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions firebase-vertexai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Unreleased

* [fixed] Fixed issue where authorization headers weren't correctly formatted and were ignored by the backend. (#6400)

# 16.0.0
* [feature] {{firebase_vertexai}} is now Generally Available (GA) and can be
Expand Down Expand Up @@ -52,4 +52,3 @@
* [feature] Added support for `responseMimeType` in `GenerationConfig`.
* [changed] Renamed `GoogleGenerativeAIException` to `FirebaseVertexAIException`.
* [changed] Updated the KDocs for various classes and functions.

Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ internal constructor(
try {
val token = internalAuthProvider.getAccessToken(false).await()

headers["Authorization"] = token.token!!
headers["Authorization"] = "Firebase ${token.token!!}"
} catch (e: Exception) {
Log.w(TAG, "Error getting Auth token ", e)
}
Expand Down
Loading
0