Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

fix: add DeprecationWarning to Evaluate

KCaverly136896b3d3ef
diff --git a/dspy/evaluate/evaluate.py b/dspy/evaluate/evaluate.py
index b7a8ae4f9..7e685b85d 100644
--- a/dspy/evaluate/evaluate.py
+++ b/dspy/evaluate/evaluate.py
@@ -53,6 +53,11 @@ class Evaluate:
self.error_lock = threading.Lock()
self.return_outputs = return_outputs
+ if "display" in _kwargs:
+ dspy.logger.warning(
+ "DeprecationWarning: 'display' has been deprecated. To see all information for debugging, use 'dspy.set_log_level('debug')'. In the future this will raise an error.",
+ )
+
def _execute_single_thread(self, wrapped_program, devset, display_progress):
ncorrect = 0
ntotal = 0