File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/kili/services/copy_project Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 99from kili .adapters .kili_api_gateway .project .types import CopyProjectInput
1010from kili .domain .asset import AssetFilters
1111from kili .domain .label import LabelFilters
12- from kili .domain .project import ProjectId
12+ from kili .domain .project import InputTypeEnum , ProjectId
1313
1414if TYPE_CHECKING :
1515 from kili .client import Kili
@@ -67,6 +67,15 @@ def copy_project( # pylint: disable=too-many-arguments
6767 if src_project ["dataConnections" ] and copy_assets :
6868 raise NotImplementedError ("Copying projects with cloud storage is not supported." )
6969
70+ if src_project ["inputType" ] in [
71+ InputTypeEnum .LLM_INSTR_FOLLOWING ,
72+ InputTypeEnum .LLM_RLHF ,
73+ InputTypeEnum .LLM_STATIC ,
74+ ]:
75+ raise NotImplementedError (
76+ f"Copying projects with input type { src_project ['inputType' ]} is not supported."
77+ )
78+
7079 logger .info ("Copying new project..." )
7180
7281 new_project_id = self .kili .kili_api_gateway .copy_project (
You can’t perform that action at this time.
0 commit comments