mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
style: format valkey semantic cache
This commit is contained in:
parent
1ecf44dc85
commit
5eb2f65380
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ from typing import Any, Final
|
|||
from redis import Redis
|
||||
from redis.asyncio import Redis as AsyncRedis
|
||||
from redis.commands.search.field import TagField, VectorField
|
||||
|
||||
try: # redis-py >= 5 (module renamed to snake_case)
|
||||
from redis.commands.search.index_definition import IndexDefinition, IndexType
|
||||
except ModuleNotFoundError: # redis-py 4.x (last version with camelCase name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue