Skip to content
Draft
6 changes: 1 addition & 5 deletions litellm/caching/caching_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,11 @@ def _async_log_cache_hit_on_callbacks(
from litellm.litellm_core_utils.logging_worker import GLOBAL_LOGGING_WORKER

GLOBAL_LOGGING_WORKER.ensure_initialized_and_enqueue(
async_coroutine=logging_obj.async_success_handler(
async_coroutine=logging_obj.unified_success_handler(
result=cached_result, start_time=start_time, end_time=end_time, cache_hit=cache_hit
)
)

logging_obj.handle_sync_success_callbacks_for_async_calls(
result=cached_result, start_time=start_time, end_time=end_time, cache_hit=cache_hit
)

async def _retrieve_from_cache(
self, call_type: str, kwargs: Dict[str, Any], args: Tuple[Any, ...]
) -> Optional[Any]:
Expand Down
Loading
Loading