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]

feat(pass_through_endpoint.py): cleanup error message + validate it works across multiple instances

Krrish Dholakia032a213b9bf3
diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
index 8542f87327f..b1877cd20ea 100644
--- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
+++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
@@ -991,7 +991,7 @@ def create_pass_through_route(
):
raise HTTPException(
status_code=404,
- detail=f"Pass-through endpoint {target} not found. This could have been deleted or not yet added to the proxy.",
+ detail=f"Pass-through endpoint {endpoint} not found. This could have been deleted or not yet added to the proxy.",
)
return await pass_through_request( # type: ignore