We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents edca89b + 739b6ee commit 15d4b2bCopy full SHA for 15d4b2b
ads/model/service/oci_datascience_model.py
@@ -423,10 +423,13 @@ def update(self) -> "OCIDataScienceModel":
423
OCIDataScienceModel
424
The `OCIDataScienceModel` instance (self).
425
"""
426
+ model_details = self.to_oci_model(UpdateModelDetails)
427
+
428
+ # Clean up the model version set, otherwise it throws an error that model is already
429
+ # associated with the model version set.
430
+ model_details.model_version_set_id = None
431
return self.update_from_oci_model(
- self.client.update_model(
- self.id, self.to_oci_model(UpdateModelDetails)
- ).data
432
+ self.client.update_model(self.id, model_details).data
433
)
434
435
@check_for_model_id(
0 commit comments