Skip to content

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]

add clear doc string for GCS bucket logging

Ishaan Jaffd889bce0c459
diff --git a/litellm/integrations/gcs_bucket/gcs_bucket.py b/litellm/integrations/gcs_bucket/gcs_bucket.py
index 0b637f9b6ec..83b83190499 100644
--- a/litellm/integrations/gcs_bucket/gcs_bucket.py
+++ b/litellm/integrations/gcs_bucket/gcs_bucket.py
@@ -115,7 +115,17 @@ class GCSBucketLogger(GCSBucketBase):
verbose_logger.exception(f"GCS Bucket logging error: {str(e)}")
async def async_send_batch(self):
- """Process queued logs in batch - sends logs to GCS Bucket"""
+ """
+ Process queued logs in batch - sends logs to GCS Bucket
+
+
+ GCS Bucket does not have a Batch endpoint to batch upload logs
+
+ Instead, we
+ - collect the logs to flush every `GCS_FLUSH_INTERVAL` seconds
+ - during async_send_batch, we make 1 POST request per log to GCS Bucket
+
+ """
if not self.log_queue:
return