Skip to content

Commit 2cadfba

Browse files
committed
Use api config version
1 parent 839378e commit 2cadfba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAI/Sources/Types/Internal/Live/LiveSessionService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ actor LiveSessionService {
311311
let host = apiConfig.service.endpoint.rawValue.withoutPrefix("https://")
312312
let urlString = switch apiConfig.service {
313313
case let .vertexAI(_, location: location):
314-
"wss://\(host)/ws/google.firebase.vertexai.v1beta.LlmBidiService/BidiGenerateContent/locations/\(location)"
314+
"wss://\(host)/ws/google.firebase.vertexai.\(apiConfig.version.rawValue).LlmBidiService/BidiGenerateContent/locations/\(location)"
315315
case .googleAI:
316-
"wss://\(host)/ws/google.firebase.vertexai.v1beta.GenerativeService/BidiGenerateContent"
316+
"wss://\(host)/ws/google.firebase.vertexai.\(apiConfig.version.rawValue).GenerativeService/BidiGenerateContent"
317317
}
318318
guard let url = URL(string: urlString) else {
319319
throw NSError(

0 commit comments

Comments
 (0)