Documentation
LLM Providers
PolyLever sends each code diff to a large language model for analysis. The default is Gemini 2.5 Flash; operators can switch providers via backend configuration.
Default provider
Out of the box, PolyLever uses Google Gemini 2.5 Flash. The model receives the full git diff and returns a structured markdown review covering bugs, security issues, performance concerns, and maintainability.
Supported providers
| Provider | Default model | Environment variables |
|---|---|---|
| Gemini (default) | gemini-2.5-flash | GEMINI_API_KEY, GEMINI_MODEL |
| OpenAI | gpt-4o | OPENAI_API_KEY, OPENAI_MODEL |
| Anthropic | claude-sonnet-4-20250514 | ANTHROPIC_API_KEY, ANTHROPIC_MODEL |
- Gemini (default): Default provider. Set LLM_PROVIDER=gemini in backend config.
- OpenAI: Set LLM_PROVIDER=openai and provide your OpenAI API key.
- Anthropic: Set LLM_PROVIDER=anthropic and provide your Anthropic API key.
Review output
Each completed review stores the provider and model used, along with the markdown review text. Empty model responses are rejected so reviews never complete without actual content.