File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
FirebaseAI/Sources/Types/Internal/Live Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -309,10 +309,9 @@ actor LiveSessionService {
309
309
/// Will apply the required app check and auth headers, as the backend expects them.
310
310
private nonisolated func createWebsocket( ) async throws -> AsyncWebSocket {
311
311
let host = apiConfig. service. endpoint. rawValue. withoutPrefix ( " https:// " )
312
- // TODO: (b/448722577) Set a location based on the api config
313
312
let urlString = switch apiConfig. service {
314
313
case . vertexAI:
315
- " wss:// \( host) /ws/google.firebase.vertexai.v1beta.LlmBidiService/BidiGenerateContent/locations/us-central1 "
314
+ " wss:// \( host) /ws/google.firebase.vertexai.v1beta.LlmBidiService/BidiGenerateContent/locations/ \( apiConfig . location ?? " us-central1 " ) "
316
315
case . googleAI:
317
316
" wss:// \( host) /ws/google.firebase.vertexai.v1beta.GenerativeService/BidiGenerateContent "
318
317
}
You can’t perform that action at this time.
0 commit comments