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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test: drop duplicate openrouter prefix-strip test
Chesarsc75f0c056602
diff --git a/tests/local_testing/test_get_llm_provider.py b/tests/local_testing/test_get_llm_provider.pyindex ca0033a03bc..14b9e8cd136 100644--- a/tests/local_testing/test_get_llm_provider.py+++ b/tests/local_testing/test_get_llm_provider.py@@ -478,20 +478,3 @@ def test_get_llm_provider_use_proxy_arg_true_with_direct_args():assert key == arg_api_key # Should use the argument keyassert base == arg_api_base # Should use the argument base--def test_openrouter_model_prefix_stripped():- """- GH#24234: OpenRouter models like "openrouter/anthropic/claude-3.5-sonnet"- should have the "openrouter/" prefix stripped before being sent to the API.- The API expects "anthropic/claude-3.5-sonnet", not the full prefixed name.- """- model, provider, _, _ = litellm.get_llm_provider(- model="openrouter/anthropic/claude-3.5-sonnet"- )- assert provider == "openrouter"- assert model == "anthropic/claude-3.5-sonnet", (- f"Expected 'anthropic/claude-3.5-sonnet' but got '{model}'. "- "The 'openrouter/' prefix was not stripped."- )--