Skip to content

Commit e15e814

Browse files
committed
small fixes
1 parent a5c12e8 commit e15e814

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/common/APIController.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,11 @@ internal constructor(
167167

168168
private fun getBidiEndpoint(location: String): String =
169169
when (backend?.backend) {
170-
GenerativeBackendEnum.VERTEX_AI ->
170+
GenerativeBackendEnum.VERTEX_AI,
171+
null ->
171172
"wss://firebasevertexai.googleapis.com/ws/google.firebase.vertexai.v1beta.LlmBidiService/BidiGenerateContent/locations/$location?key=$key"
172173
GenerativeBackendEnum.GOOGLE_AI ->
173174
"wss://firebasevertexai.googleapis.com//ws/google.firebase.vertexai.v1beta.GenerativeService/BidiGenerateContent?key=$key"
174-
null ->
175-
"wss://firebasevertexai.googleapis.com/ws/google.firebase.vertexai.v1beta.LlmBidiService/BidiGenerateContent/locations/$location?key=$key"
176175
}
177176

178177
suspend fun getWebSocketSession(location: String): ClientWebSocketSession =

0 commit comments

Comments
 (0)