mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-17 04:19:40 +00:00
updated lite
This commit is contained in:
parent
77b9a83956
commit
378c3dd40c
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue