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(google_genai): move unified_google_tests to gemini-3.5-flash-lite (#42520)
devin-ai-integration[bot]e48f813d4dfb
diff --git a/tests/unified_google_tests/conftest.py b/tests/unified_google_tests/conftest.pyindex cd05c856faf..9eac5f49651 100644--- a/tests/unified_google_tests/conftest.py+++ b/tests/unified_google_tests/conftest.py@@ -102,7 +102,7 @@ def google_genai_proxy_url() -> Iterator[str]:credentials_file = os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", "")if not (credentials_file and os.path.isfile(credentials_file)):vertex_credentials_path = load_vertex_ai_credentials(- model="vertex_ai/gemini-2.5-flash-lite"+ model="vertex_ai/gemini-3.5-flash-lite")if vertex_credentials_path:temp_credentials_path = vertex_credentials_pathdiff --git a/tests/unified_google_tests/google_genai_proxy_test_config.yaml b/tests/unified_google_tests/google_genai_proxy_test_config.yamlindex 0a1779aa3ec..99f24e62916 100644--- a/tests/unified_google_tests/google_genai_proxy_test_config.yaml+++ b/tests/unified_google_tests/google_genai_proxy_test_config.yaml@@ -1,12 +1,12 @@model_list:- - model_name: gemini-2.5-flash-lite+ - model_name: gemini-3.5-flash-litelitellm_params:- model: gemini/gemini-2.5-flash-lite+ model: gemini/gemini-3.5-flash-liteapi_key: os.environ/GEMINI_API_KEY- - model_name: vertex-gemini-2.5-flash-lite+ - model_name: vertex-gemini-3.5-flash-litelitellm_params:- model: vertex_ai/gemini-2.5-flash-lite+ model: vertex_ai/gemini-3.5-flash-litevertex_location: globalrouter_settings:diff --git a/tests/unified_google_tests/test_google_ai_studio.py b/tests/unified_google_tests/test_google_ai_studio.pyindex 6d4c3725080..2364a01cedb 100644--- a/tests/unified_google_tests/test_google_ai_studio.py+++ b/tests/unified_google_tests/test_google_ai_studio.py@@ -13,12 +13,12 @@ class TestGoogleGenAIStudio(BaseGoogleGenAITest, BaseGoogleGenAIProxySDKTest):@propertydef model_config(self):return {- "model": "gemini/gemini-2.5-flash-lite",+ "model": "gemini/gemini-3.5-flash-lite",}@propertydef proxy_model_name(self) -> str:- return "gemini-2.5-flash-lite"+ return "gemini-3.5-flash-lite"@pytest.mark.asyncio@@ -94,7 +94,7 @@ async def test_mock_stream_generate_content_with_tools():"\n--- Testing async agenerate_content_stream with function call parsing ---")response = await litellm.google_genai.agenerate_content_stream(- model="gemini/gemini-2.5-flash-lite",+ model="gemini/gemini-3.5-flash-lite",contents=contents,tools=[{@@ -343,7 +343,7 @@ async def test_validate_post_request_parameters():# Make the API callresponse = await litellm.google_genai.agenerate_content_stream(- model="gemini/gemini-2.5-flash-lite", contents=contents, tools=tools+ model="gemini/gemini-3.5-flash-lite", contents=contents, tools=tools)# Consume the response to ensure the request is made@@ -387,11 +387,11 @@ async def test_validate_post_request_parameters():# Validate model fieldassert "model" in request_data, "Expected 'model' field in request data"- # Model might be transformed, but should contain gemini-2.5-flash-lite+ # Model might be transformed, but should contain gemini-3.5-flash-litemodel_value = request_data["model"]assert (- "gemini-2.5-flash-lite" in model_value- ), f"Expected model to contain 'gemini-2.5-flash-lite', got: {model_value}"+ "gemini-3.5-flash-lite" in model_value+ ), f"Expected model to contain 'gemini-3.5-flash-lite', got: {model_value}"print(f"✅ Model validation passed: {model_value}")# Validate contents fielddiff --git a/tests/unified_google_tests/test_google_genai_proxy_test_config.py b/tests/unified_google_tests/test_google_genai_proxy_test_config.pyindex 694ec336bac..272e589e94a 100644--- a/tests/unified_google_tests/test_google_genai_proxy_test_config.py+++ b/tests/unified_google_tests/test_google_genai_proxy_test_config.py@@ -12,14 +12,13 @@ from typing_extensions import ReadOnly, TypedDictimport litellmfrom litellm import Routerfrom litellm.constants import INITIAL_RETRY_DELAY, MAX_RETRY_DELAY-from litellm.llms.vertex_ai.common_utils import get_vertex_base_url+from litellm.llms.vertex_ai.common_utils import _get_gemini_url, get_vertex_base_urlfrom litellm.llms.vertex_ai.vertex_llm_base import VertexBaseCONFIG_PATH: Final = Path(__file__).parent / "google_genai_proxy_test_config.yaml"-GEMINI_DEPLOYMENT: Final = "gemini-2.5-flash-lite"-VERTEX_DEPLOYMENT: Final = "vertex-gemini-2.5-flash-lite"-GEMINI_HOST: Final = "generativelanguage.googleapis.com"-GEMINI_GENERATE_CONTENT_PATH: Final = "/v1beta/models/gemini-2.5-flash-lite:generateContent"+GEMINI_DEPLOYMENT: Final = "gemini-3.5-flash-lite"+VERTEX_DEPLOYMENT: Final = "vertex-gemini-3.5-flash-lite"+GEMINI_GENERATE_CONTENT_URL: Final = _get_gemini_url(mode="chat", model=GEMINI_DEPLOYMENT, stream=False)[0]VERTEX_GLOBAL_BASE_URL: Final = "https://aiplatform.googleapis.com"RESOURCE_EXHAUSTED: Final = {"error": {"code": 429, "message": "Resource exhausted. Please try again later.", "status": "RESOURCE_EXHAUSTED"}@@ -81,7 +80,7 @@ async def test_ci_proxy_config_rides_out_consecutive_429s_with_backoff() -> None:monkeypatch.setattr(litellm, "disable_aiohttp_transport", True)litellm.in_memory_llm_clients_cache.flush_cache()- route: Final = respx_mock.post(host=GEMINI_HOST, path=GEMINI_GENERATE_CONTENT_PATH).mock(+ route: Final = respx_mock.post(GEMINI_GENERATE_CONTENT_URL).mock(side_effect=[httpx.Response(429, json=RESOURCE_EXHAUSTED)] * CONSECUTIVE_RATE_LIMITS+ [httpx.Response(200, json=PONG)])diff --git a/tests/unified_google_tests/test_vertex_ai_native.py b/tests/unified_google_tests/test_vertex_ai_native.pyindex 640157bc33e..4bdc1a55283 100644--- a/tests/unified_google_tests/test_vertex_ai_native.py+++ b/tests/unified_google_tests/test_vertex_ai_native.py@@ -8,9 +8,10 @@ class TestVertexAIGenerateContent(BaseGoogleGenAITest, BaseGoogleGenAIProxySDKTe@propertydef model_config(self):return {- "model": "vertex_ai/gemini-2.5-flash-lite",+ "model": "vertex_ai/gemini-3.5-flash-lite",+ "vertex_location": "global",}@propertydef proxy_model_name(self) -> str:- return "vertex-gemini-2.5-flash-lite"+ return "vertex-gemini-3.5-flash-lite"