Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Raise TypeError on return_outputs in evaluate kwargs (#8644)

Isaac Miller1eca6cb18846
diff --git a/dspy/evaluate/evaluate.py b/dspy/evaluate/evaluate.py
index 3a62ed353..721b34af3 100644
--- a/dspy/evaluate/evaluate.py
+++ b/dspy/evaluate/evaluate.py
@@ -101,6 +101,9 @@ class Evaluate:
self.provide_traceback = provide_traceback
self.failure_score = failure_score
+ if "return_outputs" in kwargs:
+ raise ValueError("`return_outputs` is no longer supported. Results are always returned inside the `results` field of the `EvaluationResult` object.")
+
@with_callbacks
def __call__(
self,