From cd6244d4b7b906b4ecd87fc5d61e677da05d67cd Mon Sep 17 00:00:00 2001 From: Ash Date: Tue, 24 Jan 2023 20:23:27 +0400 Subject: [PATCH] fix send message --- public/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index ee1ac9645..ad9927b0c 100644 --- a/public/index.html +++ b/public/index.html @@ -571,7 +571,7 @@ } var chatString = ''; var arrMes = []; - + var charDescription = $.trim(characters[this_chid].description); var charPersonality = $.trim(characters[this_chid].personality); var Scenario = $.trim(characters[this_chid].scenario); @@ -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) chatString = item+chatString; - if (is_pygmalion && i == 0) item=+''+item; + //if (is_pygmalion && i == 0) item=+''+item; arrMes[arrMes.length] = item; }else{ i = chat.length-1;