updated lite

This commit is contained in:
Concedo 2025-04-27 01:46:52 +08:00
parent 77b9a83956
commit 378c3dd40c

View file

@ -15960,7 +15960,7 @@ Current version indicated by LITEVER below.
//fix alpaca leakage
if(localsettings.fix_alpaca_leak && (localsettings.opmode == 2 || localsettings.opmode == 3 || localsettings.opmode == 4) && get_instruct_starttag(true).toLowerCase().includes("### instruction"))
{
let matches = gentxt.match(/\n### ([^\s]+?):\n/g);
let matches = gentxt.match(/\n### (instruction|response)\n|\n### ([^\s]+?):\n/gi);
for(let m in matches)
{
let foundStop = gentxt.indexOf(matches[m]);