Skip to content

Commit febdbf4

Browse files
committed
Fix markdown
1 parent e353faa commit febdbf4

9 files changed

+93
-70
lines changed

docs/llm-advisor.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,19 @@ Example fix:
279279
### Common Issues
280280

281281
1. **"LLM Advisor not available"**
282+
282283
- Check that `LLM_ADVISOR_ENABLED: true`
283284
- Verify LangChain dependencies are installed
284285
- Ensure API keys are set correctly
285286

286287
2. **"Failed to initialize LLM"**
288+
287289
- Verify API key is valid and has sufficient credits
288290
- Check internet connection for cloud providers
289291
- For Ollama, ensure the service is running locally
290292

291293
3. **No suggestions generated**
294+
292295
- Check if errors were detected by linters
293296
- Verify the linter output format is parseable
294297
- Review logs for parsing errors

docs/llm-provider/llm_provider_anthropic.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ Anthropic's Claude models excel at code analysis with a strong focus on safety a
1212

1313
2. **Set Environment Variable**:
1414

15-
```bash
16-
export ANTHROPIC_API_KEY=sk-ant-your-api-key
17-
```
15+
```bash
16+
export ANTHROPIC_API_KEY=sk-ant-your-api-key
17+
```
1818

1919
3. **Configure MegaLinter**:
2020

21-
```yaml
22-
LLM_ADVISOR_ENABLED: true
23-
LLM_PROVIDER: anthropic
24-
LLM_MODEL_NAME: claude-3-7-sonnet-latest
25-
LLM_MAX_TOKENS: 1000
26-
LLM_TEMPERATURE: 0.1
27-
```
21+
```yaml
22+
LLM_ADVISOR_ENABLED: true
23+
LLM_PROVIDER: anthropic
24+
LLM_MODEL_NAME: claude-3-7-sonnet-latest
25+
LLM_MAX_TOKENS: 1000
26+
LLM_TEMPERATURE: 0.1
27+
```
2828
2929
## Official Model List
3030
@@ -56,16 +56,19 @@ ANTHROPIC_API_VERSION: 2023-06-01
5656
### Common Issues
5757
5858
1. **"Invalid API key"**
59+
5960
- Verify API key format: `sk-ant-...`
6061
- Check account status and credits
6162
- Ensure API access is enabled
6263

6364
2. **"Rate limit exceeded"**
65+
6466
- Anthropic has generous rate limits
6567
- Implement exponential backoff
6668
- Contact support for higher limits
6769

6870
3. **"Context too long"**
71+
6972
- Claude handles very large contexts well
7073
- Consider reducing file context if needed
7174
- Use appropriate model for your needs

docs/llm-provider/llm_provider_deepseek.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ DeepSeek offers specialized code-focused models at competitive prices, optimized
1212

1313
2. **Set Environment Variable**:
1414

15-
```bash
16-
export DEEPSEEK_API_KEY=your-deepseek-api-key
17-
```
15+
```bash
16+
export DEEPSEEK_API_KEY=your-deepseek-api-key
17+
```
1818

1919
3. **Configure MegaLinter**:
2020

21-
```yaml
22-
LLM_ADVISOR_ENABLED: true
23-
LLM_PROVIDER: deepseek
24-
LLM_MODEL_NAME: deepseek-chat
25-
LLM_MAX_TOKENS: 1000
26-
LLM_TEMPERATURE: 0.1
27-
```
21+
```yaml
22+
LLM_ADVISOR_ENABLED: true
23+
LLM_PROVIDER: deepseek
24+
LLM_MODEL_NAME: deepseek-chat
25+
LLM_MAX_TOKENS: 1000
26+
LLM_TEMPERATURE: 0.1
27+
```
2828
2929
## Official Model List
3030
@@ -53,16 +53,19 @@ DEEPSEEK_BASE_URL: https://api.deepseek.com/v1
5353
### Common Issues
5454
5555
1. **"Invalid API key"**
56+
5657
- Verify your API key is correct
5758
- Check account status and credits
5859
- Ensure API access is enabled
5960
6061
2. **"Rate limit exceeded"**
62+
6163
- Check your plan's rate limits
6264
- Implement rate limiting in your requests
6365
- Consider upgrading your plan
6466
6567
3. **"Model not available"**
68+
6669
- Verify model name is correct
6770
- Check if model is available in your region
6871
- Some models may require special access

