跳到主要内容
Open on GitHub

LiteLLM

LiteLLM 是一个简化调用 Anthropic、Azure、Huggingface、Replicate 等服务的库。

安装和设置

pip install langchain-litellm

聊天模型

from langchain_litellm import ChatLiteLLM
from langchain_litellm import ChatLiteLLMRouter

更多详情请参阅此处的指南。

API 参考

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