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
refactor: move logging_utils.py deprecation fix to PR #21396
Julio Quinteros Proab912e5c8d3e
diff --git a/litellm/litellm_core_utils/logging_utils.py b/litellm/litellm_core_utils/logging_utils.pyindex 8cde8ccef1c..bf43519afc6 100644--- a/litellm/litellm_core_utils/logging_utils.py+++ b/litellm/litellm_core_utils/logging_utils.py@@ -1,6 +1,5 @@import asyncioimport functools-import inspectimport timefrom datetime import datetimefrom typing import TYPE_CHECKING, Any, List, Optional, Union@@ -271,7 +270,7 @@ def track_llm_api_timing():verbose_logger.debug(f"Error in service logging: {str(e)}")# Check if the function is async or sync- if inspect.iscoroutinefunction(func):+ if asyncio.iscoroutinefunction(func):return async_wrapperreturn sync_wrapper