docs/llm-provider/llm_provider_google_genai.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ Google's Gemini models offer excellent performance at competitive prices with st
1515

1616
2. **Set Environment Variable**:
1717

18-
```bash
19-
export GOOGLE_API_KEY=AIza-your-api-key
20-
```
18+
```bash
19+
export GOOGLE_API_KEY=AIza-your-api-key
20+
```
2121

2222
3. **Configure MegaLinter**:
2323

24-
```yaml
25-
LLM_ADVISOR_ENABLED: true
26-
LLM_PROVIDER: google
27-
LLM_MODEL_NAME: gemini-2.5-flash
28-
LLM_MAX_TOKENS: 1000
29-
LLM_TEMPERATURE: 0.1
30-
```
24+
```yaml
25+
LLM_ADVISOR_ENABLED: true
26+
LLM_PROVIDER: google
27+
LLM_MODEL_NAME: gemini-2.5-flash
28+
LLM_MAX_TOKENS: 1000
29+
LLM_TEMPERATURE: 0.1
30+
```
3131
3232
## Official Model List
3333
@@ -56,16 +56,19 @@ GOOGLE_APPLICATION_CREDENTIALS: /path/to/service-account.json
5656
### Common Issues
5757
5858
1. **"API key not valid"**
59+
5960
- Verify API key format: `AIza...`
6061
- Check that Generative AI API is enabled
6162
- Ensure you're in a supported region
6263

6364
2. **"Quota exceeded"**
65+
6466
- Check your quota limits in Google Cloud Console
6567
- Request quota increases if needed
6668
- Implement rate limiting
6769

6870
3. **"Model not found"**
71+
6972
- Verify model name is correct
7073
- Check regional availability
7174
- Some models may require special access

docs/llm-provider/llm_provider_grok.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ Grok is xAI's conversational AI model, designed for real-time information and en
1212

1313
2. **Set Environment Variable**:
1414

15-
```bash
16-
export GROK_API_KEY=your-grok-api-key
17-
```
15+
```bash
16+
export GROK_API_KEY=your-grok-api-key
17+
```
1818

1919
3. **Configure MegaLinter**:
2020

21-
```yaml
22-
LLM_ADVISOR_ENABLED: true
23-
LLM_PROVIDER: grok
24-
LLM_MODEL_NAME: grok-3-mini
25-
LLM_MAX_TOKENS: 1000
26-
LLM_TEMPERATURE: 0.1
27-
```
21+
```yaml
22+
LLM_ADVISOR_ENABLED: true
23+
LLM_PROVIDER: grok
24+
LLM_MODEL_NAME: grok-3-mini
25+
LLM_MAX_TOKENS: 1000
26+
LLM_TEMPERATURE: 0.1
27+
```
2828
2929
## Official Model List
3030

docs/llm-provider/llm_provider_huggingface.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,25 @@ pip install langchain-huggingface transformers torch
2020
### Configuration
2121

