mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 22:27:10 +00:00
fix health check
This commit is contained in:
+4
-3
@@ -4798,9 +4798,10 @@ async def ahealth_check(
|
||||
if isinstance(stack_trace, str):
|
||||
stack_trace = stack_trace[:1000]
|
||||
if model not in litellm.model_cost and mode is None:
|
||||
raise Exception(
|
||||
"Missing `mode`. Set the `mode` for the model - https://docs.litellm.ai/docs/proxy/health#embedding-models"
|
||||
)
|
||||
return {
|
||||
"error": "Missing `mode`. Set the `mode` for the model - https://docs.litellm.ai/docs/proxy/health#embedding-models"
|
||||
}
|
||||
|
||||
error_to_return = str(e) + " stack trace: " + stack_trace
|
||||
return {"error": error_to_return}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user