所有与 Anthropic 模型相关的功能。 Anthropic 是一家 AI 安全与研究公司,也是 Claude 的创造者。 本页面涵盖了 Anthropic 模型与 LangChain 之间的所有集成。Documentation Index
Fetch the complete documentation index at: https://langchain-zh.cn/llms.txt
Use this file to discover all available pages before exploring further.
提示词最佳实践
与 OpenAI 模型相比,Anthropic 模型有几项提示词最佳实践。 系统消息只能作为第一条消息 Anthropic 模型要求任何系统消息必须是提示词中的第一条消息。ChatAnthropic
ChatAnthropic 是 LangChain ChatModel 的子类,这意味着它最适合与 ChatPromptTemplate 配合使用。
你可以通过以下代码导入此包装器:
npm
ChatPromptTemplate。
下面是一个示例:
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

