Skip to content

Commit

Permalink
fix(firestore-semantic-search): correct apiEndpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dackers86 authored Aug 11, 2023
2 parents 07942e0 + 2e3efe5 commit f51daf7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ const endpoint = `projects/${config.projectId}/locations/${config.location}/publ
const initializePaLMClient = async () => {
const t0 = performance.now();

// here location is hard-coded, following https://cloud.google.com/vertex-ai/docs/generative-ai/embeddings/get-text-embeddings#generative-ai-get-text-embedding-nodejs
const clientOptions = {
apiEndpoint: `${config.location}-prediction-aiplatform.googleapis.com`,
apiEndpoint: `us-central1-aiplatform.googleapis.com`,
};

client = new v1.PredictionServiceClient(clientOptions);
Expand Down

0 comments on commit f51daf7

Please sign in to comment.