From 4e9c2d5b21f9be1d0cf5e7bb456d360550ec9e77 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 1 Feb 2025 16:33:28 -0800 Subject: [PATCH] docs update log stream event --- docs/my-website/docs/observability/custom_callback.md | 10 ++-------- docs/my-website/docs/proxy/call_hooks.md | 3 --- docs/my-website/docs/proxy/logging.md | 3 --- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/docs/my-website/docs/observability/custom_callback.md b/docs/my-website/docs/observability/custom_callback.md index 373b4a96c0..cc586b2e5d 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 acompletion class 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.md index 6651393efe..8ea220cfa1 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): pass diff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.md index 0c9dd23f56..1a541820ae 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")