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]

style(logging): ruff format litellm_logging.py

kerryf7b11b3430c2
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py
index 3ef26280e19..7bad711940e 100644
--- a/litellm/litellm_core_utils/litellm_logging.py
+++ b/litellm/litellm_core_utils/litellm_logging.py
@@ -1769,7 +1769,9 @@ class Logging(LiteLLMLoggingBaseClass):
if isinstance(result_hidden_params, dict)
else getattr(result_hidden_params, "additional_headers", None)
)
- if isinstance(priced_result, (BaseModel, HttpxBinaryResponseContent)) and hasattr(priced_result, "_hidden_params"):
+ if isinstance(priced_result, (BaseModel, HttpxBinaryResponseContent)) and hasattr(
+ priced_result, "_hidden_params"
+ ):
hidden_params: Final = result_hidden_params
if (
"response_cost" in hidden_params and hidden_params["response_cost"] is not None