Skip to main content
Open on GitHub

LiteLLM

LiteLLM is a library that simplifies calling Anthropic, Azure, Huggingface, Replicate, etc.

Installation and setup​

pip install langchain-litellm

Chat Models​

from langchain_litellm import ChatLiteLLM
from langchain_litellm import ChatLiteLLMRouter

See more detail in the guide here.

API reference​

For detailed documentation of all ChatLiteLLM and ChatLiteLLMRouter features and configurations head to the API reference: https://github.com/Akshay-Dongare/langchain-litellm