DSPy: The framework for programming—not prompting—language models
Python
refactor(dspy): Added tensorrt_llm in history inspect
Anindyadeep5fc1337569f0
diff --git a/dsp/modules/lm.py b/dsp/modules/lm.pyindex ba3d6b69f..611f85ec0 100644--- a/dsp/modules/lm.py+++ b/dsp/modules/lm.py@@ -54,6 +54,7 @@ class LM(ABC):"Bedrock","Sagemaker","premai",+ "tensorrt_llm"):printed.append((prompt, x["response"]))elif provider == "anthropic":@@ -86,7 +87,7 @@ class LM(ABC):printing_value += prompttext = ""- if provider in ("cohere", "Bedrock", "Sagemaker", "clarifai", "claude", "ibm", "premai"):+ if provider in ("cohere", "Bedrock", "Sagemaker", "clarifai", "claude", "ibm", "premai", "tensorrt_llm"):text = choiceselif provider == "openai" or provider == "ollama":text = " " + self._get_choice_text(choices[0]).strip()