Skip to content

Commit da0c72b

Browse files
committed
changes from ai-gw-v2-forward-proxy branch
1 parent aea976a commit da0c72b

19 files changed

Lines changed: 486 additions & 3 deletions

File tree

app/_ai_gateway_entities/ai-mcp-server.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ sequenceDiagram
218218
> Pings from MCP clients are included in the total request count for an {{site.ai_gateway}}
219219
> instance, in addition to requests made to the MCP server itself.
220220
221+
### Forward proxy support
222+
223+
{% include md/ai-gateway/v2/forward-proxy.md %}
224+
221225
## Tools
222226

223227
A [tool](#schema-aigateway-mcpserver-tools) maps an MCP tool name to an upstream HTTP endpoint. Each tool needs at minimum a description and an HTTP method. The runtime extracts the host, path, headers, and query from the route configuration, so most tool entries don't need to specify them. Override these on the tool entry only when the route doesn't match the upstream endpoint exactly.

app/_ai_gateway_entities/ai-model.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ To add redundancy and failover, the load balancer supports configurable retries,
272272
> [`failover_criteria`](#schema-aigateway-model-config-balancer-failover-criteria) to include HTTP codes
273273
> like `http_429` or `http_502`, and `non_idempotent` for POST requests.
274274
275+
### Forward proxy support
276+
277+
{% include md/ai-gateway/v2/forward-proxy.md %}
278+
275279
### Health check and circuit breaker
276280

277281
To improve reliability under sustained failures, the load balancer includes a circuit breaker. When a target reaches the failure threshold set by [`max_fails`](#schema-aigateway-model-config-balancer-max-fails), the load balancer stops routing requests to it until the [`fail_timeout`](#schema-aigateway-model-config-balancer-fail-timeout) period elapses. For behavior examples and tuning, see [Circuit breaker](/ai-gateway/load-balancing/#health-check-and-circuit-breaker).

app/_ai_gateway_policies/ai-aws-guardrails/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ The AI AWS Guardrails Policy emits structured log data for every inspected reque
5050

5151
To log the raw content of blocked requests and responses, enable [`config.log_blocked_content`](/ai-gateway/policies/ai-aws-guardrails/reference/#schema--config-log-blocked-content). When enabled, the blocked prompt or response body appears under `ai.proxy.aws-guardrails.input_faulty_prompt` and `ai.proxy.aws-guardrails.output_faulty_response` in each log entry.
5252

53+
## Forward proxy support
54+
55+
{% include md/ai-gateway/v2/forward-proxy.md %}

app/_ai_gateway_policies/ai-azure-content-safety/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ products:
77
- ai-gateway
88
content_type: plugin
99
---
10+
11+
## Forward proxy support
12+
13+
{% include md/ai-gateway/v2/forward-proxy.md %}

app/_ai_gateway_policies/ai-custom-guardrail/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ products:
77
- ai-gateway
88
content_type: plugin
99
---
10+
11+
## Forward proxy support
12+
13+
{% include md/ai-gateway/v2/forward-proxy.md %}

app/_ai_gateway_policies/ai-gcp-model-armor/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ The AI GCP Model Armor Policy emits structured log data for every inspected requ
124124

125125
To log the raw content of blocked requests and responses, enable [`config.log_blocked_content`](/ai-gateway/policies/ai-gcp-model-armor/reference/#schema--config-log-blocked-content). When enabled, the blocked prompt or response body appears under `ai.proxy.gcp-model-armor.input_faulty_prompt` and `ai.proxy.gcp-model-armor.output_faulty_response` in the log entry.
126126

127+
## Forward proxy support
128+
129+
{% include md/ai-gateway/v2/forward-proxy.md %}
130+
127131
## Limitations
128132

129133
* Only chat prompts and chat responses are inspected; embeddings and other modalities are not checked.

app/_ai_gateway_policies/ai-lakera-guard/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,7 @@ When the guardrails block a request, the log captures the violation reason, dete
120120
}
121121
}
122122
```
123+
124+
## Forward proxy support
125+
126+
{% include md/ai-gateway/v2/forward-proxy.md %}

app/_ai_gateway_policies/ai-prompt-compressor/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,7 @@ sequenceDiagram
165165
<!-- vale on -->
166166

167167
The AI Prompt Compressor Policy applies structured compression to preserve essential context of prompts sent by users, rather than trimming prompts arbitrarily or risking token overflows. This ensures the LLM receives a well-formed, focused prompt keeping token usage under control.
168+
169+
## Forward proxy support
170+
171+
{% include md/ai-gateway/v2/forward-proxy.md %}

app/_ai_gateway_policies/ai-sanitizer/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,7 @@ This service takes the following optional environment variables at startup:
192192
* `GUNICORN_WORKERS`: Specifies the number of Gunicorn processes to run
193193
* `PII_SERVICE_ENGINE_CONF`: Specifies the natural language processing (NLP) engine configuration file
194194
* `GUNICORN_LOG_LEVEL`: Specifies log level
195+
196+
## Forward proxy support
197+
198+
{% include md/ai-gateway/v2/forward-proxy.md %}

app/_ai_gateway_policies/ai-semantic-cache/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,7 @@ If your Policy uses a Redis datastore, you can authenticate to it with a cloud R
129129
This allows you to seamlessly rotate credentials without relying on static passwords.
130130

131131
{% include_cached /md/ai-gateway/v2/redis-cloud-providers.md name=page.name heading_level=3 %}
132+
133+
## Forward proxy support
134+
135+
{% include md/ai-gateway/v2/forward-proxy.md %}

0 commit comments

Comments
 (0)