From 5fe8cb56fc067cd843bf5bebfb759e554ceace4b Mon Sep 17 00:00:00 2001 From: Kent Keirsey <31807370+hipsterusername@users.noreply.github.com> Date: Thu, 6 Apr 2023 22:26:28 -0400 Subject: [PATCH] Correct response note --- invokeai/app/api/routers/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/api/routers/models.py b/invokeai/app/api/routers/models.py index aaeb9517d4..8332b44a35 100644 --- a/invokeai/app/api/routers/models.py +++ b/invokeai/app/api/routers/models.py @@ -121,7 +121,7 @@ async def delete_model(model_name: str) -> None: print(f">> Deleting Model: {model_name}") ApiDependencies.invoker.services.model_manager.del_model(model_name, delete_files=True) print(f">> Model Deleted: {model_name}") - raise HTTPException(status_code=200, detail=f"Model '{model_name}' deleted successfully") + raise HTTPException(status_code=204, detail=f"Model '{model_name}' deleted successfully") if not model_exists: print(f">> Model not found")