Content-Length: 277255 | pFad | https://github.com/googleapis/google-cloud-java/commit/b4ec2449f092e6dca1c9cd169421311579b67777

C6 fix: [vertexai] make setApiEndpoint effective for LlmUtilityServiceCl… · googleapis/google-cloud-java@b4ec244 · GitHub
Skip to content

Commit b4ec244

Browse files
copybara-service[bot]Zhenyi Qi
and
Zhenyi Qi
authored
fix: [vertexai] make setApiEndpoint effective for LlmUtilityServiceClient. (#10385)
PiperOrigin-RevId: 607113154 Co-authored-by: Zhenyi Qi <zhenyiqi@google.com>
1 parent 651ba65 commit b4ec244

File tree

1 file changed

+2
-2
lines changed
  • java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai

1 file changed

+2
-2
lines changed

java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/VertexAI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public PredictionServiceClient getPredictionServiceRestClient() throws IOExcepti
336336
public LlmUtilityServiceClient getLlmUtilityClient() throws IOException {
337337
if (llmUtilityClient == null) {
338338
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));
340340
if (this.credentialsProvider != null) {
341341
settingsBuilder.setCredentialsProvider(this.credentialsProvider);
342342
}
@@ -370,7 +370,7 @@ public LlmUtilityServiceClient getLlmUtilityRestClient() throws IOException {
370370
if (llmUtilityRestClient == null) {
371371
LlmUtilityServiceSettings.Builder settingsBuilder =
372372
LlmUtilityServiceSettings.newHttpJsonBuilder();
373-
settingsBuilder.setEndpoint(String.format("%s-aiplatform.googleapis.com:443", this.location));
373+
settingsBuilder.setEndpoint(String.format("%s:443", this.apiEndpoint));
374374
if (this.credentialsProvider != null) {
375375
settingsBuilder.setCredentialsProvider(this.credentialsProvider);
376376
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/google-cloud-java/commit/b4ec2449f092e6dca1c9cd169421311579b67777

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy