From 2a07be6c81dc9f2d0a88bf81514290fd8bc26742 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Mon, 13 May 2024 07:37:42 -0700 Subject: [PATCH] [vertex-ai] more accurate location error message (#12948) --- FirebaseVertexAI/Sources/VertexAI.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/FirebaseVertexAI/Sources/VertexAI.swift b/FirebaseVertexAI/Sources/VertexAI.swift index d11ddea579dc..3be9043d07cb 100644 --- a/FirebaseVertexAI/Sources/VertexAI.swift +++ b/FirebaseVertexAI/Sources/VertexAI.swift @@ -45,7 +45,8 @@ public class VertexAI: NSObject { /// - Parameters: /// - app: The custom `FirebaseApp` used for initialization. /// - location: The region identifier, defaulting to `us-central1`; see - /// [Vertex AI locations](https://firebase.google.com/docs/vertex-ai/locations?platform=ios) + /// [Vertex AI locations] + /// (https://firebase.google.com/docs/vertex-ai/locations?platform=ios#available-locations) /// for a list of supported locations. /// - Returns: A `VertexAI` instance, configured with the custom `FirebaseApp`. public static func vertexAI(app: FirebaseApp, location: String = "us-central1") -> VertexAI { @@ -132,8 +133,8 @@ public class VertexAI: NSObject { .allSatisfy({ !$0.isWhitespace && !$0.isNewline && $0 != "/" }) else { fatalError(""" Invalid location "\(location)" specified; see \ - https://firebase.google.com/docs/vertex-ai/locations?platform=ios for a list of available \ - locations. + https://firebase.google.com/docs/vertex-ai/locations?platform=ios#available-locations \ + for a list of available locations. """) }