Open rbpasker opened 4 months ago
the ML python libraries use payload as they keyword argument for the of the HTTP request. This diverges from the main OpenSearech APIs, which the keyword body, eg, Ingest:
payload
body
for example:
def create_standalone_connector(self, payoad: dict):
should be:
def create_standalone_connector(self, body: dict):
to conform
https://github.com/opensearch-project/opensearch-py-ml/blob/ec7e0235d9092cb26fe3d889d8ab7fae28dccefe/opensearch_py_ml/ml_commons/model_connector.py#L17
Makes sense, thanks for opening this @rbpasker. Care to try and fix it?
[Catch All Triage w/ 1, 2, 3]
the ML python libraries use
payload
as they keyword argument for the of the HTTP request. This diverges from the main OpenSearech APIs, which the keywordbody
, eg, Ingest:for example:
should be:
to conform
https://github.com/opensearch-project/opensearch-py-ml/blob/ec7e0235d9092cb26fe3d889d8ab7fae28dccefe/opensearch_py_ml/ml_commons/model_connector.py#L17