diff --git a/docs/CONFIG.example.json b/docs/CONFIG.example.json index d14f120..a18ed96 100644 --- a/docs/CONFIG.example.json +++ b/docs/CONFIG.example.json @@ -22,7 +22,8 @@ "debugLogChannelIds": [], "discordControlApiBaseUrl": "http://127.0.0.1:8790", "discordControlApiToken": "", - "discordControlCallerId": "agent-main" + "discordControlCallerId": "agent-main", + "moderatorBotToken": "" } } } diff --git a/plugin/index.ts b/plugin/index.ts index 2dd9411..0959331 100644 --- a/plugin/index.ts +++ b/plugin/index.ts @@ -726,8 +726,8 @@ export default { if (idStr) identity = idStr + "\n\n"; } - api.logger.info(`whispergate: prepend end marker instruction for session=${key}, reason=${rec.decision.reason} isGroupChat=${isGroupChat}`); - return { prependContext: identity + instruction }; + api.logger.info(`whispergate: set system prompt for session=${key}, reason=${rec.decision.reason} isGroupChat=${isGroupChat}`); + return { systemPrompt: identity + instruction }; }); // Register slash commands for Discord