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 back
retanoje05ffcfb4c2b
diff --git a/litellm/google_genai/adapters/handler.py b/litellm/google_genai/adapters/handler.pyindex c5f378554b2..c15d0cb9deb 100644--- a/litellm/google_genai/adapters/handler.py+++ b/litellm/google_genai/adapters/handler.py@@ -38,8 +38,8 @@ class GenerateContentToCompletionHandler:completion_kwargs: Dict[str, Any] = dict(completion_request)# feed metadata for custom callback- # if 'metadata' in extra_kwargs:- # completion_kwargs['metadata'] = extra_kwargs['metadata']+ if 'metadata' in extra_kwargs:+ completion_kwargs['metadata'] = extra_kwargs['metadata']if stream:completion_kwargs["stream"] = stream