fix: use systemPrompt instead of prependContext for end marker instruction #5
Reference in New Issue
Block a user
Delete Branch "fix/moderator-and-system-prompt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
Fix prompt injection: Changed
before_prompt_buildhook to returnsystemPromptinstead ofprependContext. This ensures the end marker instruction is injected once per session as a system prompt, not repeatedly prepended to each user message.Add moderatorBotToken to config docs: Added
moderatorBotTokenfield to CONFIG.example.json for documentation.Related Issues