diff --git a/ads/aqua/modeldeployment/deployment.py b/ads/aqua/modeldeployment/deployment.py index e4de392df..4f5023dae 100644 --- a/ads/aqua/modeldeployment/deployment.py +++ b/ads/aqua/modeldeployment/deployment.py @@ -185,7 +185,7 @@ def create( tags[tag] = aqua_model.freeform_tags[tag] tags.update({Tags.AQUA_MODEL_NAME_TAG: aqua_model.display_name}) - tags.update({Tags.TASK: aqua_model.freeform_tags.get(Tags.TASK, None)}) + tags.update({Tags.TASK: aqua_model.freeform_tags.get(Tags.TASK, UNKNOWN)}) # Set up info to get deployment config config_source_id = model_id @@ -533,16 +533,22 @@ def list(self, **kwargs) -> List["AquaDeployment"]: return results @telemetry(entry_point="plugin=deployment&action=delete", name="aqua") - def delete(self,model_deployment_id:str): - return self.ds_client.delete_model_deployment(model_deployment_id=model_deployment_id).data + def delete(self, model_deployment_id: str): + return self.ds_client.delete_model_deployment( + model_deployment_id=model_deployment_id + ).data - @telemetry(entry_point="plugin=deployment&action=deactivate",name="aqua") - def deactivate(self,model_deployment_id:str): - return self.ds_client.deactivate_model_deployment(model_deployment_id=model_deployment_id).data + @telemetry(entry_point="plugin=deployment&action=deactivate", name="aqua") + def deactivate(self, model_deployment_id: str): + return self.ds_client.deactivate_model_deployment( + model_deployment_id=model_deployment_id + ).data - @telemetry(entry_point="plugin=deployment&action=activate",name="aqua") - def activate(self,model_deployment_id:str): - return self.ds_client.activate_model_deployment(model_deployment_id=model_deployment_id).data + @telemetry(entry_point="plugin=deployment&action=activate", name="aqua") + def activate(self, model_deployment_id: str): + return self.ds_client.activate_model_deployment( + model_deployment_id=model_deployment_id + ).data @telemetry(entry_point="plugin=deployment&action=get", name="aqua") def get(self, model_deployment_id: str, **kwargs) -> "AquaDeploymentDetail": diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index ca9ca58b9..a70d190a8 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -2,6 +2,11 @@ Release Notes ============= +2.12.8 +------- +Release date: November 27, 2024 +* Fixed bugs in the AI Quick Actions Model Deployment for models registered via Object Storage. + 2.12.7 ------- Release date: November 20, 2024 diff --git a/pyproject.toml b/pyproject.toml index 218e44181..72e9de30d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi" # Required name = "oracle_ads" # the install (PyPI) name; name for local build in [tool.flit.module] section below -version = "2.12.7" +version = "2.12.8" # Optional description = "Oracle Accelerated Data Science SDK"