mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-28 06:23:07 +00:00
Merge 9525e8609c into b6f91a221b
This commit is contained in:
commit
71be8728d3
1 changed files with 4 additions and 2 deletions
|
|
@ -81,8 +81,10 @@ class RedisSemanticCache(BaseCache):
|
|||
embedding; defaults to the Router deployment's configured max_input_tokens
|
||||
embedding_timeout: Seconds a cache lookup may spend embedding the prompt before it
|
||||
gives up and lets the request continue to the LLM
|
||||
ttl: Default time-to-live for cache entries in seconds
|
||||
**kwargs: Additional arguments passed to the Redis client
|
||||
**kwargs: Additional constructor arguments are accepted but currently
|
||||
unused. Cache-entry TTL is not a constructor setting: _get_ttl reads
|
||||
a `ttl` from the kwargs of each set_cache/async_set_cache call, so a
|
||||
TTL applies to that individual cache write only
|
||||
|
||||
Raises:
|
||||
Exception: If similarity_threshold is not provided or required Redis
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue