跳到主要内容
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
以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.