Merge pull request #1307 from aisu-wata0/regexScript_promptOnly

Regex script: prompt only checkbox
This commit is contained in:
Cohee
2023-11-04 22:37:41 +02:00
committed by GitHub
4 changed files with 36 additions and 12 deletions

View File

@ -2632,6 +2632,13 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
coreChat.pop();
}
coreChat = coreChat.map(x => ({
...x,
mes: getRegexedString(x.mes, x.is_user ? regex_placement.USER_INPUT : regex_placement.AI_OUTPUT, {
isPrompt: true,
}),
}))
// Determine token limit
let this_max_context = getMaxContextSize();