Skip to content

Commit a6525e7

Browse files
committed
meorg_client/client.py: Send data as json for model output create
Upstream has removed the conversion from form-urlencoded payloads to json payloads, causing the `model output create` command to fail. This fixes this by sending the data as json.
1 parent 6311596 commit a6525e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meorg_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def model_output_create(
476476
return self._make_request(
477477
method=mcc.HTTP_POST,
478478
endpoint=endpoints.MODEL_OUTPUT_CREATE,
479-
data=dict(model=mod_prof_id, name=name) | config_params,
479+
json=dict(model=mod_prof_id, name=name) | config_params,
480480
)
481481

482482
def model_output_query(self, model_id: str) -> Union[dict, requests.Response]:

0 commit comments

Comments
 (0)