ChatPerplexity 功能和配置的详细文档,请前往 API 参考。
概述
集成详情
模型功能
请参阅下表标题中的链接,了解如何使用特定功能。
Note that at the time of writing, Perplexity only supports structured outputs on certain usage tiers.
设置
要访问 Perplexity models,你需要create a Perplexity account, get an API key, and install the@langchain/community integration package.
凭证
前往 https://perplexity.ai 注册 Perplexity 并生成 API 密钥。完成后设置PERPLEXITY_API_KEY 环境变量:
安装
LangChain 的 Perplexity 集成位于@langchain/community 包中:
实例化
现在我们可以实例化模型对象并生成聊天补全:调用
API 参考
有关所有ChatPerplexity 功能和配置的详细文档,请前往 API 参考。
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

