From b0735b503cdecd1b08f56df076f9ebb2a564e3cd Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Thu, 19 Feb 2026 07:21:49 -0300 Subject: [PATCH] [WIP] support for customizing LoRA weights through the sdapi --- koboldcpp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index 4c68638a61b..f256f9f6faf 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -3992,6 +3992,9 @@ def do_GET(self): elif clean_path.endswith('/v1/models') or clean_path=='/models': response_body = (json.dumps({"object":"list","data":[{"id":friendlymodelname,"object":"model","created":int(time.time()),"owned_by":"koboldcpp","permission":[],"root":"koboldcpp"}]}).encode()) + elif clean_path.endswith('/sdapi/v1/loras'): + response_body = (json.dumps([])).encode() + elif clean_path.endswith('/sdapi/v1/upscalers'): if args.sdupscaler: response_body = (json.dumps([{"name":"ESRGAN_4x","model_name":"ESRGAN_4x","model_path":"upscaler_model.gguf","model_url":None,"scale":4}]).encode())