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]

fix: set vertex gemma-4-26b-a4b-it-maas context window to 262144

mateo-berri55249c7128bc
diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json
index 377e30a23b7..ef4fce37f23 100644
--- a/litellm/model_prices_and_context_window_backup.json
+++ b/litellm/model_prices_and_context_window_backup.json
@@ -50721,7 +50721,7 @@
"vertex_ai/google/gemma-4-26b-a4b-it-maas": {
"input_cost_per_token": 1.5e-07,
"litellm_provider": "vertex_ai-openai_models",
- "max_input_tokens": 256000,
+ "max_input_tokens": 262144,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json
index 377e30a23b7..ef4fce37f23 100644
--- a/model_prices_and_context_window.json
+++ b/model_prices_and_context_window.json
@@ -50721,7 +50721,7 @@
"vertex_ai/google/gemma-4-26b-a4b-it-maas": {
"input_cost_per_token": 1.5e-07,
"litellm_provider": "vertex_ai-openai_models",
- "max_input_tokens": 256000,
+ "max_input_tokens": 262144,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
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 e9b58622a4b..9d08daa0a81 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
@@ -30,7 +30,7 @@ from litellm.types.llms.vertex_ai import VertexPartnerProvider
_GEMMA_MODEL_COST_ENTRY = {
"vertex_ai/google/gemma-4-26b-a4b-it-maas": {
"litellm_provider": "vertex_ai-openai_models",
- "max_input_tokens": 256000,
+ "max_input_tokens": 262144,
"max_output_tokens": 128000,
"max_tokens": 128000,
"mode": "chat",
@@ -180,6 +180,16 @@ 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=""))
+
+ info = litellm.get_model_info("vertex_ai/google/gemma-4-26b-a4b-it-maas")
+
+ assert info["max_input_tokens"] == 262144
+ assert info["max_output_tokens"] == 128000
+
+
# ---------------------------------------------------------------------------
# Integration tests: verify payloads reach the global OpenAI endpoint
#