From 3fe98026ed2874a39e67fe91468deff75dcd6e9f Mon Sep 17 00:00:00 2001 From: Ayush Arora Date: Sat, 12 Sep 2026 02:24:25 +0530 Subject: [PATCH] fix(proxy): clean up config model parsing and satisfy strict type and lint gates --- litellm/proxy/proxy_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 481e4fb95fe..397cdf0c8c0 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -6446,11 +6446,11 @@ class ProxyConfig: raw_litellm_params = { # mutable-ok: resolved copy for router upsert k: (get_secret(v) if isinstance(v, str) and v.startswith("os.environ/") else v) for k, v in copy.deepcopy( - model.get("litellm_params") or dict() + model.get("litellm_params") or {} # mutable-ok: config fallback ).items() # mutable-ok: safe fallback } - model_info_dict = copy.deepcopy(model.get("model_info") or dict()) # mutable-ok: isolated info dict + model_info_dict = copy.deepcopy(model.get("model_info") or {}) # mutable-ok: config fallback model_id = model_info_dict.get("id", None) if model_id is None: model_id = llm_router.generate_model_id(