The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
tes logging to gcs buckets
Ishaan Jaff3d06abb55a19
diff --git a/litellm/tests/test_gcs_bucket.py b/litellm/tests/test_gcs_bucket.pyindex 754b4993424..607599d903d 100644--- a/litellm/tests/test_gcs_bucket.py+++ b/litellm/tests/test_gcs_bucket.py@@ -9,6 +9,7 @@ import jsonimport loggingimport tempfileimport uuid+from datetime import datetimeimport pytest@@ -116,8 +117,17 @@ async def test_basic_gcs_logger():await asyncio.sleep(5)+ # Get the current date+ # Get the current date+ current_date = datetime.now().strftime("%Y-%m-%d")++ # Modify the object_name to include the date-based folder+ object_name = f"{current_date}%2F{response.id}"++ print("object_name", object_name)+# Check if object landed on GCS- object_from_gcs = await gcs_logger.download_gcs_object(object_name=response.id)+ object_from_gcs = await gcs_logger.download_gcs_object(object_name=object_name)print("object from gcs=", object_from_gcs)# convert object_from_gcs from bytes to DICTparsed_data = json.loads(object_from_gcs)@@ -150,4 +160,4 @@ async def test_basic_gcs_logger():# Delete Object from GCSprint("deleting object from GCS")- await gcs_logger.delete_gcs_object(object_name=response.id)+ # await gcs_logger.delete_gcs_object(object_name=response.id)