mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
fix(proxy): skip None model_name in clear_cache router eviction set
This commit is contained in:
parent
952127647c
commit
8982e1cef0
1 changed files with 2 additions and 1 deletions
|
|
@ -1755,7 +1755,8 @@ async def clear_cache():
|
|||
db_router_names = {
|
||||
model.get("model_name")
|
||||
for model in current_models
|
||||
if model.get("model_info", {}).get("db_model", False)
|
||||
if model.get("model_name") is not None
|
||||
and model.get("model_info", {}).get("db_model", False)
|
||||
and str(model.get("litellm_params", {}).get("model", "")).startswith("auto_router/")
|
||||
}
|
||||
for model_name in db_router_names:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue