mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
Fix ValkeySemanticCache import for redis-py >= 5
This commit is contained in:
parent
f191e08d67
commit
a36c652b41
1 changed files with 5 additions and 1 deletions
|
|
@ -24,7 +24,11 @@ from typing import Any, Final
|
|||
from redis import Redis
|
||||
from redis.asyncio import Redis as AsyncRedis
|
||||
from redis.commands.search.field import TagField, VectorField
|
||||
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
|
||||
|
||||
try:
|
||||
from redis.commands.search.index_definition import IndexDefinition, IndexType
|
||||
except ModuleNotFoundError:
|
||||
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
|
||||
from redis.commands.search.query import Query
|
||||
|
||||
from litellm._logging import print_verbose
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue