跳到主要内容
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

© . This site is unofficial and not affiliated with LangChain, Inc.
这些文档随着 LangChain v1.0 在 2025 年 10 月的发布而弃用,并且不再维护。 请访问 v1.0 文档