Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Fix assert syntax error

Tom Dörr7d98ed2a9984
diff --git a/dspy/predict/multi_chain_comparison.py b/dspy/predict/multi_chain_comparison.py
index 30a5dff5a..63c4f969c 100644
--- a/dspy/predict/multi_chain_comparison.py
+++ b/dspy/predict/multi_chain_comparison.py
@@ -42,7 +42,7 @@ class MultiChainComparison(Module):
f"«I'm trying to {rationale} I'm not sure but my prediction is {answer}»",
)
- assert len(attempts) == self.M, len(attempts), f"The number of attempts ({len(attempts)}) doesn't match the expected number M ({self.M}). Please set the correct value for M when initializing MultiChainComparison."
+ assert len(attempts) == self.M, f"The number of attempts ({len(attempts)}) doesn't match the expected number M ({self.M}). Please set the correct value for M when initializing MultiChainComparison."
kwargs = {
**{