Skip to content

Commit

Permalink
Update plugin/src/test/java/org/opensearch/ml/rest/MLCommonsRestTestC…
Browse files Browse the repository at this point in the history
…ase.java

Co-authored-by: Yaliang Wu <ylwu@amazon.com>
Signed-off-by: zane-neo <zaniu@amazon.com>
  • Loading branch information
zane-neo and ylwu-amzn authored Jun 11, 2024
1 parent 59fcffb commit 148c25f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ public Map predictTextEmbedding(String modelId) throws IOException {
return result;
}

public Map predictRemoteModel(String modelId, MLInput input) throws IOException {
public Map predictTextEmbeddingModel(String modelId, MLInput input) throws IOException {
String requestBody = TestHelper.toJsonString(input);
Response response = TestHelper
.makeRequest(client(), "POST", "/_plugins/_ml/_predict/TEXT_EMBEDDING/" + modelId, null, requestBody, null);
Expand Down

0 comments on commit 148c25f

Please sign in to comment.