From c4159a2ade2a462c33d9e3f142715a18cf702a0e Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Sat, 28 Mar 2026 00:01:33 +0530 Subject: [PATCH] Fix codeql --- litellm/proxy/litellm_pre_call_utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/litellm_pre_call_utils.py b/litellm/proxy/litellm_pre_call_utils.py index a605f3ee23b..ba9577f35d7 100644 --- a/litellm/proxy/litellm_pre_call_utils.py +++ b/litellm/proxy/litellm_pre_call_utils.py @@ -1355,8 +1355,10 @@ def _update_model_if_team_alias_exists( "New sibling deployments may be unreachable. " "Set LITELLM_ENABLE_TEAM_STALE_ALIAS_BYPASS=true to enable " "team-scoped sibling routing.", - _model, - user_api_key_dict.team_id, + str(_model).replace("\n", "").replace("\r", ""), + str(user_api_key_dict.team_id) + .replace("\n", "") + .replace("\r", ""), ) data["model"] = aliased_target