Skip to content

Commit 054f4b9

Browse files
fix: ecs client path error.
1 parent b70936a commit 054f4b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/emd/sdk/clients/ecs_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from emd.models import Model
1919
from emd.constants import MODEL_DEFAULT_TAG
2020
from emd.utils.logger_utils import get_logger
21+
from emd.utils.framework_utils import get_model_specific_path
2122
import requests
2223

2324

@@ -114,7 +115,8 @@ def validate_environment(cls, values: Dict) -> Dict:
114115

115116
def invoke(self,pyload:dict):
116117
stream = pyload.get('stream', False)
117-
url = f"{self.base_url}/invocations"
118+
model_specific_invocations_path = get_model_specific_path(self.model_id, self.model_tag, "invocations")
119+
url = f"{self.base_url}{model_specific_invocations_path}"
118120
if stream:
119121
response = requests.post(
120122
url,

0 commit comments

Comments
 (0)