mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* fix(caching): upgrade redisvl to 0.26.0 so the redis-semantic cache works with restricted Redis users redisvl 0.4.1 ran MODULE LIST while building the semantic cache index, which a Redis user without @dangerous or @admin (Redis Cloud's Read-Write role) is not allowed to run, so the cache never built. redisvl 0.26.0 no longer probes modules on that path and is the newest release that still accepts redis-py 5.3.1 Fixes #51207 * fix(caching): name the redisvl range when an older redisvl is installed Log an error naming redisvl>=0.26.0,<1.0 when the new redisvl import paths are missing, re-lock uv.lock from the merge base with the current uv, and extend the restricted-user integration test to store and look up an entry * test(caching): type the fixtures of the redisvl requirement test * fix(caching): fall back to redisvl's old import paths and warn when redisvl is outside the supported range * fix(caching): refuse to build the semantic cache on redisvl versions whose async lookups return other prompts' hits * fix(caching): check the redisvl version once at construction and skip refused versions before embedding --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| response_cache_case.py | ||
| test_cache_max_messages.py | ||
| test_embedding_file_block_cache.py | ||
| test_evicted_client_closer_real_io.py | ||
| test_evicted_client_unclosed_sessions_real_io.py | ||
| test_in_memory_cache_heap_bound.py | ||
| test_prompt_cache_alert_streaks_real_io.py | ||
| test_redis_cache_non_tls_ssl_settings.py | ||
| test_redis_semantic_cache_restricted_user_real_io.py | ||
| test_response_cache_chaos.py | ||
| test_response_cache_empty_output.py | ||
| test_response_cache_large_payload_key.py | ||
| test_response_cache_model_group_key.py | ||
| test_response_cache_stream_replay.py | ||
| test_scoped_response_cache.py | ||
| test_valkey_semantic_cache_real_io.py | ||