From d21c09cee2c114a2e6c9d3ed9e31ea58ce855169 Mon Sep 17 00:00:00 2001 From: TShapinsky Date: Mon, 11 Dec 2023 16:25:37 -0700 Subject: [PATCH] fix capitalization --- alfalfa_client/alfalfa_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alfalfa_client/alfalfa_client.py b/alfalfa_client/alfalfa_client.py index 199ce37..a5c7129 100644 --- a/alfalfa_client/alfalfa_client.py +++ b/alfalfa_client/alfalfa_client.py @@ -157,7 +157,7 @@ def upload_model(self, model_path: os.PathLike) -> ModelID: response_body = response.json()["payload"] post_url = response_body['url'] - model_id = response_body['modelID'] + model_id = response_body['modelId'] form_data = OrderedDict(response_body['fields']) form_data['file'] = ('filename', open(model_path, 'rb')) @@ -176,7 +176,7 @@ def create_run_from_model(self, model_id: Union[ModelID, List[ModelID]], wait_fo :returns: id of run created""" response = self._request(f"models/{model_id}/createRun") - run_id = response.json()["payload"]["runID"] + run_id = response.json()["payload"]["runId"] if wait_for_status: self.wait(run_id, "ready")