This commit is contained in:
Jennifer Player
2024-03-06 14:18:21 -05:00
committed by Kent Keirsey
parent 8df02623f2
commit 4af5a09a68
5 changed files with 13 additions and 9 deletions

View File

@ -287,7 +287,7 @@ async def update_model_record(
"description": "The model image was fetched successfully",
},
400: {"description": "Bad request"},
404: {"description": "The model image could not be found"}
404: {"description": "The model image could not be found"},
},
status_code=200,
)
@ -310,6 +310,7 @@ async def get_model_image(
except Exception:
raise HTTPException(status_code=404)
@model_manager_router.patch(
"/i/{key}/image",
operation_id="update_model_image",
@ -376,6 +377,7 @@ async def delete_model(
logger.error(str(e))
raise HTTPException(status_code=404, detail=str(e))
@model_manager_router.delete(
"/i/{key}/image",
operation_id="delete_model_image",