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 _handle_callback_failure
Ishaan Jafferede8944e49ae
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex bcd7379429b..458b02cc0db 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -120,7 +120,6 @@ from litellm.types.utils import (Usage,)from litellm.types.videos.main import VideoObject-from litellm.types.containers.main import ContainerObjectfrom litellm.utils import _get_base_model_from_metadata, executor, print_verbosefrom ..integrations.argilla import ArgillaLogger@@ -2837,9 +2836,7 @@ class Logging(LiteLLMLoggingBaseClass):))# Track callback logging failures in Prometheus- asyncio.create_task(- self._handle_callback_failure(callback=callback)- )+ self._handle_callback_failure(callback=callback)def _get_trace_id(self, service_name: Literal["langfuse"]) -> Optional[str]:"""@@ -4536,7 +4533,7 @@ class StandardLoggingPayloadSetup:def _get_status_fields(status: StandardLoggingPayloadStatus,- guardrail_information: Optional[list[dict]],+ guardrail_information: Optional[List[dict]],error_str: Optional[str],) -> "StandardLoggingPayloadStatusFields":"""