mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
Fix world info custom filter payload sanitization
This commit is contained in:
@@ -670,6 +670,18 @@ try {
|
||||
customInterpolatedPromptBuild.systemPrompt,
|
||||
/<status_current_variable>secret=true<\/status_current_variable>/,
|
||||
);
|
||||
const customInterpolatedPayload = buildTaskLlmPayload(
|
||||
customInterpolatedPromptBuild,
|
||||
"unused fallback",
|
||||
);
|
||||
assert.equal(
|
||||
customInterpolatedPayload.promptMessages.some((message) =>
|
||||
/<status_current_variable>secret=true<\/status_current_variable>/.test(
|
||||
message.content,
|
||||
),
|
||||
),
|
||||
true,
|
||||
);
|
||||
|
||||
const noWorldInfoBlockSettings = {
|
||||
taskProfiles: {
|
||||
|
||||
Reference in New Issue
Block a user