Model: Raise a 503 exception with model checks
Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
parent
136c8139f9
commit
f4757d31bd
1 changed files with 2 additions and 2 deletions
|
|
@ -224,7 +224,7 @@ async def check_model_container():
|
|||
exc_info=False,
|
||||
).error.message
|
||||
|
||||
raise HTTPException(400, error_message)
|
||||
raise HTTPException(503, error_message)
|
||||
|
||||
|
||||
async def check_embeddings_container():
|
||||
|
|
@ -240,4 +240,4 @@ async def check_embeddings_container():
|
|||
exc_info=False,
|
||||
).error.message
|
||||
|
||||
raise HTTPException(400, error_message)
|
||||
raise HTTPException(503, error_message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue