mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(caching.py): support /completion caching by default
updates supported call types in redis cache to cover text_completion caching
This commit is contained in:
parent
80c3759719
commit
a75b70fbd6
1 changed files with 12 additions and 0 deletions
|
@ -1692,6 +1692,8 @@ class Cache:
|
||||||
"aembedding",
|
"aembedding",
|
||||||
"atranscription",
|
"atranscription",
|
||||||
"transcription",
|
"transcription",
|
||||||
|
"atext_completion",
|
||||||
|
"text_completion",
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
] = [
|
] = [
|
||||||
|
@ -1701,6 +1703,8 @@ class Cache:
|
||||||
"aembedding",
|
"aembedding",
|
||||||
"atranscription",
|
"atranscription",
|
||||||
"transcription",
|
"transcription",
|
||||||
|
"atext_completion",
|
||||||
|
"text_completion",
|
||||||
],
|
],
|
||||||
# s3 Bucket, boto3 configuration
|
# s3 Bucket, boto3 configuration
|
||||||
s3_bucket_name: Optional[str] = None,
|
s3_bucket_name: Optional[str] = None,
|
||||||
|
@ -2235,6 +2239,8 @@ def enable_cache(
|
||||||
"aembedding",
|
"aembedding",
|
||||||
"atranscription",
|
"atranscription",
|
||||||
"transcription",
|
"transcription",
|
||||||
|
"atext_completion",
|
||||||
|
"text_completion",
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
] = [
|
] = [
|
||||||
|
@ -2244,6 +2250,8 @@ def enable_cache(
|
||||||
"aembedding",
|
"aembedding",
|
||||||
"atranscription",
|
"atranscription",
|
||||||
"transcription",
|
"transcription",
|
||||||
|
"atext_completion",
|
||||||
|
"text_completion",
|
||||||
],
|
],
|
||||||
**kwargs,
|
**kwargs,
|
||||||
):
|
):
|
||||||
|
@ -2300,6 +2308,8 @@ def update_cache(
|
||||||
"aembedding",
|
"aembedding",
|
||||||
"atranscription",
|
"atranscription",
|
||||||
"transcription",
|
"transcription",
|
||||||
|
"atext_completion",
|
||||||
|
"text_completion",
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
] = [
|
] = [
|
||||||
|
@ -2309,6 +2319,8 @@ def update_cache(
|
||||||
"aembedding",
|
"aembedding",
|
||||||
"atranscription",
|
"atranscription",
|
||||||
"transcription",
|
"transcription",
|
||||||
|
"atext_completion",
|
||||||
|
"text_completion",
|
||||||
],
|
],
|
||||||
**kwargs,
|
**kwargs,
|
||||||
):
|
):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue