Skip to content

Commit 9d17b50

Browse files
authored
[vertex-ai] more accurate location error message (#12948)
1 parent bf17fcc commit 9d17b50

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

FirebaseVertexAI/Sources/VertexAI.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public class VertexAI: NSObject {
4545
/// - Parameters:
4646
/// - app: The custom `FirebaseApp` used for initialization.
4747
/// - location: The region identifier, defaulting to `us-central1`; see
48-
/// [Vertex AI locations](https://firebase.google.com/docs/vertex-ai/locations?platform=ios)
48+
/// [Vertex AI locations]
49+
/// (https://firebase.google.com/docs/vertex-ai/locations?platform=ios#available-locations)
4950
/// for a list of supported locations.
5051
/// - Returns: A `VertexAI` instance, configured with the custom `FirebaseApp`.
5152
public static func vertexAI(app: FirebaseApp, location: String = "us-central1") -> VertexAI {
@@ -132,8 +133,8 @@ public class VertexAI: NSObject {
132133
.allSatisfy({ !$0.isWhitespace && !$0.isNewline && $0 != "/" }) else {
133134
fatalError("""
134135
Invalid location "\(location)" specified; see \
135-
https://firebase.google.com/docs/vertex-ai/locations?platform=ios for a list of available \
136-
locations.
136+
https://firebase.google.com/docs/vertex-ai/locations?platform=ios#available-locations \
137+
for a list of available locations.
137138
""")
138139
}
139140

0 commit comments

Comments
 (0)