post: commit afd4b2c in bojemoi
Some checks failed
Hugo Build & Deploy / build-deploy (push) Has been cancelled

This commit is contained in:
grafana-watcher
2026-07-21 19:52:04 +02:00
committed by Betty
parent 703395f30f
commit f4a6c2ef1d

View File

@@ -0,0 +1,50 @@
---
title: "[bojemoi] feat(alert-agent): intégration Kimi K3 (Moonshot AI) comme backend LLM"
date: 2026-07-21T19:52:04+02:00
draft: false
tags: ["commit", "bojemoi", "main"]
categories: ["Git Activity"]
summary: "Commit afd4b2c par grafana-watcher dans bojemoi"
author: "grafana-watcher"
---
## Commit `afd4b2c`
| | |
|---|---|
| **Repository** | bojemoi |
| **Branch** | `main` |
| **Author** | grafana-watcher |
| **Hash** | `afd4b2c1c71b19410ef6f8402735f8f54c1bce94` |
### Description
Remplace Ollama (abandonné) par Kimi K3 via API Moonshot. Le backend
est configurable via LLM_BACKEND ("kimi" ou "ollama") sans rebuild.
- llm.py: refactor en _call_kimi/_call_ollama, dispatch selon config
- config.py: ajout kimi_api_key (secret), kimi_model, llm_backend
- stack: secret kimi_api_key monté, LLM_BACKEND=kimi par défaut
- fallback LLM unavailable → notify_only (au lieu de noop)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
### Files Changed
```
M alert-agent/alert_agent/__main__.py
M alert-agent/alert_agent/config.py
M alert-agent/alert_agent/llm.py
M stack/48-service-alert-agent.yml
```
### Diff Summary
```
alert-agent/alert_agent/__main__.py | 4 +--
alert-agent/alert_agent/config.py | 12 +++++++-
alert-agent/alert_agent/llm.py | 60 ++++++++++++++++++++++---------------
stack/48-service-alert-agent.yml | 5 ++++
4 files changed, 54 insertions(+), 27 deletions(-)
```