File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -313,10 +313,11 @@ def get_config(
313
313
f"Base model found for the model: { oci_model .id } . "
314
314
f"Loading { config_file_name } for base model { base_model_ocid } ."
315
315
)
316
- base_model = self .ds_client .get_model (base_model_ocid ).data
317
- artifact_path = get_artifact_path (base_model .custom_metadata_list )
318
316
if config_folder == ConfigFolder .ARTIFACT :
319
317
artifact_path = get_artifact_path (oci_model .custom_metadata_list )
318
+ else :
319
+ base_model = self .ds_client .get_model (base_model_ocid ).data
320
+ artifact_path = get_artifact_path (base_model .custom_metadata_list )
320
321
else :
321
322
logger .info (f"Loading { config_file_name } for model { oci_model .id } ..." )
322
323
artifact_path = get_artifact_path (oci_model .custom_metadata_list )
You can’t perform that action at this time.
0 commit comments