Skip to content

Commit

Permalink
Update packages/firebase_vertexai/firebase_vertexai/lib/src/error.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Nate Bosch <[email protected]>
  • Loading branch information
cynthiajoan and natebosch authored Oct 23, 2024
1 parent deaf11d commit 28db324
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ 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/project/${_getID()}/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 _getID() {
String get _id {
return _projectId.replaceAll('projects/', '');
}
}
Expand Down

0 comments on commit 28db324

Please sign in to comment.