DSPy: The framework for programming—not prompting—language models
Python
fix condition
chenmoneygithubff53b20a6fc6
diff --git a/dspy/predict/predict.py b/dspy/predict/predict.pyindex bfe778b74..a029a1171 100644--- a/dspy/predict/predict.py+++ b/dspy/predict/predict.py@@ -68,7 +68,7 @@ class Predict(Module, Parameter):if use_legacy_loading:self._load_state_legacy(state)return- if "signature" not in state and ("signature_instructions" in state or "signature_prefix" in state):+ if "signature" not in state:# Check if the state is from a version of DSPy prior to v2.5.3.raise ValueError("The saved state is from a version of DSPy prior to v2.5.3. Please use `use_legacy_loading=True` to "