PolyLever

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

ProviderDefault modelEnvironment variables
Gemini (default)gemini-2.5-flashGEMINI_API_KEY, GEMINI_MODEL
OpenAIgpt-4oOPENAI_API_KEY, OPENAI_MODEL
Anthropicclaude-sonnet-4-20250514ANTHROPIC_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.