Skip to content

Commit ce1ea2d

Browse files
committed
pass empty results
1 parent 86dabf1 commit ce1ea2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/teleprompt/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def eval_candidate_program(batch_size, trainset, candidate_program, evaluate, rn
5959
except Exception:
6060
logger.error("An exception occurred during evaluation", exc_info=True)
6161
# TODO: Handle this better, as -ve scores are possible
62-
return dspy.Prediction(score=0.0, outputs=[])
62+
return dspy.Prediction(score=0.0, results=[])
6363

6464
def eval_candidate_program_with_pruning(
6565
trial, trial_logs, trainset, candidate_program, evaluate, trial_num, batch_size=100,

0 commit comments

Comments
 (0)