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
Revert "fix(vertex): shallow copy parameters before mutating in _build_vertex_schema_for_gemini_2"
Sameer Kankute72c98489d12e
diff --git a/litellm/llms/vertex_ai/common_utils.py b/litellm/llms/vertex_ai/common_utils.pyindex 078fce63cc1..ad1e70f2ce2 100644--- a/litellm/llms/vertex_ai/common_utils.py+++ b/litellm/llms/vertex_ai/common_utils.py@@ -534,7 +534,6 @@ def _build_vertex_schema_for_gemini_2(parameters: dict) -> dict:"""valid_schema_fields = set(get_type_hints(Schema).keys())- parameters = dict(parameters) # shallow copy to avoid mutating caller's dictdefs = parameters.pop("$defs", {})unpack_defs(parameters, defs)