mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Example message context fix
The default size of avatars has been changed to a larger one
This commit is contained in:
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 |
@@ -674,10 +674,10 @@
|
||||
//console.log(i+' '+chat.length);
|
||||
|
||||
if(i == chat.length-1){
|
||||
|
||||
let mesExmString = '';
|
||||
for(let iii = 0; iii < mesExamplesArray.length; iii++){//mesExamplesArray
|
||||
storyString = storyString+mesExamplesArray[iii];
|
||||
if(encode(JSON.stringify(storyString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //example of dialogs
|
||||
mesExmString = mesExmString+mesExamplesArray[iii];
|
||||
if(encode(JSON.stringify(storyString+mesExmString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //example of dialogs
|
||||
if(!is_pygmalion){
|
||||
mesExamplesArray[iii] = mesExamplesArray[iii].replace(/<START>/i, 'This is how '+name2+' should talk');//An example of how '+name2+' responds
|
||||
}
|
||||
|
@@ -385,7 +385,7 @@ async function charaWrite(img_url, data, name, response = undefined, mes = 'ok')
|
||||
try {
|
||||
// Load the image in any format
|
||||
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
|
||||
//const pngImage = image.toFormat('png');
|
||||
|
||||
|
Reference in New Issue
Block a user