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
style(proxy): ruff format utils.py
jesusec799686a415
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.pyindex dee4c875c1a..ba84a603dd2 100644--- a/litellm/proxy/utils.py+++ b/litellm/proxy/utils.py@@ -3010,9 +3010,9 @@ class ProxyLogging:if not (RouteChecks.is_llm_api_route(route) or RouteChecks.is_info_route(route)):return False- return isinstance(- original_exception, (HTTPException, ProxyException, GuardrailRaisedException)- ) or (error_type == ProxyErrorTypes.auth_error)+ return isinstance(original_exception, (HTTPException, ProxyException, GuardrailRaisedException)) or (+ error_type == ProxyErrorTypes.auth_error+ )async def _handle_logging_proxy_only_error(self,@@ -3755,9 +3755,7 @@ class ProxyLogging:_deferred_cb: Final[Callable[..., Coroutine[object, object, object]] | None] = getattr(logging_obj, "_on_deferred_stream_complete", None)- _args: Final[tuple[object, ...] | None] = getattr(- logging_obj, "_deferred_stream_complete_args", None- )+ _args: Final[tuple[object, ...] | None] = getattr(logging_obj, "_deferred_stream_complete_args", None)if _deferred_cb is None or _args is None:returnassembled: Final = _args[0]