mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
show more descriptive error messages on /health checks
This commit is contained in:
parent
b468ccbb77
commit
661bd1af66
1 changed files with 1 additions and 1 deletions
|
@ -5134,7 +5134,7 @@ async def ahealth_check(
|
||||||
|
|
||||||
if passed_in_mode is None:
|
if passed_in_mode is None:
|
||||||
return {
|
return {
|
||||||
"error": "Missing `mode`. Set the `mode` for the model - https://docs.litellm.ai/docs/proxy/health#embedding-models"
|
"error": f"Missing `mode`. Set the `mode` for the model - https://docs.litellm.ai/docs/proxy/health#embedding-models \n error:{str(e)}, \nstacktrace: {stack_trace}"
|
||||||
}
|
}
|
||||||
|
|
||||||
error_to_return = (
|
error_to_return = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue