ChatPerplexity
features and configurations head to the API reference.
Overview
Integration details
Class | Package | Local | Serializable | PY support | Downloads | Version |
---|---|---|---|---|---|---|
ChatPerplexity | @langchain/community | ❌ | beta | ✅ |
Model features
See the links in the table headers below for guides on how to use specific features.Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Token usage | Logprobs |
---|---|---|---|---|---|---|---|---|
❌ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | ❌ |
Setup
To access Perplexity models you’ll need to create a Perplexity account, get an API key, and install the@langchain/community
integration package.
Credentials
Head to https://perplexity.ai to sign up for Perplexity and generate an API key. Once you’ve done this set thePERPLEXITY_API_KEY
environment variable:
Installation
The LangChain Perplexity integration lives in the@langchain/community
package: