Skip to content

Commit

Permalink
tasks are now compatible with HarnessTask from easy_eval
Browse files Browse the repository at this point in the history
  • Loading branch information
Anindyadeep committed Mar 5, 2024
1 parent 9fef28a commit bacd96f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepeval/experimental/harness/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
GeneralConfig,
APIEndpointConfig,
)
from easy_eval.harness.tasks import HarnessTask


class DeepEvalHarnessModel(DeepEvalBaseModel):
Expand Down Expand Up @@ -39,7 +40,7 @@ def load_model(self, *args, **kwargs):

def _call(
self,
tasks: List[str],
tasks: Union[List[str], List[HarnessTask]],
config: Optional[Union[GeneralConfig, APIEndpointConfig]] = None,
):
# TODO: Anthropic is not supported in APIEndpointConfig.
Expand Down

0 comments on commit bacd96f

Please sign in to comment.