Skip to content

Commit 1130d3b

Browse files
committed
fix: fixes for gpt-5
1 parent 135c74b commit 1130d3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

evaluators/langevals/langevals_langevals/llm_answer_match.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ def model_to_dspy_lm(model: str) -> dspy.LM:
123123

124124
lm = dspy.LM(
125125
model=model,
126-
temperature=0,
126+
temperature=1.0 if "gpt-5" in model else 0,
127127
drop_params=True,
128128
model_type="chat",
129+
max_tokens=None,
129130
**llm_params,
130131
)
131132
return lm

0 commit comments

Comments
 (0)