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
doc: updated pass_through with guided param (#18886)
Harshit Jain3257cc7129a1
diff --git a/docs/my-website/docs/proxy/pass_through.md b/docs/my-website/docs/proxy/pass_through.mdindex 03454004b8c..cf8168764b8 100644--- a/docs/my-website/docs/proxy/pass_through.md+++ b/docs/my-website/docs/proxy/pass_through.md@@ -165,6 +165,7 @@ general_settings:target: string # Target URL for forwardingauth: boolean # Enable LiteLLM authentication (Enterprise)forward_headers: boolean # Forward all incoming headers+ include_subpath: boolean # If true, forwards requests to sub-paths (default: false)headers: # Custom headers to addAuthorization: string # Auth header for target APIcontent-type: string # Request content type@@ -181,6 +182,23 @@ general_settings:- **LANGFUSE_PUBLIC_KEY/SECRET_KEY**: For Langfuse integration- **Custom headers**: Any additional key-value pairs+### Sub-path Routing++By default, pass-through endpoints only match the **exact path** specified. To forward requests to sub-paths, set `include_subpath: true`:++```yaml+general_settings:+ pass_through_endpoints:+ - path: "/custom-api" # Any path prefix you choose+ target: "https://api.example.com"+ include_subpath: true # Forward /custom-api/*, not just /custom-api+```++| Setting | Behavior |+|---------|----------|+| `include_subpath: false` (default) | Only `/custom-api` is forwarded |+| `include_subpath: true` | `/custom-api`, `/custom-api/v1/chat`, `/custom-api/anything` are all forwarded |+---## Advanced: Custom Adapters