DSPy: The framework for programming—not prompting—language models
Python
Inspect history for Claude models
VivHarsha8b5dd0eb5c9f
diff --git a/dsp/modules/lm.py b/dsp/modules/lm.pyindex fb0b0aab5..5fbf5ec5e 100644--- a/dsp/modules/lm.py+++ b/dsp/modules/lm.py@@ -46,7 +46,7 @@ class LM(ABC):if prompt != last_prompt:- if provider == "clarifai" or provider == "google":+ if provider == "clarifai" or provider == "google" or provider == "claude":printed.append((prompt,@@ -80,7 +80,7 @@ class LM(ABC):text = choices[0].textelif provider == "openai" or provider == "ollama":text = ' ' + self._get_choice_text(choices[0]).strip()- elif provider == "clarifai":+ elif provider == "clarifai" or provider == "claude" :text=choiceselif provider == "google":text = choices[0].parts[0].text