Skip to main content
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