Skip to content

Commit

Permalink
Update difference of subclassing dspy.LM
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavsinghvi11 authored Oct 2, 2024
1 parent c4d3e32 commit 6026c38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In DSPy 2.5, all LM clients except `dspy.LM` are deprecated and will be removed
Migrating to `dspy.LM` is straightforward and will let you use new features (Adapters) that improve the consistency of LM outputs, especially when using chat LMs.
Learn more about the changes and how to migrate [in this notebook](https://github.com/stanfordnlp/dspy/blob/main/examples/migration.ipynb).

If you still need to build a custom client, subclassing dspy.LM is a good last resort to ensure compatibility with future updates.
If you still need to build a custom client, subclassing `dspy.LM` (not `dsp.LM` as in previous DSPy versions) is a good last resort to ensure compatibility with future updates.

---

Expand Down

0 comments on commit 6026c38

Please sign in to comment.