Skip to content

Commit 7ff6bf5

Browse files
authored
[ML] Update last usages of model_id to inference_id (#107133) (#107149)
1 parent 02c93e1 commit 7ff6bf5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/reference/inference/put-inference.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ or if you want to use non-NLP models, use the <<ml-df-trained-models-apis>>.
1818
[[put-inference-api-request]]
1919
==== {api-request-title}
2020

21-
`PUT /_inference/<task_type>/<model_id>`
21+
`PUT /_inference/<task_type>/<inference_id>`
2222

2323

2424
[discrete]

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/inference/action/PutInferenceModelAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void writeTo(StreamOutput out) throws IOException {
8686
public ActionRequestValidationException validate() {
8787
ActionRequestValidationException validationException = new ActionRequestValidationException();
8888
if (MlStrings.isValidId(this.inferenceEntityId) == false) {
89-
validationException.addValidationError(Messages.getMessage(Messages.INVALID_ID, "model_id", this.inferenceEntityId));
89+
validationException.addValidationError(Messages.getMessage(Messages.INVALID_ID, "inference_id", this.inferenceEntityId));
9090
}
9191

9292
if (validationException.validationErrors().isEmpty() == false) {

0 commit comments

Comments
 (0)