DSPy: The framework for programming—not prompting—language models
Python
fix: printing value.
Amir Mehr410c356f6500
diff --git a/dsp/modules/lm.py b/dsp/modules/lm.pyindex 9fa57bff5..7df87dd90 100644--- a/dsp/modules/lm.py+++ b/dsp/modules/lm.py@@ -93,7 +93,9 @@ class LM(ABC):printing_value += self.print_red(f" \t (and {len(choices)-1} other completions)", end="")printing_value += "\n\n\n"- return printing_value++ print(printing_value)+ return printing_value@abstractmethoddef __call__(self, prompt, only_completed=True, return_sorted=False, **kwargs):