diff --git a/.changeset/six-toys-chew.md b/.changeset/six-toys-chew.md new file mode 100644 index 00000000000..b15e6046724 --- /dev/null +++ b/.changeset/six-toys-chew.md @@ -0,0 +1,5 @@ +--- +'@firebase/vertexai': patch +--- + +Remove indentation in VertexAI API Not Enabled error diff --git a/packages/vertexai/src/requests/request.ts b/packages/vertexai/src/requests/request.ts index edb894d7f76..3449be17d42 100644 --- a/packages/vertexai/src/requests/request.ts +++ b/packages/vertexai/src/requests/request.ts @@ -166,13 +166,13 @@ export async function makeRequest( ) { throw new VertexAIError( VertexAIErrorCode.API_NOT_ENABLED, - `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/${url.apiSettings.project}/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.`, + `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/${url.apiSettings.project}/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.`, { status: response.status, statusText: response.statusText,