Skip to content

Commit ff6d813

Browse files
Merge pull request #808 from dbolser/bugfix/patch-for-groq
Add missing provider condition for groq in inspect_history in LM class
2 parents dba1285 + dfb29bd commit ff6d813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsp/modules/lm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def inspect_history(self, n: int = 1, skip: int = 0):
4646
prompt = x["prompt"]
4747

4848
if prompt != last_prompt:
49-
if provider == "clarifai" or provider == "google":
49+
if provider == "clarifai" or provider == "google" or provider == "groq":
5050
printed.append((prompt, x["response"]))
5151
elif provider == "anthropic":
5252
blocks = [{"text": block.text} for block in x["response"].content if block.type == "text"]

0 commit comments

Comments
 (0)