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: mastake env variable name
Yuta Saitofde68e4a29b2
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex f8c932db4d3..f70524426aa 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -1854,7 +1854,7 @@ class Logging(LiteLLMLoggingBaseClass):standard_logging_object=kwargs.get("standard_logging_object", None),)litellm_params = self.model_call_details.get("litellm_params", {})- is_async_logging_request = (+ is_sync_request = (litellm_params.get(CallTypes.acompletion.value, False) is not Trueand litellm_params.get(CallTypes.aresponses.value, False) is not Trueand litellm_params.get(CallTypes.aembedding.value, False) is not True@@ -2221,7 +2221,7 @@ class Logging(LiteLLMLoggingBaseClass):)if (isinstance(callback, CustomLogger)- and is_async_logging_request+ and is_sync_requestand self.call_type!= CallTypes.pass_through.value # pass-through endpoints call async_log_success_event): # custom logger class@@ -2249,7 +2249,7 @@ class Logging(LiteLLMLoggingBaseClass):)if (callable(callback) is True- and is_async_logging_request+ and is_sync_requestand customLogger is not None): # custom logger functionsprint_verbose(@@ -2700,7 +2700,7 @@ class Logging(LiteLLMLoggingBaseClass):): # prevent double loggingreturnlitellm_params = self.model_call_details.get("litellm_params", {})- is_async_logging_request = (+ is_sync_request = (litellm_params.get(CallTypes.acompletion.value, False) is not Trueand litellm_params.get(CallTypes.aresponses.value, False) is not Trueand litellm_params.get(CallTypes.aembedding.value, False) is not True@@ -2800,7 +2800,7 @@ class Logging(LiteLLMLoggingBaseClass):)if (isinstance(callback, CustomLogger)- and is_async_logging_request+ and is_sync_request): # custom logger classcallback.log_failure_event(start_time=start_time,