diff --git a/ai-platform/snippets/predict-custom-trained-model.js b/ai-platform/snippets/predict-custom-trained-model.js index 26a053af94..adc046dd49 100644 --- a/ai-platform/snippets/predict-custom-trained-model.js +++ b/ai-platform/snippets/predict-custom-trained-model.js @@ -36,7 +36,7 @@ async function main(filename, endpointId, project, location = 'us-central1') { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client diff --git a/ai-platform/snippets/predict-image-classification.js b/ai-platform/snippets/predict-image-classification.js index 862af3ca0a..68d4963717 100644 --- a/ai-platform/snippets/predict-image-classification.js +++ b/ai-platform/snippets/predict-image-classification.js @@ -39,7 +39,7 @@ function main(filename, endpointId, project, location = 'us-central1') { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client diff --git a/ai-platform/snippets/predict-image-object-detection.js b/ai-platform/snippets/predict-image-object-detection.js index 5bf4704c9c..638c8883d5 100644 --- a/ai-platform/snippets/predict-image-object-detection.js +++ b/ai-platform/snippets/predict-image-object-detection.js @@ -39,7 +39,7 @@ async function main(filename, endpointId, project, location = 'us-central1') { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client diff --git a/ai-platform/snippets/predict-tabular-classification.js b/ai-platform/snippets/predict-tabular-classification.js index 7680a17dd4..c5d4bc4b1f 100644 --- a/ai-platform/snippets/predict-tabular-classification.js +++ b/ai-platform/snippets/predict-tabular-classification.js @@ -39,7 +39,7 @@ async function main(endpointId, project, location = 'us-central1') { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client diff --git a/ai-platform/snippets/predict-tabular-regression.js b/ai-platform/snippets/predict-tabular-regression.js index 14921253eb..bd600ae493 100644 --- a/ai-platform/snippets/predict-tabular-regression.js +++ b/ai-platform/snippets/predict-tabular-regression.js @@ -39,7 +39,7 @@ async function main(endpointId, project, location = 'us-central1') { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client diff --git a/ai-platform/snippets/predict-text-classification.js b/ai-platform/snippets/predict-text-classification.js index bb28f86f8c..9a589269df 100644 --- a/ai-platform/snippets/predict-text-classification.js +++ b/ai-platform/snippets/predict-text-classification.js @@ -38,7 +38,7 @@ async function main(text, endpointId, project, location) { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client diff --git a/ai-platform/snippets/predict-text-entity-extraction.js b/ai-platform/snippets/predict-text-entity-extraction.js index 156e0e25d7..81742dcd3c 100644 --- a/ai-platform/snippets/predict-text-entity-extraction.js +++ b/ai-platform/snippets/predict-text-entity-extraction.js @@ -38,7 +38,7 @@ async function main(text, endpointId, project, location = 'us-central1') { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client diff --git a/ai-platform/snippets/predict-text-sentiment-analysis.js b/ai-platform/snippets/predict-text-sentiment-analysis.js index 813644aa10..c7db6c02db 100644 --- a/ai-platform/snippets/predict-text-sentiment-analysis.js +++ b/ai-platform/snippets/predict-text-sentiment-analysis.js @@ -38,7 +38,7 @@ async function main(text, endpointId, project, location = 'us-central1') { // Specifies the location of the api endpoint const clientOptions = { - apiEndpoint: 'us-central1-prediction-aiplatform.googleapis.com', + apiEndpoint: 'us-central1-aiplatform.googleapis.com', }; // Instantiates a client