Skip to content

Commit

Permalink
add stub for useless endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Mar 4, 2024
1 parent e0d6fbb commit b67a906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions koboldcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit b67a906

Please sign in to comment.