kcpp image handling fix

This commit is contained in:
Concedo
2026-05-26 14:32:53 +08:00
parent 39a4ca08f4
commit e434b3e61b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5431,7 +5431,7 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
}
}
}
if(triggerff && kcpp_data->use_contextshift && (file_format == FileFormat::GGUF_GENERIC))
if(triggerff && kcpp_data->use_contextshift && (file_format == FileFormat::GGUF_GENERIC) && !media_data_changed)
{
DoContextShifting(llama_ctx_v4, draft_ctx, current_context_tokens, embd_inp, inputs.max_length, nctx, false);
triggersc = false;
+2 -2
View File
@@ -8731,8 +8731,6 @@ def show_gui():
# refresh
runopts_var.trace_add("write", changerunmode)
changerunmode(1,1,1)
global runmode_untouched
runmode_untouched = True
togglerope(1,1,1)
toggleflashattn(1,1,1)
togglectxshift(1,1,1)
@@ -8743,6 +8741,8 @@ def show_gui():
toggleadmin(1,1,1)
updatejinjathinktoggle(1,1,1)
togglerpcmode(1,1,1)
global runmode_untouched
runmode_untouched = True
# launch
def guilaunch():