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(tests): use unconditional skip for vertex/gemini token counting test

Julio Quinteros Proce59e6f00a4b
diff --git a/tests/proxy_unit_tests/test_proxy_token_counter.py b/tests/proxy_unit_tests/test_proxy_token_counter.py
index 445e4880eb8..cca1e843604 100644
--- a/tests/proxy_unit_tests/test_proxy_token_counter.py
+++ b/tests/proxy_unit_tests/test_proxy_token_counter.py
@@ -682,9 +682,8 @@ async def test_factory_registration():
assert not counter.should_use_token_counting_api(custom_llm_provider=None)
- not os.getenv("GEMINI_API_KEY") and not os.getenv("GOOGLE_API_KEY"),
- reason="Requires Google API credentials.",
+ reason="Requires Google/Vertex AI credentials (GEMINI_API_KEY or VERTEX_AI_PRIVATE_KEY)."
)
@pytest.mark.asyncio
@pytest.mark.parametrize("model_name", ["gemini-2.5-pro", "vertex-ai-gemini-2.5-pro"])