email testing

This commit is contained in:
2026-01-26 12:55:56 +01:00
parent e64465a7e6
commit f8684077a2
7 changed files with 447 additions and 12 deletions

View File

@@ -102,7 +102,7 @@ email:
- **SendGrid**: `smtp.sendgrid.net:587`, use API key as password
Optionally adjust:
- AI model (default: `google/gemini-flash-1.5` - fast and cheap)
- AI model (default: `google/gemini-flash-1.5-8b` - fast and cheap)
- Filtering threshold (default: 6.5/10)
- Max articles per digest (default: 15)
- RSS sources (add/remove feeds)
@@ -204,11 +204,15 @@ sources:
### AI Configuration
**Models** (from cheap to expensive):
- `google/gemini-flash-1.5` - Fast, cheap, good quality (recommended)
- `meta-llama/llama-3.1-8b-instruct` - Very cheap
- `google/gemini-flash-1.5-8b` - Fast, cheap, good quality (recommended)
- `google/gemini-2.0-flash-exp:free` - Free, experimental (good for testing)
- `meta-llama/llama-3.1-8b-instruct:free` - Free, decent quality
- `anthropic/claude-3.5-haiku` - Better quality, slightly more expensive
- `openai/gpt-4o-mini` - Good quality, moderate price
See **[MODELS.md](MODELS.md)** for detailed comparison and selection guide.
Full list at: https://openrouter.ai/models
**Filtering:**
```yaml
ai:
@@ -263,9 +267,16 @@ systemctl --user restart news-agent.timer
### API Errors
**Error: "No endpoints found for [model]"**
- The model name is incorrect
- Check correct model names in `MODELS.md`
- Update `config.yaml` with correct model ID
**Other API errors:**
1. **Verify API key in `.env`**
2. **Check OpenRouter credit balance:** https://openrouter.ai/credits
3. **Check rate limits in logs**
4. **Try a different model** (see `MODELS.md`)
### Service Not Running
@@ -290,12 +301,16 @@ python -m src.main
## Cost Estimation
Using `google/gemini-flash-1.5` (recommended):
Using `google/gemini-flash-1.5-8b` (recommended):
- **Daily:** ~$0.05-0.15 (varies by article count)
- **Monthly:** ~$1.50-4.50
- **Yearly:** ~$18-54
**Free Options:**
- `google/gemini-2.0-flash-exp:free` - Completely free (experimental)
- `meta-llama/llama-3.1-8b-instruct:free` - Completely free
Factors affecting cost:
- Number of new articles
- Content length