diff --git a/litellm/utils.py b/litellm/utils.py index ad56fd5769..feb952dbd8 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -2786,6 +2786,12 @@ def client(original_function): result, *args, **kwargs ) ) + elif isinstance(litellm.cache.cache, S3Cache): + threading.Thread( + target=litellm.cache.add_cache, + args=(result,) + args, + kwargs=kwargs, + ).start() else: asyncio.create_task( litellm.cache.async_add_cache(