Skip to content

Commit 52278d0

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

utils/llm/dspy_inference.py

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

0 commit comments

Comments
 (0)