DSPy: The framework for programming—not prompting—language models
Python
metric patch
Herumb Shandilyae9fc3dfd8fed
diff --git a/dspy/teleprompt/avatar_optimizer.py b/dspy/teleprompt/avatar_optimizer.pyindex 6f42ed107..7fa438e30 100644--- a/dspy/teleprompt/avatar_optimizer.py+++ b/dspy/teleprompt/avatar_optimizer.py@@ -106,7 +106,7 @@ class AvatarOptimizer(Teleprompter):try:prediction = actor(**example.inputs().toDict())- score = metric(example, prediction)+ score = self.metric(example, prediction)match return_outputs:case True: