compare-gpt-reasoning-effort (GPT Reasoning Effort Comparison)
You can run this example with:
Content
compare-gpt-reasoning-effort (GPT Reasoning Effort Comparison)
You can run this example with:
npx promptfoo@latest init --example compare-gpt-reasoning-effort
cd compare-gpt-reasoning-effort
Usage
This example compares GPT-6 Luna with two reasoning settings:
nonefor low-latency tasks that do not need reasoning tokensmediumfor tasks where extra deliberation may improve reliability
Set OPENAI_API_KEY, then run:
npx promptfoo@latest eval --no-cache
The provider, prompt, verbosity, and output limit are otherwise identical, so the eval table makes it easier to compare output quality, latency, and cost for each reasoning effort.
Source and license
- Source
- Promptfoo
- Original
- promptfoo/promptfoo/examples/compare-gpt-reasoning-effort
- License
- MIT