Load system prompt from persistent file

- Load system prompt from data/system-prompt.txt (persistent)
- Fallback to AI_SYSTEM_PROMPT env variable
- Fallback to hardcoded default
- File can be edited without rebuilding container
- Includes default UlfBot/SchrottBot personality

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 10:54:36 +01:00
parent cffc818dd9
commit cfa281e676
5 changed files with 58 additions and 3 deletions

View File

@@ -127,9 +127,17 @@ AI_SYSTEM_PROMPT=Du bist ein freundlicher Chat-Bot...
### Prompt-System
- **Globaler System-Prompt** (.env) - Immer aktiv
- **Globaler System-Prompt** - Immer aktiv, geladen aus:
1. `data/system-prompt.txt` (falls vorhanden)
2. `AI_SYSTEM_PROMPT` aus `.env` (Fallback)
- **Gruppen-Prompt** (pro Chat) - Ergänzt globalen Prompt
**Beispiel system-prompt.txt:**
```
data/system-prompt.txt
```
Die Datei kann bearbeitet werden, ohne den Container neu zu bauen.
## Technisches
### Architektur