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
test fix
Ishaan Jaff52ed60ca4510
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex 7134f52c95a..0b152e0dda3 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -1164,15 +1164,6 @@ class Logging(LiteLLMLoggingBaseClass):used for consistent cost calculation across response headers + logging integrations."""-- # Check if response_cost is already calculated and stored in model_call_details- # This is used by passthrough endpoints that calculate costs manually- if (- hasattr(self, "model_call_details")- and self.model_call_details.get("response_cost") is not None- ):- return self.model_call_details["response_cost"]-if isinstance(result, BaseModel) and hasattr(result, "_hidden_params"):hidden_params = getattr(result, "_hidden_params", {})if (