fix: use systemPrompt instead of prependContext for end marker instruction #5
@@ -22,7 +22,8 @@
|
|||||||
"debugLogChannelIds": [],
|
"debugLogChannelIds": [],
|
||||||
"discordControlApiBaseUrl": "http://127.0.0.1:8790",
|
"discordControlApiBaseUrl": "http://127.0.0.1:8790",
|
||||||
"discordControlApiToken": "<DISCORD_CONTROL_AUTH_TOKEN>",
|
"discordControlApiToken": "<DISCORD_CONTROL_AUTH_TOKEN>",
|
||||||
"discordControlCallerId": "agent-main"
|
"discordControlCallerId": "agent-main",
|
||||||
|
"moderatorBotToken": "<MODERATOR_BOT_TOKEN>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -726,8 +726,8 @@ export default {
|
|||||||
if (idStr) identity = idStr + "\n\n";
|
if (idStr) identity = idStr + "\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
api.logger.info(`whispergate: prepend end marker instruction for session=${key}, reason=${rec.decision.reason} isGroupChat=${isGroupChat}`);
|
api.logger.info(`whispergate: set system prompt for session=${key}, reason=${rec.decision.reason} isGroupChat=${isGroupChat}`);
|
||||||
return { prependContext: identity + instruction };
|
return { systemPrompt: identity + instruction };
|
||||||
});
|
});
|
||||||
|
|
||||||
// Register slash commands for Discord
|
// Register slash commands for Discord
|
||||||
|
|||||||
Reference in New Issue
Block a user