Closed jeffvestal closed 1 month ago
Describe the feature:
Elasticsearch version (bin/elasticsearch --version): 8.13.2
bin/elasticsearch --version
elasticsearch-py version (elasticsearch.__versionstr__): 8.13.2 & serverless
elasticsearch-py
elasticsearch.__versionstr__
Description of the problem including expected versus actual behavior:
To update a trained model allocations, the main docs have the example:
resp = client.ml.update_trained_model_deployment( model_id="elastic__distilbert-base-uncased-finetuned-conll03-english", body={"number_of_allocations": 4}, ) print(resp)
Steps to reproduce: The ml client doesn't to have that actual function.
<ipython-input-24-790add7c67c1> in <cell line: 1>() ----> 1 resp = es.ml.update_trained_model_deployment( 2 model_id="my-elser-model", 3 body={ 4 "number_of_allocations": 1 5 }, AttributeError: 'MlClient' object has no attribute '<ipython-input-24-790add7c67c1> in <cell line: 1>() ----> 1 resp = es.ml.update_trained_model_deployment( 2 model_id="my-elser-model", 3 body={ 4 "number_of_allocations": 1 5 }, AttributeError: 'MlClient' object has no attribute 'update_trained_model_deployment''
Closed in https://github.com/elastic/elasticsearch-py/pull/2568, thanks.
Describe the feature:
Elasticsearch version (
bin/elasticsearch --version
): 8.13.2elasticsearch-py
version (elasticsearch.__versionstr__
):8.13.2 & serverless
Description of the problem including expected versus actual behavior:
To update a trained model allocations, the main docs have the example:
Steps to reproduce: The ml client doesn't to have that actual function.