We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3abb63 commit dd42c7bCopy full SHA for dd42c7b
dspy/clients/lm.py
@@ -83,9 +83,9 @@ def __init__(
83
84
if model_pattern:
85
# Handle OpenAI reasoning models (o1, o3)
86
- assert max_tokens >= 20_000 and temperature == 1.0, (
87
- "OpenAI's reasoning models require passing temperature=1.0 and max_tokens >= 20_000 to `dspy.LM(...)`"
88
- )
+ assert (
+ max_tokens >= 20_000 and temperature == 1.0
+ ), "OpenAI's reasoning models require passing temperature=1.0 and max_tokens >= 20_000 to `dspy.LM(...)`"
89
self.kwargs = dict(temperature=temperature, max_completion_tokens=max_tokens, **kwargs)
90
else:
91
self.kwargs = dict(temperature=temperature, max_tokens=max_tokens, **kwargs)
0 commit comments