Merge pull request #5521 from BerriAI/litellm_health_checks

[Fix-Proxy] show more descriptive error messages on /health checks
This commit is contained in:
Ishaan Jaff 2024-09-04 19:42:10 -07:00 committed by GitHub
commit 5c1c0134b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"error:{str(e)}. Missing `mode`. Set the `mode` for the model - https://docs.litellm.ai/docs/proxy/health#embedding-models \nstacktrace: {stack_trace}"
} }
error_to_return = ( error_to_return = (