Are you sure you want to delete this access key?
The Perplexity API (pplx-api) offers access to Perplexity, Mistral, Llama, and other models.
It is compatible with the OpenAI API. In order to use the Perplexity API in an eval, set the apiHost
config key to api.perplexity.ai
.
Here's an example config that compares Perplexity's large and small Llama 3 online models:
providers:
- id: openai:chat:llama-3-sonar-large-32k-online
config:
apiHost: api.perplexity.ai
apiKeyEnvar: PERPLEXITY_API_KEY
- id: openai:chat:llama-3-sonar-small-32k-online
config:
apiHost: api.perplexity.ai
apiKeyEnvar: PERPLEXITY_API_KEY
In this example, you'd have to set the PERPLEXITY_API_KEY
environment variable (you can also enter it directly in the config using the apiKey
property).
If desired, you can instead use the OPENAI_API_HOST
environment variable instead of the apiHost
config key.
For a complete list of supported models, see Perplexity's chat completion documentation.
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?