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: check if metadata is not none
Krrish Dholakia944176f5e844
diff --git a/litellm/llms/vertex_ai/gemini/transformation.py b/litellm/llms/vertex_ai/gemini/transformation.pyindex 91d04e84a73..327b269d1d4 100644--- a/litellm/llms/vertex_ai/gemini/transformation.py+++ b/litellm/llms/vertex_ai/gemini/transformation.py@@ -468,7 +468,7 @@ def _transform_request_body(# as "labels" field to the request sent to the Gemini backend.if labels is None and "metadata" in litellm_params:metadata = litellm_params["metadata"]- if "requester_metadata" in metadata:+ if metadata is not None and "requester_metadata" in metadata:rm = metadata["requester_metadata"]labels = {k: v for k, v in rm.items() if isinstance(v, str)}diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.jsonindex d52171ec733..c1accdb1c3c 100644--- a/litellm/model_prices_and_context_window_backup.json+++ b/litellm/model_prices_and_context_window_backup.json@@ -13123,6 +13123,7 @@"mode": "chat","supports_response_schema": true,"supports_tool_choice": true,+ "supports_function_calling": true,"supports_reasoning": true},"openai.gpt-oss-120b-1:0": {@@ -13135,6 +13136,7 @@"mode": "chat","supports_response_schema": true,"supports_tool_choice": true,+ "supports_function_calling": true,"supports_reasoning": true},"anthropic.claude-opus-4-1-20250805-v1:0": {