Mistral AI Provider
Mistral AI provides high-quality language models with European data residency and competitive pricing.
Setup
-
Get API Key: Sign up at Mistral AI Console
-
Set Environment Variable:
bash export MISTRAL_API_KEY=your-mistral-api-key
-
Configure MegaLinter:
yaml LLM_ADVISOR_ENABLED: true LLM_PROVIDER: mistral LLM_MODEL_NAME: mistral-small-latest LLM_MAX_TOKENS: 1000 LLM_TEMPERATURE: 0.1
Official Model List
For the most up-to-date list of Mistral models and their capabilities, see the official Mistral AI documentation:
Configuration Options
Basic Configuration
LLM_PROVIDER: mistral
LLM_MODEL_NAME: mistral-small-latest
Advanced Configuration
# Custom API endpoint (rarely needed)
MISTRAL_BASE_URL: https://api.mistral.ai
Troubleshooting
Common Issues
-
"Authentication failed"
- Verify your API key is correct
- Check account status and credits
- Ensure proper permissions
-
"Rate limit exceeded"
- Check your plan's limits
- Implement exponential backoff
- Contact support for higher limits
-
"Model not found"
- Use latest model names
- Check availability in your region
- Verify spelling and format