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_endpoints.py): use path instead of endpoint
Krrish Dholakia78e2274381f8
diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.pyindex e00c4727ebb..478966d61b3 100644--- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py+++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py@@ -975,13 +975,14 @@ def create_pass_through_route(] = None, # if pass-through endpoint is a streaming requestsubpath: str = "", # captures sub-paths when include_subpath=True):-from litellm.proxy.pass_through_endpoints.pass_through_endpoints import (InitPassThroughEndpointHelpers,)+ path = request.url.path+if not InitPassThroughEndpointHelpers.is_registered_pass_through_route(- route=endpoint+ route=path):raise HTTPException(status_code=404,@@ -990,7 +991,7 @@ def create_pass_through_route(passthrough_params = (InitPassThroughEndpointHelpers.get_registered_pass_through_route(- route=endpoint+ route=path))target_params = {