We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 457495c commit adad17eCopy full SHA for adad17e
src/humanloop/eval_utils/run.py
@@ -720,7 +720,10 @@ def _run_local_evaluators(
720
"""Run local Evaluators on the Log and send the judgments to Humanloop."""
721
# Need to get the full log to pass to the evaluators
722
log = client.logs.get(id=log_id)
723
- log_dict = log.dict()
+ if not isinstance(log, dict):
724
+ log_dict = log.dict()
725
+ else:
726
+ log_dict = log
727
datapoint_dict = datapoint.dict() if datapoint else None
728
for local_evaluator in local_evaluators:
729
start_time = datetime.now()
0 commit comments