Skip to content

Commit 4dba7e1

Browse files
committed
PR review comments
1 parent f007d51 commit 4dba7e1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ads/aqua/extension/deployment_handler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,12 @@ def get(self, model_deployment_id):
393393
"""
394394

395395
self.set_header("Content-Type", "application/json")
396-
396+
endpoint: str = ""
397397
model_deployment = AquaDeploymentApp().get(model_deployment_id)
398-
endpoint = model_deployment.endpoint + "/predict/v1/models"
398+
if model_deployment.endpoint.endswith("/"):
399+
endpoint = model_deployment.endpoint + "predict/v1/models"
400+
else:
401+
endpoint = model_deployment.endpoint + "/predict/v1/models"
399402
aqua_client = Client(endpoint=endpoint)
400403
try:
401404
list_model_result = aqua_client.list_models()

0 commit comments

Comments
 (0)