From b67a90624466ca22f98463d12fca43bdd9c2a3cc Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:29:08 +0800 Subject: [PATCH] add stub for useless endpoints --- koboldcpp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koboldcpp.py b/koboldcpp.py index 1b0f6c42e7fbe..7e35777796432 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -983,6 +983,10 @@ def do_GET(self): response_body = (json.dumps([]).encode()) else: response_body = (json.dumps([{"name":"Euler a","aliases":["k_euler_a","k_euler_ancestral"],"options":{}},{"name":"Euler","aliases":["k_euler"],"options":{}},{"name":"Heun","aliases":["k_heun"],"options":{}},{"name":"DPM2","aliases":["k_dpm_2"],"options":{}},{"name":"DPM++ 2M","aliases":["k_dpmpp_2m"],"options":{}}]).encode()) + elif self.path.endswith('/sdapi/v1/latent-upscale-modes'): + response_body = (json.dumps([]).encode()) + elif self.path.endswith('/sdapi/v1/upscalers'): + response_body = (json.dumps([]).encode()) elif self.path=="/api":