Kaynağa Gözat

[vertex-ai] more accurate location error message (#12948)

Paul Beusterien 1 yıl önce
ebeveyn
işleme
9d17b500cd
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4 3
      FirebaseVertexAI/Sources/VertexAI.swift

+ 4 - 3
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.
       """)
     }