diff --git a/litellm/model_prices_and_context_window_backup.json b/litellm/model_prices_and_context_window_backup.json index 4fe73583552..4ea758a457e 100644 --- a/litellm/model_prices_and_context_window_backup.json +++ b/litellm/model_prices_and_context_window_backup.json @@ -51069,7 +51069,7 @@ }, "openrouter/google/gemma-4-26b-a4b-it": { "max_input_tokens": 262144, - "max_tokens": 262144, + "max_tokens": 16384, "mode": "chat", "litellm_provider": "openrouter", "source": "https://openrouter.ai/google/gemma-4-26b-a4b-it", diff --git a/model_prices_and_context_window.json b/model_prices_and_context_window.json index 4fe73583552..4ea758a457e 100644 --- a/model_prices_and_context_window.json +++ b/model_prices_and_context_window.json @@ -51069,7 +51069,7 @@ }, "openrouter/google/gemma-4-26b-a4b-it": { "max_input_tokens": 262144, - "max_tokens": 262144, + "max_tokens": 16384, "mode": "chat", "litellm_provider": "openrouter", "source": "https://openrouter.ai/google/gemma-4-26b-a4b-it", diff --git a/tests/test_litellm/llms/databricks/test_databricks_pricing.py b/tests/test_litellm/llms/databricks/test_databricks_pricing.py index 5d455ecfa93..c4583b3ae8b 100644 --- a/tests/test_litellm/llms/databricks/test_databricks_pricing.py +++ b/tests/test_litellm/llms/databricks/test_databricks_pricing.py @@ -90,7 +90,7 @@ def test_databricks_proprietary_models_have_cache_pricing(): expected = input_usd * ratio if actual is None: errors.append(f"{model} missing {field}") - elif abs(actual - expected) > 1e-12: + elif abs(actual - expected) > abs(expected) * 1e-2: errors.append(f"{model} {field} mismatch: got {actual}, expected {expected}") if not info.get("supports_prompt_caching"): errors.append(f"{model} missing supports_prompt_caching")