mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
(caching) Fix incorrect usage of str, which created invalid JSON.
This commit is contained in:
parent
7f739bb6ce
commit
8a07476524
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ class S3Cache(BaseCache):
|
|||
print_verbose(f"LiteLLM SET Cache - S3. Key={key}. Value={value}")
|
||||
ttl = kwargs.get("ttl", None)
|
||||
# Convert value to JSON before storing in S3
|
||||
serialized_value = str(value)
|
||||
serialized_value = json.dumps(value)
|
||||
if ttl is not None:
|
||||
cache_control = f"immutable, max-age={ttl}, s-maxage={ttl}"
|
||||
import datetime
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue