Files
librechat.ai/pages/docs/configuration/librechat_yaml/ai_endpoints/perplexity.mdx
Hasan Khan 72bfc9608b Update perplexity.mdx (#263)
Updated models that work in March 2025
2025-03-19 01:55:58 -04:00

41 lines
1.4 KiB
Plaintext

---
title: Perplexity
description: Example configuration for Perplexity
---
# [Perplexity](https://www.perplexity.ai)
> Perplexity API key: [perplexity.ai/settings/api](https://www.perplexity.ai/settings/api)
**Notes:**
- **Known:** icon provided.
- **Known issue:** fetching list of models is not supported.
- API may be strict for some models, and may not allow fields like `stop` and `frequency_penalty` may cause an error when set to 0, in which case, you should use [`dropParams`.](/docs/configuration/librechat_yaml/object_structure/custom_endpoint#dropparams)
- The example includes a model list, which was last updated on 3 July 2024, for your convenience.
```yaml
- name: "Perplexity"
apiKey: "${PERPLEXITY_API_KEY}"
baseURL: "https://api.perplexity.ai/"
models:
default: [
"sonar-deep-research",
"sonar-reasoning-pro",
"sonar-reasoning",
"sonar-pro",
"sonar",
"r1-1776"
]
fetch: false # fetching list of models is not supported
titleConvo: true
titleModel: "llama-3-sonar-small-32k-chat"
summarize: false
summaryModel: "llama-3-sonar-small-32k-chat"
forcePrompt: false
dropParams: ["stop", "frequency_penalty"]
modelDisplayLabel: "Perplexity"
```
![image](https://github.com/danny-avila/LibreChat/assets/32828263/6bf6c121-0895-4210-a1dd-e5e957992fd4)