Bundle system-prompt.txt and copy to persistent volume on startup
Some checks failed
Auto Build and Push Docker Image / build (push) Failing after 8s
Some checks failed
Auto Build and Push Docker Image / build (push) Failing after 8s
- Include SchrottBot personality as bundled default - Copy to data/ on first startup (persistent, editable) - Load from persistent location after first run - Changes survive container rebuilds Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
19
README.md
19
README.md
@@ -127,15 +127,20 @@ AI_SYSTEM_PROMPT=Du bist ein freundlicher Chat-Bot...
|
||||
|
||||
### Prompt-System
|
||||
|
||||
- **Globaler System-Prompt** - Immer aktiv, geladen aus:
|
||||
1. `data/system-prompt.txt` (persistent, wird automatisch erstellt)
|
||||
2. Fallback: Default "SchrottBot"-Persönlichkeit
|
||||
- **Globaler System-Prompt** - Immer aktiv:
|
||||
- `data/system-prompt.txt` (persistentes Verzeichnis)
|
||||
- Wird beim ersten Start aus der mitgelieferten Vorlage kopiert
|
||||
- Kann bearbeitet werden, Änderungen überleben Container-Rebuilds
|
||||
- **Gruppen-Prompt** (pro Chat) - Leer voreingestellt, kann `/ai setup` ergänzen
|
||||
|
||||
**system-prompt.txt:**
|
||||
- Wird beim ersten Start automatisch in `data/` erstellt
|
||||
- Enthält die UlfBot/SchrottBot-Persönlichkeit
|
||||
- Kann bearbeitet werden, ohne den Container neu zu bauen
|
||||
**Ablauf beim ersten Start:**
|
||||
1. Bot prüft ob `data/system-prompt.txt` existiert
|
||||
2. Falls nicht → Kopiert von `dist/system-prompt.txt` (mitgelieferte Vorlage)
|
||||
3. Lädt System-Prompt aus `data/system-prompt.txt`
|
||||
|
||||
**Datei bearbeiten:**
|
||||
- `data/system-prompt.txt` kann direkt editiert werden
|
||||
- Neustart des Containers nicht nötig (wird bei jeder KI-Anfrage geladen)
|
||||
|
||||
## Technisches
|
||||
|
||||
|
||||
Reference in New Issue
Block a user