Skip to content

Commit

Permalink
[ML] Update last usages of model_id to inference_id (#107133) (#107149)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle authored Apr 5, 2024
1 parent 02c93e1 commit 7ff6bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference/inference/put-inference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ or if you want to use non-NLP models, use the <<ml-df-trained-models-apis>>.
[[put-inference-api-request]]
==== {api-request-title}

`PUT /_inference/<task_type>/<model_id>`
`PUT /_inference/<task_type>/<inference_id>`


[discrete]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void writeTo(StreamOutput out) throws IOException {
public ActionRequestValidationException validate() {
ActionRequestValidationException validationException = new ActionRequestValidationException();
if (MlStrings.isValidId(this.inferenceEntityId) == false) {
validationException.addValidationError(Messages.getMessage(Messages.INVALID_ID, "model_id", this.inferenceEntityId));
validationException.addValidationError(Messages.getMessage(Messages.INVALID_ID, "inference_id", this.inferenceEntityId));
}

if (validationException.validationErrors().isEmpty() == false) {
Expand Down

0 comments on commit 7ff6bf5

Please sign in to comment.