2222
1. **Optional: Get API Token** (for private models or hosted inference):
23+
2324
- Go to [Hugging Face Settings](https://huggingface.co/settings/tokens)
2425
- Create a new token
2526

2627
2. **Set Environment Variable** (optional):
2728

28-
```bash
29-
export HUGGINGFACE_API_TOKEN=hf_your-token
30-
```
29+
```bash
30+
export HUGGINGFACE_API_TOKEN=hf_your-token
31+
```
3132

3233
3. **Configure MegaLinter**:
3334

34-
```yaml
35-
LLM_ADVISOR_ENABLED: true
36-
LLM_PROVIDER: huggingface
37-
LLM_MODEL_NAME: microsoft/DialoGPT-medium
38-
LLM_MAX_TOKENS: 1000
39-
LLM_TEMPERATURE: 0.1
40-
```
35+
```yaml
36+
LLM_ADVISOR_ENABLED: true
37+
LLM_PROVIDER: huggingface
38+
LLM_MODEL_NAME: microsoft/DialoGPT-medium
39+
LLM_MAX_TOKENS: 1000
40+
LLM_TEMPERATURE: 0.1
41+
```
4142
4243
## Official Model List
4344

docs/llm-provider/llm_provider_mistralai.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ Mistral AI provides high-quality language models with European data residency an
1212

1313
2. **Set Environment Variable**:
1414

15-
```bash
16-
export MISTRAL_API_KEY=your-mistral-api-key
17-
```
15+
```bash
16+
export MISTRAL_API_KEY=your-mistral-api-key
17+
```
1818

1919
3. **Configure MegaLinter**:
2020

21-
```yaml
22-
LLM_ADVISOR_ENABLED: true
23-
LLM_PROVIDER: mistral
24-
LLM_MODEL_NAME: mistral-small-latest
25-
LLM_MAX_TOKENS: 1000
26-
LLM_TEMPERATURE: 0.1
27-
```
21+
```yaml
22+
LLM_ADVISOR_ENABLED: true
23+
LLM_PROVIDER: mistral
24+
LLM_MODEL_NAME: mistral-small-latest
25+
LLM_MAX_TOKENS: 1000
26+
LLM_TEMPERATURE: 0.1
27+
```
2828
2929
## Official Model List
3030
@@ -53,16 +53,19 @@ MISTRAL_BASE_URL: https://api.mistral.ai
5353
### Common Issues
5454
5555
1. **"Authentication failed"**
56+
5657
- Verify your API key is correct
5758
- Check account status and credits
5859
- Ensure proper permissions
5960
6061
2. **"Rate limit exceeded"**
62+
6163
- Check your plan's limits
6264
- Implement exponential backoff
6365
- Contact support for higher limits
6466
6567
3. **"Model not found"**
68+
6669
- Use latest model names
6770
- Check availability in your region
6871
- Verify spelling and format

docs/llm-provider/llm_provider_ollama.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,25 @@ OLLAMA_BASE_URL: http://your-server:11434
6666
### Common Issues
6767
6868
1. **"Connection refused"**
69+
6970
- Ensure Ollama is running: `ollama serve`
7071
- Check the correct port (default: 11434)
7172
- Verify firewall settings
7273

7374
2. **"Model not found"**
75+
7476
- Pull the model first: `ollama pull model-name`
7577
- List available models: `ollama list`
7678
- Use exact model name with tag
7779

7880
3. **"Out of memory"**
81+
7982
- Use smaller models (7B instead of 13B)
8083
- Close other applications
8184
- Consider using quantized models
8285

8386
4. **Slow responses**
87+
8488
- Use smaller models for faster inference
8589
- Ensure sufficient RAM
8690
- Consider GPU acceleration if available

docs/llm-provider/llm_provider_openai.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ OpenAI provides state-of-the-art language models offering excellent code analysi
1212

1313
2. **Set Environment Variable**:
1414

15-
```bash
16-
export OPENAI_API_KEY=sk-your-api-key-here
17-
```
15+
```bash
16+
export OPENAI_API_KEY=sk-your-api-key-here
17+
```
1818

1919
3. **Configure MegaLinter**:
2020

21-
```yaml
22-
LLM_ADVISOR_ENABLED: true
23-
LLM_PROVIDER: openai
24-
LLM_MODEL_NAME: gpt-4.1-mini
25-
LLM_MAX_TOKENS: 1000
26-
LLM_TEMPERATURE: 0.1
27-
```
21+
```yaml
22+
LLM_ADVISOR_ENABLED: true
23+
LLM_PROVIDER: openai
24+
LLM_MODEL_NAME: gpt-4.1-mini
25+
LLM_MAX_TOKENS: 1000
26+
LLM_TEMPERATURE: 0.1
27+
```
2828
2929
## Official Model List
3030
@@ -56,16 +56,19 @@ OPENAI_ORGANIZATION: org-your-org-id
5656
### Common Issues
5757
5858
1. **"Invalid API key"**
59+
5960
- Verify your API key is correct
6061
- Check that your account has available credits
6162
- Ensure the key has proper permissions
6263
6364
2. **"Rate limit exceeded"**
65+
6466
- Reduce concurrent requests
6567
- Upgrade to a higher tier plan
6668
- Implement retry logic
6769
6870
3. **"Model not found"**
71+
6972
- Verify the model name is correct
7073
- Check if you have access to the model
7174
- Some models require special access

0 commit comments

Comments
 (0)