mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(feat) fix s3 cache
This commit is contained in:
parent
c59021d090
commit
9a23317461
1 changed files with 6 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue