DSPy: The framework for programming—not prompting—language models
Python
fix: signature not reachable
Jannis Schönleber6407b3667792
diff --git a/dspy/predict/chain_of_thought.py b/dspy/predict/chain_of_thought.pyindex c153ef57c..bfd62e5ef 100644--- a/dspy/predict/chain_of_thought.py+++ b/dspy/predict/chain_of_thought.py@@ -62,7 +62,7 @@ class ChainOfThought(Predict):else:signature = self.signatureelse:- signature = dsp.Template(signature.instructions, **new_signature)+ signature = dsp.Template(self.signature.instructions, **new_signature)return super().forward(signature=signature, **kwargs)