fix(lint): remove mutable-dict default to satisfy LIT002 gate

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
khoapmdx-oss 2026-08-12 10:34:29 +07:00 • committed by LABMDKPhan
parent 06f7217edf
commit ff3cd1a266

View file

@ -3234,7 +3234,7 @@ class Router:
self._merge_tools_from_deployment(deployment=deployment, kwargs=kwargs)
model_info = deployment.get("model_info", {}).copy()
dep_litellm_params = deployment.get("litellm_params", {})
dep_litellm_params = deployment["litellm_params"]
if not isinstance(dep_litellm_params, dict):
dep_litellm_params = dep_litellm_params.model_dump(exclude_none=True)
for field in CustomPricingLiteLLMParams.model_fields: