Skip to content

Commit adad17e

Browse files
author
Andrei Bratu
committed
Fern dict() weirdness
1 parent 457495c commit adad17e

File tree

1 file changed

+4
-1
lines changed
  • src/humanloop/eval_utils

1 file changed

+4
-1
lines changed

src/humanloop/eval_utils/run.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,10 @@ def _run_local_evaluators(
720720
"""Run local Evaluators on the Log and send the judgments to Humanloop."""
721721
# Need to get the full log to pass to the evaluators
722722
log = client.logs.get(id=log_id)
723-
log_dict = log.dict()
723+
if not isinstance(log, dict):
724+
log_dict = log.dict()
725+
else:
726+
log_dict = log
724727
datapoint_dict = datapoint.dict() if datapoint else None
725728
for local_evaluator in local_evaluators:
726729
start_time = datetime.now()

0 commit comments

Comments
 (0)