Skip to content

Commit

Permalink
Fix the ML put trained model API spec
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
droberts195 committed Jul 5, 2023
1 parent 9846f82 commit f8c16fd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ export interface Request extends RequestBase {
/**
* The default configuration for inference. This can be either a regression
* or classification configuration. It must match the underlying
* definition.trained_model's target_type.
* definition.trained_model's target_type. For pre-packaged models such as
* ELSER the config is not required.
*/
inference_config: InferenceConfigCreateContainer
inference_config?: InferenceConfigCreateContainer
/**
* The input field names for the model definition.
*/
Expand Down

0 comments on commit f8c16fd

Please sign in to comment.