AI Review supports multiple configuration formats and sources. All of them are automatically detected at runtime.
- YAML (recommended):
.ai-review.yaml - JSON:
.ai-review.json - ENV:
.env
π You can combine formats: values are loaded in order of priority.
- YAML (
.ai-review.yamlor path fromAI_REVIEW_CONFIG_FILE_YAML) - JSON (
.ai-review.jsonor path fromAI_REVIEW_CONFIG_FILE_JSON) - ENV (
.envor path fromAI_REVIEW_CONFIG_FILE_ENV) - Environment variables (
LLM__PROVIDER=OPENAI, etc.) - Initialization arguments (if used as a library)
You can override default config locations using environment variables:
AI_REVIEW_CONFIG_FILE_YAMLβ path to.yamlconfigAI_REVIEW_CONFIG_FILE_JSONβ path to.jsonconfigAI_REVIEW_CONFIG_FILE_ENVβ path to.env
By default, configs are loaded from the project root.
- .ai-review.yaml β main YAML config with comments
- .ai-review.json β JSON config example
- .env.example β ENV config example
OpenAI reasoning options can be configured for models that use the Responses API. The object is optional and is omitted from requests when it is not configured. It is not sent to models that use Chat Completions.
llm:
provider: OPENAI
meta:
model: gpt-5.6-sol
reasoning:
effort: medium
summary: concise
context: all_turns
mode: standard{
"llm": {
"provider": "OPENAI",
"meta": {
"model": "gpt-5.6-sol",
"reasoning": {
"effort": "medium",
"summary": "concise",
"context": "all_turns",
"mode": "standard"
}
}
}
}LLM__PROVIDER=OPENAI
LLM__META__MODEL=gpt-5.6-sol
LLM__META__REASONING__EFFORT=medium
LLM__META__REASONING__SUMMARY=concise
LLM__META__REASONING__CONTEXT=all_turns
LLM__META__REASONING__MODE=standard| Option | Supported values | Description |
|---|---|---|
effort |
none, minimal, low, medium, high, xhigh, max |
Controls how many reasoning tokens the model uses. Not every model supports every value. |
summary |
auto, concise, detailed |
Requests a summary of the model reasoning. |
context |
auto, current_turn, all_turns |
Controls which reasoning items are provided to the model on later turns. |
mode |
standard, pro |
Selects the reasoning execution mode. Model support may vary. |
generate_summary |
auto, concise, detailed |
Deprecated OpenAI option. Use summary instead. |
See the OpenAI Responses API reference for model-specific support and current behavior.
- Use YAML for most projects β itβs human-friendly and supports comments.
- JSON is convenient for automation (e.g., CI/CD pipelines).
- ENV is useful for local development and quick overrides.