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
test_gemini_context_caching_with_ttl
Ishaan Jafferc467986b8b29
diff --git a/tests/llm_translation/test_gemini.py b/tests/llm_translation/test_gemini.pyindex 64e66f3914c..9c07592fbeb 100644--- a/tests/llm_translation/test_gemini.py+++ b/tests/llm_translation/test_gemini.py@@ -97,6 +97,9 @@ def test_gemini_context_caching_with_ttl():model="gemini-1.5-pro",messages=messages_with_ttl,cache_key="test-ttl-cache-key",+ custom_llm_provider="gemini",+ vertex_project=None,+ vertex_location=None,)# Verify TTL is properly included in the result@@ -123,6 +126,9 @@ def test_gemini_context_caching_with_ttl():model="gemini-1.5-pro",messages=messages_invalid_ttl,cache_key="test-invalid-ttl",+ custom_llm_provider="gemini",+ vertex_project=None,+ vertex_location=None,)# Verify invalid TTL is not included