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
basic gcs logging test
Ishaan Jaffa18f2f7626a5
diff --git a/litellm/tests/test_gcs_bucket.py b/litellm/tests/test_gcs_bucket.pynew file mode 100644index 00000000000..7ee917c450c--- /dev/null+++ b/litellm/tests/test_gcs_bucket.py@@ -0,0 +1,39 @@+import io+import os+import sys++sys.path.insert(0, os.path.abspath("../.."))++import asyncio+import logging+import uuid++import pytest++import litellm+from litellm import completion+from litellm._logging import verbose_logger+from litellm.integrations.gcs_bucket import GCSBucketLogger++verbose_logger.setLevel(logging.DEBUG)+++gcs_logger = GCSBucketLogger()+print("GCSBucketLogger", gcs_logger)+++async def test_basic_gcs_logger():+ litellm.callbacks = [gcs_logger]+ response = await litellm.acompletion(+ model="gpt-3.5-turbo",+ temperature=0.7,+ messages=[{"role": "user", "content": "This is a test"}],+ max_tokens=10,+ user="ishaan-2",+ mock_response="Hi!",+ )++ print("response", response)++ await asyncio.sleep(5)