Skip to content

Commit ff53b20

Browse files
fix condition
1 parent 5682a53 commit ff53b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/predict/predict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def load_state(self, state, use_legacy_loading=False):
6868
if use_legacy_loading:
6969
self._load_state_legacy(state)
7070
return
71-
if "signature" not in state and ("signature_instructions" in state or "signature_prefix" in state):
71+
if "signature" not in state:
7272
# Check if the state is from a version of DSPy prior to v2.5.3.
7373
raise ValueError(
7474
"The saved state is from a version of DSPy prior to v2.5.3. Please use `use_legacy_loading=True` to "

0 commit comments

Comments
 (0)