(feat) fix s3 cache

This commit is contained in:
ishaan-jaff 2024-02-08 10:01:56 -08:00
parent c59021d090
commit 9a23317461

View file

@ -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(