What happened?
Assertion in Predict makeit impossible to derive from BaseLM, which forces the use of LiteLM no matter what.
assert isinstance(lm, dspy.LM), "No LM is loaded."
|
assert isinstance(lm, dspy.LM), "No LM is loaded." |
Steps to reproduce
Create a custom LM drived from BaseLM.
DSPy version
2.6.0