Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix codeql

Sameer Kankutec4159a2ade2a
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