mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-08 01:41:37 +00:00
stub loras endpoint for comfy
This commit is contained in:
parent
fd0d0cab03
commit
d07d2c1b39
1 changed files with 2 additions and 0 deletions
|
|
@ -3804,6 +3804,8 @@ Change Mode<br>
|
|||
response_body = (json.dumps([]).encode())
|
||||
else:
|
||||
response_body = (json.dumps([friendlysdmodelname]).encode())
|
||||
elif clean_path=='/api/models/loras' or clean_path=='/models/loras':
|
||||
response_body = (json.dumps([]).encode())
|
||||
elif clean_path=='/view' or clean_path=='/view.png' or clean_path=='/api/view' or clean_path.startswith('/view_image'): #emulate comfyui
|
||||
content_type = 'image/png'
|
||||
response_body = lastgeneratedcomfyimg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue