From 348f7bf7f422d9a0528e9c3ff983800ea91f8e68 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 6 Aug 2026 22:01:45 +0800 Subject: [PATCH] fix autoswap --- koboldcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koboldcpp.py b/koboldcpp.py index 93f3ad7c7..11c6eb70d 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -4985,7 +4985,7 @@ class KcppProxyHandler(http.server.BaseHTTPRequestHandler): whitelist = get_current_admindir_list() # see if its an allowed swap if was_auto_unloaded and not model_name: model_name = "initial_model" - if is_different_model and (model_name in whitelist): + if model_name and model_name != global_memory["current_model"] and (model_name in whitelist): model_switch_pass = True # only claim the request if we really are swapping global_memory["last_active_timestamp"] = datetime.now() global_memory["triggered_sleeping"] = False