Skip to content

Commit

Permalink
Signed-off-by: yimingl9 <[email protected]>
Browse files Browse the repository at this point in the history
Modify request
  • Loading branch information
plzdoo committed Oct 24, 2023
1 parent 0e4d25b commit 6b981a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensearch_py_ml/ml_commons/ml_commons_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def generate_embedding(self, model_id: str, sentences: List[str]) -> object:

def predict(self, model_id: str, algo_name: str, input_json):

API_URL = f"{ML_BASE_URI}/_predict/{algo_name}/{model_id}/_deploy"
API_URL = f"{ML_BASE_URI}/_predict/{algo_name}/{model_id}"

if isinstance(input_json, str):
try:
Expand Down

0 comments on commit 6b981a8

Please sign in to comment.