Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Update custom-lm-client.mdx

Omar Khattabe04487ebf590
diff --git a/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx b/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx
index ae592f464..48fc8fa8d 100644
--- a/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx
+++ b/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx
@@ -10,7 +10,7 @@ import AuthorDetails from '@site/src/components/AuthorDetails';
**Deprecation Notice**
-Since DSPy 2.5, you are unlikely to need to build a custom LM client. If your LM provider is supported by [LiteLLM](https://docs.litellm.ai/docs/providers) or if it has an OpenAI-SDK-compatible endpoint, you likely don't need to build a custom LM client and can instead use `dspy.LM`.
+Since DSPy 2.5, you are unlikely to need to build a custom LM client. If your LM provider is supported by [LiteLLM](https://docs.litellm.ai/docs/providers) or if it has an OpenAI-compatible endpoint, you likely don't need to build a custom LM client and can instead use `dspy.LM`.
In DSPy 2.5, all LM clients except `dspy.LM` are deprecated and will be removed in DSPy 2.6. 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).