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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy): strip line breaks from alias resolution debug log
yassin0c65dcff2294
diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.pyindex 5f3bff1e4b7..15dd58baf35 100644--- a/litellm/proxy/auth/user_api_key_auth.py+++ b/litellm/proxy/auth/user_api_key_auth.py@@ -273,7 +273,11 @@ async def _resolve_router_settings_model_group_alias(target: Final = resolve_model_group_alias(settings.get("model_group_alias"), requested)if target is None or target == requested:return- verbose_proxy_logger.debug("router_settings.model_group_alias resolved %s -> %s before auth", requested, target)+ verbose_proxy_logger.debug(+ "router_settings.model_group_alias resolved %s -> %s before auth",+ requested.replace("\r", "").replace("\n", ""),+ target.replace("\r", "").replace("\n", ""),+ )request.scope.setdefault(CLIENT_REQUESTED_MODEL_SCOPE_KEY, requested)rewrite_request_model(request_data, request, target)