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
docs update log stream event
Ishaan Jaff4e9c2d5b21f9
diff --git a/docs/my-website/docs/observability/custom_callback.md b/docs/my-website/docs/observability/custom_callback.mdindex 373b4a96c08..cc586b2e5d9 100644--- a/docs/my-website/docs/observability/custom_callback.md+++ b/docs/my-website/docs/observability/custom_callback.md@@ -20,9 +20,7 @@ class MyCustomHandler(CustomLogger):def log_post_api_call(self, kwargs, response_obj, start_time, end_time):print(f"Post-API Call")- def log_stream_event(self, kwargs, response_obj, start_time, end_time):- print(f"On Stream")-+def log_success_event(self, kwargs, response_obj, start_time, end_time):print(f"On Success")@@ -30,9 +28,6 @@ class MyCustomHandler(CustomLogger):print(f"On Failure")#### ASYNC #### - for acompletion/aembeddings-- async def async_log_stream_event(self, kwargs, response_obj, start_time, end_time):- print(f"On Async Streaming")async def async_log_success_event(self, kwargs, response_obj, start_time, end_time):print(f"On Async Success")@@ -127,8 +122,7 @@ from litellm import acompletionclass MyCustomHandler(CustomLogger):#### ASYNC ####- async def async_log_stream_event(self, kwargs, response_obj, start_time, end_time):- print(f"On Async Streaming")+async def async_log_success_event(self, kwargs, response_obj, start_time, end_time):print(f"On Async Success")diff --git a/docs/my-website/docs/proxy/call_hooks.md b/docs/my-website/docs/proxy/call_hooks.mdindex 6651393efe9..8ea220cfa10 100644--- a/docs/my-website/docs/proxy/call_hooks.md+++ b/docs/my-website/docs/proxy/call_hooks.md@@ -139,9 +139,6 @@ class MyCustomHandler(CustomLogger): # https://docs.litellm.ai/docs/observabilit#### ASYNC ####- async def async_log_stream_event(self, kwargs, response_obj, start_time, end_time):- pass-async def async_log_pre_api_call(self, model, messages, kwargs):passdiff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.mdindex 0c9dd23f56c..1a541820ae2 100644--- a/docs/my-website/docs/proxy/logging.md+++ b/docs/my-website/docs/proxy/logging.md@@ -1504,9 +1504,6 @@ class MyCustomHandler(CustomLogger):def log_post_api_call(self, kwargs, response_obj, start_time, end_time):print(f"Post-API Call")-- def log_stream_event(self, kwargs, response_obj, start_time, end_time):- print(f"On Stream")def log_success_event(self, kwargs, response_obj, start_time, end_time):print("On Success")