DSPy: The framework for programming—not prompting—language models
Python
Add missing provider condition for groq in inspect_history in LM class
Dan Bolserdfb29bd01664
diff --git a/dsp/modules/lm.py b/dsp/modules/lm.pyindex 4af1dc80e..9f0843910 100644--- a/dsp/modules/lm.py+++ b/dsp/modules/lm.py@@ -46,7 +46,7 @@ class LM(ABC):prompt = x["prompt"]if prompt != last_prompt:- if provider == "clarifai" or provider == "google":+ if provider == "clarifai" or provider == "google" or provider == "groq":printed.append((prompt, x["response"]))elif provider == "anthropic":blocks = [{"text": block.text} for block in x["response"].content if block.type == "text"]