Fix task regex final input pipeline

This commit is contained in:
Youzini-afk
2026-04-05 00:30:54 +08:00
parent 1eeb6f05b5
commit 5cc33fabda
7 changed files with 412 additions and 51 deletions

View File

@@ -526,7 +526,7 @@ function sanitizePromptMessages(
messages = [],
{
blockedContents = [],
regexStage = "input.finalPrompt",
regexStage = "",
debugState = null,
regexCollector = null,
} = {},
@@ -646,7 +646,7 @@ function sanitizeWorldInfoEntries(
{
mode: "aggressive",
blockedContents,
regexStage: "input.finalPrompt",
regexStage: "",
role: entry?.role || "system",
regexCollector,
},
@@ -728,7 +728,7 @@ function sanitizeWorldInfoContext(
{
mode: "aggressive",
blockedContents: runtimeBlockedContents,
regexStage: "input.finalPrompt",
regexStage: "",
role: message?.role || "system",
regexCollector,
},
@@ -1107,7 +1107,7 @@ export async function buildTaskPrompt(settings = {}, taskType, context = {}) {
{
mode: "final-safe",
blockedContents: worldInfoRuntimeBlockedContents,
regexStage: "input.finalPrompt",
regexStage: "",
role,
regexCollector: promptRegexInput,
},