DSPy: The framework for programming—not prompting—language models
Python
Revert "switch shortcircuit"
Herumb Shandilya171d124ebdd3
diff --git a/dspy/functional/functional.py b/dspy/functional/functional.pyindex c7c4239d9..cf2fe6977 100644--- a/dspy/functional/functional.py+++ b/dspy/functional/functional.py@@ -62,7 +62,7 @@ def TypedChainOfThought(signature, instructions=None, rationale_type=None, *, maprefix="Rationale: Let's think step by step in order to",desc="${produce the " + output_keys + "}. We ...",)- rationale_type = DEFAULT_RATIONALE or rationale_type+ rationale_type = rationale_type or DEFAULT_RATIONALEreturn TypedPredictor(signature.prepend(