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

This commit is contained in:
mateo-berri 2026-09-18 14:58:58 -07:00
parent a6bd779bd1
commit 55249c7128
3 changed files with 13 additions and 3 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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
#