fix send message

This commit is contained in:
Ash
2023-01-24 20:23:27 +04:00
parent 7b87227cd2
commit cd6244d4b7

View File

@@ -656,7 +656,7 @@
if(encode(JSON.stringify(storyString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //(The number of tokens in the entire promt) need fix, it must count correctly (added +120, so that the description of the character does not hide) if(encode(JSON.stringify(storyString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //(The number of tokens in the entire promt) need fix, it must count correctly (added +120, so that the description of the character does not hide)
chatString = item+chatString; chatString = item+chatString;
if (is_pygmalion && i == 0) item=+'<START>'+item; //if (is_pygmalion && i == 0) item=+'<START>'+item;
arrMes[arrMes.length] = item; arrMes[arrMes.length] = item;
}else{ }else{
i = chat.length-1; i = chat.length-1;