Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

add `response_model` key to LM history entry (#1961)

Itay6085098cf706
diff --git a/dspy/clients/lm.py b/dspy/clients/lm.py
index 66cd7ea2c..931540fa7 100644
--- a/dspy/clients/lm.py
+++ b/dspy/clients/lm.py
@@ -123,6 +123,7 @@ class LM(BaseLM):
timestamp=datetime.now().isoformat(),
uuid=str(uuid.uuid4()),
model=self.model,
+ response_model=response["model"],
model_type=self.model_type,
)
self.history.append(entry)