forked from phoenix/litellm-mirror
fix importing Cache from litellm (#6219)
This commit is contained in:
parent
d0a3052937
commit
cda0a993e2
2 changed files with 8 additions and 0 deletions
1
litellm/caching/__init__.py
Normal file
1
litellm/caching/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
from .caching import Cache
|
|
@ -2291,3 +2291,10 @@ async def test_basic_rerank_caching(sync_mode, top_n_1, top_n_2, expect_cache_hi
|
||||||
assert response.results is not None
|
assert response.results is not None
|
||||||
|
|
||||||
assert_response_shape(response, custom_llm_provider="cohere")
|
assert_response_shape(response, custom_llm_provider="cohere")
|
||||||
|
|
||||||
|
|
||||||
|
def test_basic_caching_import():
|
||||||
|
from litellm.caching import Cache
|
||||||
|
|
||||||
|
assert Cache is not None
|
||||||
|
print("Cache imported successfully")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue