Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Remove unnecessary return value.

Robert P. Goldmane0b8a691d607
diff --git a/dspy/teleprompt/teleprompt_optuna.py b/dspy/teleprompt/teleprompt_optuna.py
index eb0f6f74d..2922daf17 100644
--- a/dspy/teleprompt/teleprompt_optuna.py
+++ b/dspy/teleprompt/teleprompt_optuna.py
@@ -52,9 +52,7 @@ class BootstrapFewShotWithOptuna(Teleprompter):
display_table=False,
display_progress=True,
)
- # FIXME: this should have return_all_scores=False and then need only score,
- # since only one value will be returned. - rpg
- score, _ = evaluate(program2, return_all_scores=True)
+ score = evaluate(program2, return_all_scores=False)
trial.set_user_attr("program", program2)
return score