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())