DSPy: The framework for programming—not prompting—language models
Python
Fixed missing copy in TypedPredictor
Thomas D Ahle13403911d975
diff --git a/dspy/functional/functional.py b/dspy/functional/functional.pyindex 0f5b660f0..92f7c5a15 100644--- a/dspy/functional/functional.py+++ b/dspy/functional/functional.py@@ -86,7 +86,12 @@ class TypedPredictor(dspy.Module):self.explain_errors = explain_errorsdef copy(self) -> "TypedPredictor":- return TypedPredictor(self.signature, max_retries=self.max_retries, wrap_json=self.wrap_json)+ return TypedPredictor(+ self.signature,+ max_retries=self.max_retries,+ wrap_json=self.wrap_json,+ explain_errors=self.explain_errors,+ )def __repr__(self):"""Return a string representation of the TypedPredictor object."""