File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
firebase-ai/src/main/kotlin/com/google/firebase/ai/common Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -164,9 +164,7 @@ internal constructor(
164164 " wss://firebasevertexai.googleapis.com/ws/google.firebase.vertexai.v1beta.LlmBidiService/BidiGenerateContent/locations/$location ?key=$key "
165165
166166 suspend fun getWebSocketSession (location : String ): ClientWebSocketSession =
167- client.webSocketSession(getBidiEndpoint(location)) {
168- applyCommonHeaders()
169- }
167+ client.webSocketSession(getBidiEndpoint(location)) { applyCommonHeaders() }
170168
171169 fun generateContentStream (
172170 request : GenerateContentRequest
@@ -208,7 +206,7 @@ internal constructor(
208206 is CountTokensRequest -> setBody<CountTokensRequest >(request)
209207 is GenerateImageRequest -> setBody<GenerateImageRequest >(request)
210208 }
211- applyCommonHeaders()
209+ applyCommonHeaders()
212210 }
213211
214212 private suspend fun HttpRequestBuilder.applyHeaderProvider () {
You can’t perform that action at this time.
0 commit comments