From 26bdf7b7a85fe4ca1fa7148a009ff62506ab0de1 Mon Sep 17 00:00:00 2001 From: Kazuki Matsumaru Date: Wed, 7 Jan 2026 03:28:01 +0900 Subject: [PATCH] Remove redundant comments about setting litellm.callbacks (#18711) - Removed duplicate comment in test_router_endpoints.py - Removed duplicate comment in logging.md - Kept clearer comment: 'Set litellm.callbacks = [proxy_handler_instance] on the proxy' --- docs/my-website/docs/proxy/logging.md | 1 - tests/router_unit_tests/test_router_endpoints.py | 1 - 2 files changed, 2 deletions(-) diff --git a/docs/my-website/docs/proxy/logging.md b/docs/my-website/docs/proxy/logging.md index 30ffa58513..5fe8f17d7b 100644 --- a/docs/my-website/docs/proxy/logging.md +++ b/docs/my-website/docs/proxy/logging.md @@ -1736,7 +1736,6 @@ class MyCustomHandler(CustomLogger): proxy_handler_instance = MyCustomHandler() # Set litellm.callbacks = [proxy_handler_instance] on the proxy -# need to set litellm.callbacks = [proxy_handler_instance] # on the proxy ``` #### Step 2 - Pass your custom callback class in `config.yaml` diff --git a/tests/router_unit_tests/test_router_endpoints.py b/tests/router_unit_tests/test_router_endpoints.py index d913539417..b6ce6b03c4 100644 --- a/tests/router_unit_tests/test_router_endpoints.py +++ b/tests/router_unit_tests/test_router_endpoints.py @@ -89,7 +89,6 @@ class MyCustomHandler(CustomLogger): # Set litellm.callbacks = [proxy_handler_instance] on the proxy -# need to set litellm.callbacks = [proxy_handler_instance] # on the proxy @pytest.mark.asyncio @pytest.mark.flaky(retries=6, delay=10) async def test_transcription_on_router():