diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index 7134f52c95..0b152e0dda 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 (