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
fix: make sure gcs_bucket_name passes
Sameer Kankute26d25de57702
diff --git a/litellm/llms/vertex_ai/files/transformation.py b/litellm/llms/vertex_ai/files/transformation.pyindex b3612113ec2..2470c59bbac 100644--- a/litellm/llms/vertex_ai/files/transformation.py+++ b/litellm/llms/vertex_ai/files/transformation.py@@ -165,7 +165,7 @@ class VertexAIFilesConfig(VertexBase, BaseFilesConfig):"""Get the complete url for the request"""- bucket_name = litellm_params.get("bucket_name") or os.getenv("GCS_BUCKET_NAME")+ bucket_name = litellm_params.get("bucket_name") or litellm_params.get("litellm_metadata", {}).pop("gcs_bucket_name", None) or os.getenv("GCS_BUCKET_NAME")if not bucket_name:raise ValueError("GCS bucket_name is required")file_data = data.get("file")diff --git a/litellm/router.py b/litellm/router.pyindex d01c8443dab..05994e11163 100644--- a/litellm/router.py+++ b/litellm/router.py@@ -3730,7 +3730,8 @@ class Router:)kwargs_copy["file"] = file-+ if "gcs_bucket_name" in data: # TODO: Remove this once we have a better way to handle GCS bucket name: Problem is that we need to pass the gcs_bucket_name to the router for the create_file call but it doesn't show up there+ kwargs_copy["litellm_metadata"]["gcs_bucket_name"] = data["gcs_bucket_name"]response = litellm.acreate_file(**{**data,