Skip to content

armgit / dspy

Public Imported from GitHub
0

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.py
index 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, *, ma
prefix="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_RATIONALE
return TypedPredictor(
signature.prepend(