Skip to content

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]

v0 add helper for loging success/fail fallback events

Ishaan Jaffdc0559226a22
diff --git a/litellm/integrations/custom_logger.py b/litellm/integrations/custom_logger.py
index bf089c36468..98b0da25c5d 100644
--- a/litellm/integrations/custom_logger.py
+++ b/litellm/integrations/custom_logger.py
@@ -58,6 +58,13 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac
def pre_call_check(self, deployment: dict) -> Optional[dict]:
pass
+ #### Fallback Events - router/proxy only ####
+ async def log_success_fallback_event(self, original_model_group: str, kwargs: dict):
+ pass
+
+ async def log_failure_fallback_event(self, original_model_group: str, kwargs: dict):
+ pass
+
#### ADAPTERS #### Allow calling 100+ LLMs in custom format - https://github.com/BerriAI/litellm/pulls
def translate_completion_input_params(