Skip to content

Commit a14a2c5

Browse files
authored
[Vertex AI] Update log message when API is not enabled (#13733)
1 parent 35b001e commit a14a2c5

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

FirebaseVertexAI/Sources/GenerativeAIService.swift

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -266,21 +266,22 @@ struct GenerativeAIService {
266266
// TODO(andrewheard): Remove this check after the Vertex AI in Firebase API launch.
267267
if error.isFirebaseMLServiceDisabledError() {
268268
VertexLog.error(code: .vertexAIInFirebaseAPIDisabled, """
269-
The Vertex AI for Firebase SDK requires the Firebase ML API `firebaseml.googleapis.com` to \
270-
be enabled for your project. Get started in the Firebase Console \
271-
(https://console.firebase.google.com/project/\(projectID)/genai/vertex) or verify that the \
272-
API is enabled in the Google Cloud Console \
273-
(https://console.developers.google.com/apis/api/firebaseml.googleapis.com/overview?project=\
274-
\(projectID)).
269+
The Vertex AI in Firebase SDK requires the Firebase ML API (`firebaseml.googleapis.com`) to \
270+
be enabled in your Firebase project. Enable this API by visiting the Firebase Console at
271+
https://console.firebase.google.com/project/\(projectID)/genai/ and clicking "Get started". \
272+
If you enabled this API recently, wait a few minutes for the action to propagate to our \
273+
systems and then retry.
275274
""")
276275
}
277276

278277
if error.isVertexAIInFirebaseServiceDisabledError() {
279278
VertexLog.error(code: .vertexAIInFirebaseAPIDisabled, """
280-
The Vertex AI for Firebase SDK requires the Firebase Vertex AI API \
281-
`firebasevertexai.googleapis.com` to be enabled for your project. Get started by visiting \
282-
the Firebase Console at: \
283-
https://console.firebase.google.com/project/\(projectID)/genai/vertex
279+
The Vertex AI in Firebase SDK requires the Vertex AI in Firebase API \
280+
(`firebasevertexai.googleapis.com`) to be enabled in your Firebase project. Enable this API \
281+
by visiting the Firebase Console at
282+
https://console.firebase.google.com/project/\(projectID)/genai/ and clicking "Get started". \
283+
If you enabled this API recently, wait a few minutes for the action to propagate to our \
284+
systems and then retry.
284285
""")
285286
}
286287
}

0 commit comments

Comments
 (0)