Skip to content

Commit

Permalink
fix(vertexai): fix the url in the service not available error (#13547)
Browse files Browse the repository at this point in the history
* fix the url in the service not available error

* Update packages/firebase_vertexai/firebase_vertexai/lib/src/error.dart

Co-authored-by: Nate Bosch <[email protected]>

---------

Co-authored-by: Nate Bosch <[email protected]>
  • Loading branch information
cynthiajoan and natebosch authored Oct 29, 2024
1 parent 07eb25f commit a8bfebd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,16 @@ final class ServiceApiNotEnabled implements VertexAIException {
'The Vertex AI in Firebase SDK requires the Vertex AI in Firebase API '
'(`firebasevertexai.googleapis.com`) to be enabled in your Firebase project. Enable this API '
'by visiting the Firebase Console at '
'https://console.firebase.google.com/$_projectId/genai '
'https://console.firebase.google.com/project/$_id/genai '
'and clicking "Get started". If you enabled this API recently, wait a few minutes for the '
'action to propagate to our systems and then retry.';

@override
String toString() => message;

String get _id {
return _projectId.replaceAll('projects/', '');
}
}

/// Exception thrown when the quota is exceeded.
Expand Down

0 comments on commit a8bfebd

Please sign in to comment.