feat(providers): add Perplexity as a declarative OpenAI-compatible provider (#9324)

This commit is contained in:
James Liounis
2026-05-27 15:07:03 -04:00
committed by GitHub
parent 4c88f4b91c
commit e9b0d9247b
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,21 @@
{
"name": "perplexity",
"engine": "openai",
"display_name": "Perplexity",
"description": "Chat models with built-in real-time web search grounding",
"api_key_env": "PERPLEXITY_API_KEY",
"base_url": "https://api.perplexity.ai",
"models": [
{ "name": "sonar", "context_limit": 128000 },
{ "name": "sonar-pro", "context_limit": 128000 },
{ "name": "sonar-reasoning", "context_limit": 128000 },
{ "name": "sonar-reasoning-pro", "context_limit": 128000 }
],
"supports_streaming": true,
"model_doc_link": "https://docs.perplexity.ai/docs/getting-started",
"setup_steps": [
"Go to https://www.perplexity.ai/account/api/keys",
"Create or copy an existing API key",
"Paste the key above as PERPLEXITY_API_KEY"
]
}