AI Provider Setup
AI capabilities powered by Google Gemini, OpenAI, and Anthropic Claude.
Providers
| Provider | Enable Key | API Key Config | Model Config |
|---|---|---|---|
| Gemini | AI_GEMINI_ENABLED | AI_GEMINI_API_KEY | AI_GEMINI_MODEL |
| OpenAI | AI_OPENAI_ENABLED | AI_OPENAI_API_KEY | AI_OPENAI_MODEL |
| Claude | AI_ANTHROPIC_ENABLED | AI_ANTHROPIC_API_KEY | AI_ANTHROPIC_MODEL |
Features
| Feature | Enable Key |
|---|---|
| Credit Brain | AI_FEATURE_CREDIT_BRAIN_ENABLED |
| Fraud Copilot | AI_FEATURE_FRAUD_COPILOT_ENABLED |
| Compliance Engine | AI_FEATURE_COMPLIANCE_ENGINE_ENABLED |
Provider Selection
The AiOrchestrationService selects the first enabled provider in order: Gemini → OpenAI → Claude.
If a provider call fails, it falls back to the next.
Troubleshooting
- All AI features disabled: Enable at least one AI provider AND one feature
- API key invalid: Verify key format (Gemini keys typically start with
AIza)