Skip to main content
Open on GitHub

LiteLLM

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

安装与设置

pip install langchain-litellm

聊天模型

from langchain_litellm import ChatLiteLLM
from langchain_litellm import ChatLiteLLMRouter

更多细节请参阅指南这里

API 参考

有关所有 ChatLiteLLMChatLiteLLMRouter 功能及配置的详细文档,请访问API参考: https://github.com/Akshay-Dongare/langchain-litellm