mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(main.py): for health checks, don't use cached responses
This commit is contained in:
parent
d69edac11b
commit
62ad6f19b7
2 changed files with 22 additions and 0 deletions
|
@ -3259,6 +3259,9 @@ async def ahealth_check(
|
|||
organization=organization,
|
||||
)
|
||||
else:
|
||||
model_params["cache"] = {
|
||||
"no-cache": True
|
||||
} # don't used cached responses for making health check calls
|
||||
if mode == "embedding":
|
||||
model_params.pop("messages", None)
|
||||
model_params["input"] = input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue