Skip to content

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]

test: source the gemma context window limits and isolate the cost map cache

mateo-berri44034c1d5e25
diff --git a/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gemma/test_vertex_ai_gemma_global_endpoint.py b/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gemma/test_vertex_ai_gemma_global_endpoint.py
index 9d08daa0a81..85a2124ab02 100644
--- a/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gemma/test_vertex_ai_gemma_global_endpoint.py
+++ b/tests/test_litellm/llms/vertex_ai/vertex_ai_partner_models/gemma/test_vertex_ai_gemma_global_endpoint.py
@@ -180,12 +180,11 @@ class TestCreateVertexURLGemma:
# ---------------------------------------------------------------------------
-def test_gemma_maas_context_window_matches_google(monkeypatch):
- monkeypatch.setenv("LITELLM_LOCAL_MODEL_COST_MAP", "True")
- monkeypatch.setattr(litellm, "model_cost", litellm.get_model_cost_map(url=""))
-
+def test_gemma_maas_context_window_matches_google(local_model_cost_map):
info = litellm.get_model_info("vertex_ai/google/gemma-4-26b-a4b-it-maas")
+ # 262,144 context length and 128,000 maximum output per Google's model page, checked 2026-09-18:
+ # https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/maas/google/gemma-4-26b-a4b-it
assert info["max_input_tokens"] == 262144
assert info["max_output_tokens"] == 128000