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 black formatting
Ryan Crabbeae21527aeaee
diff --git a/litellm/integrations/custom_logger.py b/litellm/integrations/custom_logger.pyindex 0b198ed8d1d..cccabf53e51 100644--- a/litellm/integrations/custom_logger.py+++ b/litellm/integrations/custom_logger.py@@ -178,9 +178,7 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbacasync def async_log_failure_event(self, kwargs, response_obj, start_time, end_time):pass- async def async_log_audit_log_event(- self, audit_log: "StandardAuditLogPayload"- ):+ async def async_log_audit_log_event(self, audit_log: "StandardAuditLogPayload"):"""Called when an audit log is created. Override in subclasses to handle."""passdiff --git a/litellm/proxy/management_helpers/audit_logs.py b/litellm/proxy/management_helpers/audit_logs.pyindex a26a38bc4cd..08d92c3e6a6 100644--- a/litellm/proxy/management_helpers/audit_logs.py+++ b/litellm/proxy/management_helpers/audit_logs.py@@ -101,9 +101,7 @@ async def _dispatch_audit_log_to_callbacks(continueif isinstance(resolved, CustomLogger):- task = asyncio.create_task(- resolved.async_log_audit_log_event(payload)- )+ task = asyncio.create_task(resolved.async_log_audit_log_event(payload))task.add_done_callback(_audit_log_task_done_callback)except Exception as e:verbose_proxy_logger.error(