updated lite

This commit is contained in:
Concedo 2026-04-09 14:32:08 +08:00
parent f6199d42e1
commit 2b1282a664

View file

@ -5741,7 +5741,7 @@ Current version indicated by LITEVER below.
let instag = localsettings.instruct_starttag;
if(instag=="{{[INPUT]}}" && !(custom_kobold_endpoint != "" && is_using_kcpp_with_autotags()))
{
if(!localsettings.autoguess_third_party)
if(!localsettings.autoguess_third_party && is_using_custom_ep()) //allow horde to use placeholder
{
instag = "\n### Instruction:\n"; //backend not compatible with auto
}
@ -5757,7 +5757,7 @@ Current version indicated by LITEVER below.
let instag = localsettings.instruct_endtag;
if(instag=="{{[OUTPUT]}}" && !(custom_kobold_endpoint != "" && is_using_kcpp_with_autotags()))
{
if(!localsettings.autoguess_third_party)
if(!localsettings.autoguess_third_party && is_using_custom_ep()) //allow horde to use placeholder
{
instag = "\n### Response:\n"; //backend not compatible with auto
}
@ -10565,10 +10565,6 @@ Current version indicated by LITEVER below.
{
completed_imgs_meta[key].data = oldb64;
}
if(completed_imgs_meta[key] && completed_imgs_meta[key].visionmode==4)
{
completed_imgs_meta[key].visionmode = 3; //todo: temporary backwards compat, to be removed.
}
}
}
}
@ -24359,6 +24355,8 @@ Current version indicated by LITEVER below.
{
insertAIVisionImages = []; //a bit hacky
insertAIAudioSounds = [];
//perform a little surgery on images: shift them from an assistant's turn into a user's turn
fulltxt = fulltxt.replace(/(\[<\|h\|.+?\|h\|>\](?:\s*\[<\|h\|.+?\|h\|>\])*)(\s{0,3})(\{\{\[INPUT\]\}\})/g,"$3$2$1");
fulltxt = fulltxt.replace(/\[<\|h\|(.+?)\|h\|>\]/g, function (_match, inner) {
let imghash = inner;
let foundmeta = completed_imgs_meta[imghash];