Merge pull request #2379 from BerriAI/litellm_s3_bucket_folder_path

fix(caching.py): add s3 path as a top-level param
This commit is contained in:
Krish Dholakia 2024-03-06 19:35:46 -08:00 committed by GitHub
commit d0dec7fc71
5 changed files with 16 additions and 3 deletions

View file

@ -695,7 +695,6 @@ def test_s3_cache_acompletion_stream_azure():
@pytest.mark.asyncio
@pytest.mark.skip(reason="AWS Suspended Account")
async def test_s3_cache_acompletion_azure():
import asyncio
import logging
@ -714,7 +713,9 @@ async def test_s3_cache_acompletion_azure():
}
]
litellm.cache = Cache(
type="s3", s3_bucket_name="cache-bucket-litellm", s3_region_name="us-west-2"
type="s3",
s3_bucket_name="litellm-my-test-bucket-2",
s3_region_name="us-east-1",
)
print("s3 Cache: test for caching, streaming + completion")