From 164e606cae395bed7ce83f4989bc8a6a436a146a Mon Sep 17 00:00:00 2001 From: Akshay Dongare <75126845+Akshay-Dongare@users.noreply.github.com> Date: Tue, 8 Apr 2025 13:04:17 -0400 Subject: [PATCH] docs: fix import path and update LiteLLM integration docs (#30685) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - [x] **PR title**: "docs: Update import path and LiteLLM integration docs" - Update the old import path for `ChatLiteLLM` to reflect the new export from [`__init__.py`](https://github.com/Akshay-Dongare/langchain-litellm/blob/main/langchain_litellm/__init__.py) in [`langchain-litellm`](https://github.com/Akshay-Dongare/langchain-litellm) package - [x] **PR message**: - **Description:** - 🔗 **Follow-up to**: PR #30637 - 🔧 **Fixes**: #30368 - 💬 **Based on this comment from** @ccurme: https://github.com/langchain-ai/langchain/pull/30637#discussion_r2029084320 - [x] **About me** 🔗 LinkedIn: [akshay-dongare](https://www.linkedin.com/in/akshay-dongare/) --- docs/docs/integrations/chat/litellm.ipynb | 2 +- docs/docs/integrations/providers/litellm.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/integrations/chat/litellm.ipynb b/docs/docs/integrations/chat/litellm.ipynb index 28104343953..499c229dde4 100644 --- a/docs/docs/integrations/chat/litellm.ipynb +++ b/docs/docs/integrations/chat/litellm.ipynb @@ -121,7 +121,7 @@ }, "outputs": [], "source": [ - "from langchain_litellm.chat_models import ChatLiteLLM\n", + "from langchain_litellm import ChatLiteLLM\n", "\n", "llm = ChatLiteLLM(model=\"gpt-3.5-turbo\")" ] diff --git a/docs/docs/integrations/providers/litellm.mdx b/docs/docs/integrations/providers/litellm.mdx index f3e39d17e2b..2ab7404ccc3 100644 --- a/docs/docs/integrations/providers/litellm.mdx +++ b/docs/docs/integrations/providers/litellm.mdx @@ -10,7 +10,7 @@ pip install langchain-litellm ## Chat Models ```python -from langchain_litellm.chat_models import ChatLiteLLM +from langchain_litellm import ChatLiteLLM ``` See more detail in the guide [here](/docs/integrations/chat/litellm).