mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-15 11:29:43 +00:00
updated lite
This commit is contained in:
parent
a17c79b1a9
commit
37c7f7d5dd
1 changed files with 4 additions and 4 deletions
|
@ -19716,7 +19716,7 @@ Current version indicated by LITEVER below.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let instruct_turns = repack_instruct_turns(fulltxt, `%SpcStg%`,`%SpcEtg%`);
|
let instruct_turns = repack_instruct_turns(fulltxt, `%SpcStg%`,`%SpcEtg%`, true);
|
||||||
fulltxt = "";
|
fulltxt = "";
|
||||||
for(let i=0;i<instruct_turns.length;++i)
|
for(let i=0;i<instruct_turns.length;++i)
|
||||||
{
|
{
|
||||||
|
@ -20163,7 +20163,7 @@ Current version indicated by LITEVER below.
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function repack_instruct_turns(input,usertag,aitag)
|
function repack_instruct_turns(input,usertag,aitag,allow_blank)
|
||||||
{
|
{
|
||||||
let myturnchat = false; //who is currently speaking?
|
let myturnchat = false; //who is currently speaking?
|
||||||
let chatunits = []; //parse chat body into nice chat chunks
|
let chatunits = []; //parse chat body into nice chat chunks
|
||||||
|
@ -20221,7 +20221,7 @@ Current version indicated by LITEVER below.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(curr.trim()!="")
|
if(allow_blank || curr.trim()!="")
|
||||||
{
|
{
|
||||||
chatunits.push({
|
chatunits.push({
|
||||||
msg:curr,
|
msg:curr,
|
||||||
|
@ -20331,7 +20331,7 @@ Current version indicated by LITEVER below.
|
||||||
let st = get_instruct_starttag(false);
|
let st = get_instruct_starttag(false);
|
||||||
let et = get_instruct_endtag(false);
|
let et = get_instruct_endtag(false);
|
||||||
|
|
||||||
let turns = repack_instruct_turns(input,st,et);
|
let turns = repack_instruct_turns(input,st,et,false);
|
||||||
return turns;
|
return turns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue