Correct response note

This commit is contained in:
Kent Keirsey 2023-04-06 22:26:28 -04:00
parent 7919d81fb1
commit 5fe8cb56fc

View File

@ -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")