Skip to content

Commit f20dc17

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Remove LLM task type short-circuit from Python client methods
1 parent 8a9f654 commit f20dc17

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

openlayer/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -407,10 +407,6 @@ def add_model(
407407
f"{len(sample_data)} rows were provided."
408408
)
409409

410-
# hack ---------------------------------------------------------------
411-
task_type = TaskType.LLM
412-
# hack ---------------------------------------------------------------
413-
414410
# Validate model package
415411
model_validator = model_validators.get_validator(
416412
task_type=task_type,
@@ -671,10 +667,6 @@ def add_dataset(
671667
>>> project.commit("Initial dataset commit.")
672668
>>> project.push()
673669
"""
674-
# hack ---------------------------------------------------------------
675-
task_type = TaskType.LLM
676-
# hack ---------------------------------------------------------------
677-
678670
# Validate dataset
679671
dataset_validator = dataset_validators.get_validator(
680672
task_type=task_type,
@@ -984,10 +976,6 @@ def push(self, project_id: str, task_type: TaskType) -> Optional[ProjectVersion]
984976
"""
985977
project_dir = f"{constants.OPENLAYER_DIR}/{project_id}/staging"
986978

987-
# hack ---------------------------------------------------------------
988-
task_type = TaskType.LLM
989-
# hack ---------------------------------------------------------------
990-
991979
if self._ready_for_push(project_dir=project_dir, task_type=task_type):
992980
with open(
993981
f"{project_dir}/commit.yaml", "r", encoding="UTF-8"

0 commit comments

Comments
 (0)