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
fix pass through rerank requests tests
Ishaan Jaff1f3dd43c2765
diff --git a/litellm/tests/test_pass_through_endpoints.py b/litellm/tests/test_pass_through_endpoints.pyindex 69869fe0e5a..28e6acda9fd 100644--- a/litellm/tests/test_pass_through_endpoints.py+++ b/litellm/tests/test_pass_through_endpoints.py@@ -25,8 +25,17 @@ async def mock_request(*args, **kwargs):return mock_response+def remove_rerank_route():+ for route in app.routes:+ if route.path == "/v1/rerank" and "POST" in route.methods:+ app.routes.remove(route)+ print("Rerank route removed successfully")+ print("ALL Routes on app=", app.routes)++@pytest.fixturedef client():+ remove_rerank_route() # remove the native rerank route on the litellm proxy - since we're testing the pass through endpointsreturn TestClient(app)