File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ public PredictionServiceClient getPredictionServiceRestClient() throws IOExcepti
336
336
public LlmUtilityServiceClient getLlmUtilityClient () throws IOException {
337
337
if (llmUtilityClient == null ) {
338
338
LlmUtilityServiceSettings .Builder settingsBuilder = LlmUtilityServiceSettings .newBuilder ();
339
- settingsBuilder .setEndpoint (String .format ("%s-aiplatform.googleapis.com :443" , this .location ));
339
+ settingsBuilder .setEndpoint (String .format ("%s:443" , this .apiEndpoint ));
340
340
if (this .credentialsProvider != null ) {
341
341
settingsBuilder .setCredentialsProvider (this .credentialsProvider );
342
342
}
@@ -370,7 +370,7 @@ public LlmUtilityServiceClient getLlmUtilityRestClient() throws IOException {
370
370
if (llmUtilityRestClient == null ) {
371
371
LlmUtilityServiceSettings .Builder settingsBuilder =
372
372
LlmUtilityServiceSettings .newHttpJsonBuilder ();
373
- settingsBuilder .setEndpoint (String .format ("%s-aiplatform.googleapis.com :443" , this .location ));
373
+ settingsBuilder .setEndpoint (String .format ("%s:443" , this .apiEndpoint ));
374
374
if (this .credentialsProvider != null ) {
375
375
settingsBuilder .setCredentialsProvider (this .credentialsProvider );
376
376
}
You can’t perform that action at this time.
0 commit comments