Example message context fix

The default size of avatars has been changed to a larger one
This commit is contained in:
Ash
2023-01-26 20:40:43 +04:00
parent e499f6bfb4
commit e63968212c
5 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 396 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 420 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 291 KiB

View File

@@ -674,10 +674,10 @@
//console.log(i+' '+chat.length); //console.log(i+' '+chat.length);
if(i == chat.length-1){ if(i == chat.length-1){
let mesExmString = '';
for(let iii = 0; iii < mesExamplesArray.length; iii++){//mesExamplesArray for(let iii = 0; iii < mesExamplesArray.length; iii++){//mesExamplesArray
storyString = storyString+mesExamplesArray[iii]; mesExmString = mesExmString+mesExamplesArray[iii];
if(encode(JSON.stringify(storyString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //example of dialogs if(encode(JSON.stringify(storyString+mesExmString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //example of dialogs
if(!is_pygmalion){ if(!is_pygmalion){
mesExamplesArray[iii] = mesExamplesArray[iii].replace(/<START>/i, 'This is how '+name2+' should talk');//An example of how '+name2+' responds mesExamplesArray[iii] = mesExamplesArray[iii].replace(/<START>/i, 'This is how '+name2+' should talk');//An example of how '+name2+' responds
} }

View File

@@ -385,7 +385,7 @@ async function charaWrite(img_url, data, name, response = undefined, mes = 'ok')
try { try {
// Load the image in any format // Load the image in any format
sharp.cache(false); sharp.cache(false);
var image = await sharp(img_url).resize(170, 234).toFormat('png').toBuffer(); var image = await sharp(img_url).resize(400, 600).toFormat('png').toBuffer();// old 170 234
// Convert the image to PNG format // Convert the image to PNG format
//const pngImage = image.toFormat('png'); //const pngImage = image.toFormat('png');