Skip to content

Commit 1e767ec

Browse files
authored
Merge 419d83b into a75082f
2 parents a75082f + 419d83b commit 1e767ec

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.changeset/six-toys-chew.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/vertexai': patch
3+
---
4+
5+
Remove indentation in VertexAI API Not Enabled error

packages/vertexai/src/requests/request.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@ export async function makeRequest(
166166
) {
167167
throw new VertexAIError(
168168
VertexAIErrorCode.API_NOT_ENABLED,
169-
`The Vertex AI in Firebase SDK requires the Vertex AI in Firebase
170-
API ('firebasevertexai.googleapis.com') to be enabled in your
171-
Firebase project. Enable this API by visiting the Firebase Console
172-
at https://console.firebase.google.com/project/${url.apiSettings.project}/genai/
173-
and clicking "Get started". If you enabled this API recently,
174-
wait a few minutes for the action to propagate to our systems and
175-
then retry.`,
169+
`The Vertex AI in Firebase SDK requires the Vertex AI in Firebase ` +
170+
`API ('firebasevertexai.googleapis.com') to be enabled in your ` +
171+
`Firebase project. Enable this API by visiting the Firebase Console ` +
172+
`at https://console.firebase.google.com/project/${url.apiSettings.project}/genai/ ` +
173+
`and clicking "Get started". If you enabled this API recently, ` +
174+
`wait a few minutes for the action to propagate to our systems and ` +
175+
`then retry.`,
176176
{
177177
status: response.status,
178178
statusText: response.statusText,

0 commit comments

Comments
 (0)