DSPy: The framework for programming—not prompting—language models
Python
One more fix in history printing
Connor Shorten9d3fa4ab47f3
diff --git a/dsp/modules/lm.py b/dsp/modules/lm.pyindex 7c678a5e1..d59b57568 100644--- a/dsp/modules/lm.py+++ b/dsp/modules/lm.py@@ -75,7 +75,8 @@ class LM(ABC):text = ""if provider == "cohere":- text = choices[0].text+ # The Cohere `Chat` API does not support multiple generations per call+ text = choiceselif provider == "openai" or provider == "ollama":text = " " + self._get_choice_text(choices[0]).strip()elif provider == "clarifai":