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: fix unbound var
Krrish Dholakia4868a6cf55aa
diff --git a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.pyindex b5e32715bf8..0a7be19b9b0 100644--- a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.py+++ b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.py@@ -1373,6 +1373,8 @@ class VertexLLM(BaseLLM):cached_content=optional_params.pop("cached_content", None),logging_obj=logging_obj,)+ else: # [TODO] implement context caching for gemini as well+ cached_content = optional_params.pop("cached_content", None)# Separate system prompt from rest of messagesupports_system_message = get_supports_system_message(