model/unload should also return "OK", consistent with lora/unload

This commit is contained in:
Artificiangel 2024-04-28 08:26:42 -04:00
parent dce32fe2d9
commit d64459e20d

View File

@ -374,6 +374,8 @@ async def handle_unload_model():
async with io_semaphore: async with io_semaphore:
await run_in_executor(unload_model) await run_in_executor(unload_model)
return JSONResponse(content="OK")
@app.get("/v1/internal/lora/list", response_model=LoraListResponse, dependencies=check_admin_key) @app.get("/v1/internal/lora/list", response_model=LoraListResponse, dependencies=check_admin_key)
async def handle_list_loras(): async def handle_list_loras():