bug fixing

This commit is contained in:
2026-01-26 13:09:32 +01:00
parent f8684077a2
commit 29a7f12abe
7 changed files with 597 additions and 17 deletions

View File

@@ -61,14 +61,20 @@ pip install -e .
### 3. Configure News Agent
```bash
# Copy environment template
cp .env.example .env
# Run setup script to copy config files
./setup.sh
# Edit .env and add your credentials
# OR manually copy files:
cp .env.example .env
cp config.yaml.example config.yaml
```
**Edit `.env` file:**
```bash
nano .env
```
**Required in `.env`:**
Add your credentials (NO quotes needed):
```bash
# OpenRouter API Key
OPENROUTER_API_KEY=sk-or-v1-...your-key-here...
@@ -78,7 +84,7 @@ SMTP_USERNAME=your-email@yourdomain.com
SMTP_PASSWORD=your-smtp-password
```
**Edit `config.yaml`:**
**Edit `config.yaml` file:**
```bash
nano config.yaml
```
@@ -101,10 +107,13 @@ email:
- **Outlook/Office365**: `smtp.office365.com:587`
- **SendGrid**: `smtp.sendgrid.net:587`, use API key as password
Optionally adjust:
- AI model (default: `google/gemini-flash-1.5-8b` - fast and cheap)
- Filtering threshold (default: 6.5/10)
- Max articles per digest (default: 15)
**Important settings to adjust:**
- `ai.model`: Use `openai/gpt-4o-mini` (recommended, ~$0.05/day) or see MODELS.md
- `ai.filtering.min_score`: Lower = more articles (5.5 recommended, was 6.5)
- `ai.filtering.max_articles`: Maximum articles per digest (default: 15)
- `email.to`: Your email address
- `email.from`: Sender address
- `smtp`: Your mail server settings
- RSS sources (add/remove feeds)
- Your interests for AI filtering