mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix send message
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user