Skip to content

Commit f8c16fd

Browse files
committed
Fix the ML put trained model API spec
Built in models like ELSER do not require an inference_config be specified. elastic#2098 adjusted the spec to reflect this in one place, but not in the put trained model API spec. This PR completes the change.
1 parent 9846f82 commit f8c16fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

specification/ml/put_trained_model/MlPutTrainedModelRequest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ export interface Request extends RequestBase {
6565
/**
6666
* The default configuration for inference. This can be either a regression
6767
* or classification configuration. It must match the underlying
68-
* definition.trained_model's target_type.
68+
* definition.trained_model's target_type. For pre-packaged models such as
69+
* ELSER the config is not required.
6970
*/
70-
inference_config: InferenceConfigCreateContainer
71+
inference_config?: InferenceConfigCreateContainer
7172
/**
7273
* The input field names for the model definition.
7374
*/

0 commit comments

Comments
 (0)