Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/my-website/docs/langchain/langchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TabItem from '@theme/TabItem';

## Pre-Requisites
```shell
!pip install litellm langchain
!pip install -U langchain-litellm
```
## Quick Start

Expand All @@ -14,7 +14,7 @@ import TabItem from '@theme/TabItem';

```python
import os
from langchain_community.chat_models import ChatLiteLLM
from langchain_litellm import ChatLiteLLM
from langchain_core.prompts import (
ChatPromptTemplate,
SystemMessagePromptTemplate,
Expand All @@ -39,7 +39,7 @@ chat.invoke(messages)

```python
import os
from langchain_community.chat_models import ChatLiteLLM
from langchain_litellm import ChatLiteLLM
from langchain_core.prompts import (
ChatPromptTemplate,
SystemMessagePromptTemplate,
Expand All @@ -64,7 +64,7 @@ chat.invoke(messages)

```python
import os
from langchain_community.chat_models import ChatLiteLLM
from langchain_litellm import ChatLiteLLM
from langchain_core.prompts.chat import (
ChatPromptTemplate,
SystemMessagePromptTemplate,
Expand All @@ -89,7 +89,7 @@ chat.invoke(messages)

```python
import os
from langchain_community.chat_models import ChatLiteLLM
from langchain_litellm import ChatLiteLLM
from langchain_core.prompts import (
ChatPromptTemplate,
SystemMessagePromptTemplate,
Expand Down Expand Up @@ -127,7 +127,7 @@ Once the auto-tracing is enabled, you can invoke `ChatLiteLLM` and see recorded

```python
import os
from langchain.chat_models import ChatLiteLLM
from langchain_litellm import ChatLiteLLM

os.environ['OPENAI_API_KEY']="sk-..."

Expand All @@ -138,7 +138,7 @@ chat.invoke("Hi!")
## Use Langchain ChatLiteLLM with Lunary
```python
import os
from langchain.chat_models import ChatLiteLLM
from langchain_litellm import ChatLiteLLM
from langchain.schema import HumanMessage
import litellm

Expand Down
Loading