Skip to content

Commit 8974306

Browse files
Update utils/llm/dspy_inference.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 52278d0 commit 8974306

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

utils/llm/dspy_inference.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ def __init__(
3838
else None
3939
)
4040
self.fallback_lm = (
41-
self._build_lm(fallback_model_name, temperature, max_tokens)
42-
if fallback_model_name
41+
self._build_lm(self.fallback_model_name, temperature, max_tokens)
42+
if self.fallback_model_name
4343
else None
4444
)
45-
)
4645
if observe:
4746
# Initialize a LangFuseDSPYCallback and configure the LM instance for generation tracing
4847
self.callback = LangFuseDSPYCallback(pred_signature)

0 commit comments

Comments
 (0)