@@ -382,6 +382,7 @@ def _create(
382382 Tags .AQUA_SERVICE_MODEL_TAG ,
383383 Tags .AQUA_FINE_TUNED_MODEL_TAG ,
384384 Tags .AQUA_TAG ,
385+ Tags .BASE_MODEL_CUSTOM ,
385386 ]:
386387 if tag in aqua_model .freeform_tags :
387388 tags [tag ] = aqua_model .freeform_tags [tag ]
@@ -561,8 +562,6 @@ def _create(
561562 AQUA_MODEL_TYPE_CUSTOM if is_fine_tuned_model else AQUA_MODEL_TYPE_SERVICE
562563 )
563564
564- is_custom_base_model = Tags .BASE_MODEL_CUSTOM in aqua_model .freeform_tags
565-
566565 return self ._create_deployment (
567566 create_deployment_details = create_deployment_details ,
568567 aqua_model_id = aqua_model .id ,
@@ -574,7 +573,6 @@ def _create(
574573 env_var = env_var ,
575574 tags = tags ,
576575 cmd_var = cmd_var ,
577- is_custom_base_model = is_custom_base_model ,
578576 )
579577
580578 def _create_multi (
@@ -651,7 +649,6 @@ def _create_multi(
651649 }
652650
653651 model_name = f"{ MODEL_NAME_DELIMITER } " .join (model_name_list )
654- is_custom_base_model = Tags .BASE_MODEL_CUSTOM in aqua_model .freeform_tags
655652
656653 aqua_deployment = self ._create_deployment (
657654 create_deployment_details = create_deployment_details ,
@@ -663,7 +660,6 @@ def _create_multi(
663660 health_check_port = health_check_port ,
664661 env_var = env_var ,
665662 tags = tags ,
666- is_custom_base_model = is_custom_base_model ,
667663 )
668664 aqua_deployment .models = create_deployment_details .models
669665 return aqua_deployment
@@ -679,7 +675,6 @@ def _create_deployment(
679675 health_check_port : str ,
680676 env_var : dict ,
681677 tags : dict ,
682- is_custom_base_model : bool = False ,
683678 cmd_var : Optional [dict ] = None ,
684679 ):
685680 """Creates data science model deployment.
@@ -705,8 +700,6 @@ def _create_deployment(
705700 The environment variables input for the deployment.
706701 tags: dict
707702 The tags input for the deployment.
708- is_custom_base_model: bool, optional
709- The flag set true for custom model.
710703 cmd_var: dict, optional
711704 The cmd arguments input for the deployment.
712705
@@ -794,8 +787,8 @@ def _create_deployment(
794787 # we arbitrarily choose last 8 characters of OCID to identify MD in telemetry
795788 telemetry_kwargs = {"ocid" : get_ocid_substring (deployment_id , key_len = 8 )}
796789
797- if is_custom_base_model :
798- telemetry_kwargs ["custom_base_model" ] = " True"
790+ if Tags . BASE_MODEL_CUSTOM in tags :
791+ telemetry_kwargs ["custom_base_model" ] = True
799792
800793 # tracks unique deployments that were created in the user compartment
801794 self .telemetry .record_event_async (
0 commit comments