Skip to main content
要安装 LangChain 包:
npm install langchain @langchain/core
# Requires Node.js 20+
LangChain 提供了与数百个 LLM 和数千个其他集成的集成。这些集成位于独立的提供商包中。
# Installing the OpenAI integration
npm install @langchain/openai
# Installing the Anthropic integration
npm install @langchain/anthropic
请参阅 集成选项卡 以获取可用集成的完整列表。
现在您已经安装了 LangChain,可以按照 快速入门指南 开始使用。