Skip to content

Commit 37c7f7d

Browse files
committed
updated lite
1 parent a17c79b commit 37c7f7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

klite.embd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19716,7 +19716,7 @@ Current version indicated by LITEVER below.
1971619716
}
1971719717
}
1971819718

19719-
let instruct_turns = repack_instruct_turns(fulltxt, `%SpcStg%`,`%SpcEtg%`);
19719+
let instruct_turns = repack_instruct_turns(fulltxt, `%SpcStg%`,`%SpcEtg%`, true);
1972019720
fulltxt = "";
1972119721
for(let i=0;i<instruct_turns.length;++i)
1972219722
{
@@ -20163,7 +20163,7 @@ Current version indicated by LITEVER below.
2016320163
</div>`;
2016420164
}
2016520165

20166-
function repack_instruct_turns(input,usertag,aitag)
20166+
function repack_instruct_turns(input,usertag,aitag,allow_blank)
2016720167
{
2016820168
let myturnchat = false; //who is currently speaking?
2016920169
let chatunits = []; //parse chat body into nice chat chunks
@@ -20221,7 +20221,7 @@ Current version indicated by LITEVER below.
2022120221
}
2022220222
else
2022320223
{
20224-
if(curr.trim()!="")
20224+
if(allow_blank || curr.trim()!="")
2022520225
{
2022620226
chatunits.push({
2022720227
msg:curr,
@@ -20331,7 +20331,7 @@ Current version indicated by LITEVER below.
2033120331
let st = get_instruct_starttag(false);
2033220332
let et = get_instruct_endtag(false);
2033320333

20334-
let turns = repack_instruct_turns(input,st,et);
20334+
let turns = repack_instruct_turns(input,st,et,false);
2033520335
return turns;
2033620336
}
2033720337

0 commit comments

Comments
 (0)