- Reasoning model — the agent that diagnoses failures and rewrites prompts. This is where the intelligence lives. Defaults to Claude.
- Target model — the model your prompt will actually run on. This is what you’re benchmarking or optimizing for.
Reasoning model (default: Claude)
Reflex ships with Anthropic Claude as the default reasoning model — it’s included when youpip install aevyra-reflex, no extra flags needed.
The default model is claude-sonnet-4-20250514. It’s fast, capable, and well-suited to the diagnostic reasoning reflex requires.
Default install:
reasoning_model or reasoning_provider configuration is needed. The default just works.
Changing the reasoning model
Override it inOptimizerConfig:
Using a different reasoning provider
You can swap Claude for Gemini, any OpenAI-compatible model, or a local Ollama model. Gemini (no extra package — uses Google’s OpenAI-compatible endpoint):urllib directly):
Target model providers
The target model is the model your prompts actually run on during evals. Reflex passes each dataset example through it and scores the output. Install only the provider you need:[openai] — no extra package required beyond openai.
Provider reference
| Provider | Extra | Env var | Default model |
|---|---|---|---|
| Anthropic | (included) | ANTHROPIC_API_KEY | claude-sonnet-4-6 |
| OpenAI | [openai] | OPENAI_API_KEY | gpt-4o-mini |
| Google Gemini | [google] | GOOGLE_API_KEY | gemini-2.0-flash |
| Mistral | [mistral] | MISTRAL_API_KEY | mistral-large-latest |
| Cohere | [cohere] | COHERE_API_KEY | command-r-plus |
| Ollama | (no SDK) | — | any local model |
| OpenRouter | [openai] | OPENROUTER_API_KEY | any model |
| Together AI | [openai] | TOGETHER_API_KEY | any model |
| Fireworks | [openai] | FIREWORKS_API_KEY | any model |
| Groq | [openai] | GROQ_API_KEY | any model |
Examples
OpenAI target:Mix and match
The reasoning model and target model are fully independent. A typical cost-effective setup:Missing SDK errors
If you try to use a provider without its SDK installed, reflex raises a clear error:aevyra_reflex never fails due to a missing provider package.