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: drop incorrect openrouter native-prefix test

Chesars232464e1512d
diff --git a/tests/local_testing/test_get_llm_provider.py b/tests/local_testing/test_get_llm_provider.py
index 5703fa4eff5..ca0033a03bc 100644
--- a/tests/local_testing/test_get_llm_provider.py
+++ b/tests/local_testing/test_get_llm_provider.py
@@ -495,14 +495,3 @@ def test_openrouter_model_prefix_stripped():
)
-def test_openrouter_native_model_prefix_preserved():
- """
- Native OpenRouter model IDs like "openrouter/auto" carry the
- "openrouter/" segment as part of the actual API model name and
- must NOT be stripped.
- """
- model, provider, _, _ = litellm.get_llm_provider(model="openrouter/auto")
- assert provider == "openrouter"
- assert model == "openrouter/auto", (
- f"Expected native ID 'openrouter/auto' to stay intact, got '{model}'."
- )