Configure evalflow.yaml
Add anopenai block under providers and set default_provider so evalflow knows which provider to use when you run evalflow eval without a --provider flag.
api_key_env is the name of the environment variable that holds your key — evalflow reads the variable at runtime and never stores the key itself.
Set your API key
Verify the connection
Runevalflow doctor to confirm evalflow can see the key before running any evals:
Run evals
eval.default_provider is already set to openai in your evalflow.yaml, you can omit the --provider flag:
Provider notes
- Default model:
gpt-4o-mini. You can override it by settingdefault_modelto any model name your account has access to (for example,gpt-4ooro1-mini). - API key required: OpenAI requires a paid account or active free-tier credits. Requests without a valid key will fail immediately.
- Judge model: By default, evalflow uses Groq as the LLM judge. If you want OpenAI to serve as both the model under test and the judge, update the
judgeblock inevalflow.yaml: