mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-03 01:55:07 -05:00
Correct response note
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user