Perplexity
The Perplexity API (pplx-api) offers access to Perplexity, Sonar, Mistral, Llama, and other models.
It is compatible with the OpenAI API. In order to use the Perplexity API in an eval, set OPENAI_API_BASE_URL environment variable to https://api.perplexity.ai or the apiHost config key to api.perplexity.ai.
Here's an example config that compares Perplexity's 70B model with Sonar-medium and Llama-2 70B:
providers:
- id: openai:chat:pplx-70b-chat-alpha
config:
apiHost: api.perplexity.ai
- id: openai:chat:llama-2-70b-chat
config:
apiHost: api.perplexity.ai
- id: openai:chat:sonar-medium-chat
config:
apiHost: api.perplexity.ai
For a complete list of supported models, see Perplexity's chat completion documentation.