From 33a46761848832ada4c6653781273f521ed0cb82 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 11 Oct 2025 10:05:22 -0700 Subject: [PATCH] test fix --- tests/llm_translation/test_gemini.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/llm_translation/test_gemini.py b/tests/llm_translation/test_gemini.py index 9c07592fbeb..21d867d12c0 100644 --- a/tests/llm_translation/test_gemini.py +++ b/tests/llm_translation/test_gemini.py @@ -151,7 +151,12 @@ def test_gemini_context_caching_with_ttl(): ] result_no_ttl = transform_openai_messages_to_gemini_context_caching( - model="gemini-1.5-pro", messages=messages_no_ttl, cache_key="test-no-ttl" + model="gemini-1.5-pro", + messages=messages_no_ttl, + cache_key="test-no-ttl", + custom_llm_provider="gemini", + vertex_project=None, + vertex_location=None, ) # Verify no TTL field is present when not specified @@ -201,7 +206,12 @@ def test_gemini_context_caching_with_ttl(): # Test transformation with mixed messages result_mixed = transform_openai_messages_to_gemini_context_caching( - model="gemini-1.5-pro", messages=messages_mixed, cache_key="test-mixed-ttl" + model="gemini-1.5-pro", + messages=messages_mixed, + cache_key="test-mixed-ttl", + custom_llm_provider="gemini", + vertex_project=None, + vertex_location=None, ) # Should pick up the first valid TTL