Skip to content

Commit 6085098

Browse files
add response_model key to LM history entry (#1961)
Co-authored-by: Itay Verkh <[email protected]>
1 parent 526bc19 commit 6085098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dspy/clients/lm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def __call__(self, prompt=None, messages=None, **kwargs):
123123
timestamp=datetime.now().isoformat(),
124124
uuid=str(uuid.uuid4()),
125125
model=self.model,
126+
response_model=response["model"],
126127
model_type=self.model_type,
127128
)
128129
self.history.append(entry)

0 commit comments

Comments
 (0)