mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-15 17:33:53 +00:00
langchain[patch]: undo redis cache import (#17275)
This commit is contained in:
parent
8bad4157ad
commit
72c7af0bc0
@ -1,7 +1,6 @@
|
|||||||
from langchain_community.cache import (
|
from langchain_community.cache import (
|
||||||
AstraDBCache,
|
AstraDBCache,
|
||||||
AstraDBSemanticCache,
|
AstraDBSemanticCache,
|
||||||
AsyncRedisCache,
|
|
||||||
CassandraCache,
|
CassandraCache,
|
||||||
CassandraSemanticCache,
|
CassandraSemanticCache,
|
||||||
FullLLMCache,
|
FullLLMCache,
|
||||||
@ -23,7 +22,6 @@ __all__ = [
|
|||||||
"SQLAlchemyCache",
|
"SQLAlchemyCache",
|
||||||
"SQLiteCache",
|
"SQLiteCache",
|
||||||
"UpstashRedisCache",
|
"UpstashRedisCache",
|
||||||
"AsyncRedisCache",
|
|
||||||
"RedisCache",
|
"RedisCache",
|
||||||
"RedisSemanticCache",
|
"RedisSemanticCache",
|
||||||
"GPTCache",
|
"GPTCache",
|
||||||
|
@ -4,12 +4,12 @@ from contextlib import asynccontextmanager, contextmanager
|
|||||||
from typing import AsyncGenerator, Generator, List, Optional, cast
|
from typing import AsyncGenerator, Generator, List, Optional, cast
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
from langchain_community.cache import AsyncRedisCache, RedisCache, RedisSemanticCache
|
||||||
from langchain_core.embeddings import Embeddings
|
from langchain_core.embeddings import Embeddings
|
||||||
from langchain_core.load.dump import dumps
|
from langchain_core.load.dump import dumps
|
||||||
from langchain_core.messages import AIMessage, BaseMessage, HumanMessage
|
from langchain_core.messages import AIMessage, BaseMessage, HumanMessage
|
||||||
from langchain_core.outputs import ChatGeneration, Generation, LLMResult
|
from langchain_core.outputs import ChatGeneration, Generation, LLMResult
|
||||||
|
|
||||||
from langchain.cache import AsyncRedisCache, RedisCache, RedisSemanticCache
|
|
||||||
from langchain.globals import get_llm_cache, set_llm_cache
|
from langchain.globals import get_llm_cache, set_llm_cache
|
||||||
from tests.integration_tests.cache.fake_embeddings import (
|
from tests.integration_tests.cache.fake_embeddings import (
|
||||||
ConsistentFakeEmbeddings,
|
ConsistentFakeEmbeddings,
|
||||||
|
Loading…
Reference in New Issue
Block a user