Skip to content

Commit e407519

Browse files
yinghsienwucopybara-github
authored andcommitted
chore: internal fix
PiperOrigin-RevId: 557297465
1 parent f8f2b9c commit e407519

File tree

1 file changed

+3
-3
lines changed
  • google/cloud/aiplatform/constants

1 file changed

+3
-3
lines changed

google/cloud/aiplatform/constants/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
17+
import os
1818
from google.cloud.aiplatform import version as aiplatform_version
1919

2020

@@ -56,8 +56,8 @@
5656
"us-west4",
5757
}
5858
)
59-
60-
API_BASE_PATH = "aiplatform.googleapis.com"
59+
# This env variable injection is for testing, but not considered to be a public API.
60+
API_BASE_PATH = os.environ.get("_VERTEX_API_BASE_PATH") or "aiplatform.googleapis.com"
6161
PREDICTION_API_BASE_PATH = API_BASE_PATH
6262

6363
# Batch Prediction

0 commit comments

Comments
 (0)