Commit 3217f0b
| Repository | bojemoi |
| Branch | main |
| Author | grafana-watcher |
| Hash | 3217f0b22abb1c42444282a068e544257b0dc725 |
Description
Remplace Ollama (trop lent) par Claude API (Anthropic). Le backend est sélectionnable via LLM_BACKEND: claude/kimi/ollama. Le LLM évalue désormais la sévérité réelle de l’alerte (critical/high/medium/low/info) indépendamment du label Prometheus.
- llm.py: ajout _call_claude + _extract_json pour parser la réponse
- config.py: claude_api_key (secret), claude_model, llm_backend=claude
- requirements.txt: anthropic>=0.40
- alerter.py: emoji selon sévérité LLM (🔴🟠🟡🔵⚪)
- webhook.py: sévérité Telegram = decision[“severity”] (LLM) > label Prometheus
- stack: LLM_BACKEND=claude, secret claude_api_key monté
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com