Are you sure you want to delete this access key?
Initialize this example by running:
npx promptfoo@latest init --example gpt-4o-vs-4o-mini
Navigate to the newly created gpt-4o-vs-4o-mini
directory:
cd gpt-4o-vs-4o-mini
Set an OpenAI API key directly in your environment:
export OPENAI_API_KEY="your_openai_api_key"
Alternatively, you can set the API key in a .env
file:
OPENAI_API_KEY=your_openai_api_key
Run the evaluation with:
npx promptfoo@latest eval --no-cache
Note: the --no-cache
flag is required because the example uses a latency assertion which does not support caching.
View the results:
npx promptfoo@latest view
The expected output will include the responses from both models for the provided riddles, allowing you to compare their performance side by side.
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?