diff --git a/python/pipelines/components/vertex/component.py b/python/pipelines/components/vertex/component.py index b37f1ef1..2f396dc3 100644 --- a/python/pipelines/components/vertex/component.py +++ b/python/pipelines/components/vertex/component.py @@ -563,6 +563,19 @@ def get_tabular_model_explanation( import re from google.cloud import aiplatform + from google.api_core.gapic_v1.client_info import ClientInfo + + USER_AGENT_FEATURES = 'cloud-solutions/marketing-analytics-jumpstart-features-v1' + USER_AGENT_PROPENSITY_TRAINING = 'cloud-solutions/marketing-analytics-jumpstart-propensity-training-v1' + USER_AGENT_PROPENSITY_PREDICTION= 'cloud-solutions/marketing-analytics-jumpstart-propensity-prediction-v1' + USER_AGENT_REGRESSION_TRAINING = 'cloud-solutions/marketing-analytics-jumpstart-regression-training-v1' + USER_AGENT_REGRESSION_PREDICTION = 'cloud-solutions/marketing-analytics-jumpstart-regression-prediction-v1' + USER_AGENT_SEGMENTATION_TRAINING = 'cloud-solutions/marketing-analytics-jumpstart-segmentation-training-v1' + USER_AGENT_SEGMENTATION_PREDICTION = 'cloud-solutions/marketing-analytics-jumpstart-segmentation-prediction-v1' + USER_AGENT_VBB_TRAINING = 'cloud-solutions/marketing-analytics-jumpstart-vbb-training-v1' + USER_AGENT_VBB_EXPLANATION = 'cloud-solutions/marketing-analytics-jumpstart-vbb-explanation-v1' + + api_endpoint = "us-central1-aiplatform.googleapis.com" # The AI Platform services require regional API endpoints. client_options = {"api_endpoint": api_endpoint}