Skip to content

Commit 5a1dfdb

Browse files
invalid links
1 parent 5157a92 commit 5a1dfdb

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

public/__redirects

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
/ai-gateway/integration/aig-workers-ai-binding/ /ai-gateway/integrations/aig-workers-ai-binding/ 301
129129
/ai-gateway/integration/ /ai-gateway/integrations/ 301
130130
/ai-gateway/providers/open-router/ /ai-gateway/providers/openrouter/ 301
131-
/ai-gateway/providers/universal/ /ai-gateway/universal/ 301
131+
/ai-gateway/providers/universal/ /ai-gateway/universal-endpoint/universal/ 301
132132

133133
# agents
134134
/agents/capabilities/mcp-server/ /agents/model-context-protocol/ 301

src/content/changelog/ai-gateway/2025-01-26-worker-binding-methods.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ With the new AI Gateway binding methods, you can now:
1616

1717
- Send feedback and update metadata with `patchLog`.
1818
- Retrieve detailed log information using `getLog`.
19-
- Execute [universal requests](/ai-gateway/universal/) to any AI Gateway provider with `run`.
19+
- Execute [universal requests](/ai-gateway/universal-endpoint/universal/) to any AI Gateway provider with `run`.
2020

2121
For example, to send feedback and update metadata using `patchLog`:
2222

src/content/changelog/ai-gateway/2025-02-05-aig-request-handling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2025-02-06T11:00:00Z
88

99
AI Gateway adds additional ways to handle requests - [Request Timeouts](/ai-gateway/configuration/request-handling/#request-timeouts) and [Request Retries](/ai-gateway/configuration/request-handling/#request-retries), making it easier to keep your applications responsive and reliable.
1010

11-
Timeouts and retries can be used on both the [Universal Endpoint](/ai-gateway/universal) or directly to a [supported provider](/ai-gateway/providers/).
11+
Timeouts and retries can be used on both the [Universal Endpoint](/ai-gateway/universal-endpoint/universal/) or directly to a [supported provider](/ai-gateway/providers/).
1212

1313
**Request timeouts**
1414
A [request timeout](/ai-gateway/configuration/request-handling/#request-timeouts) allows you to trigger [fallbacks](/ai-gateway/configuration/fallbacks/) or a retry if a provider takes too long to respond.

src/content/docs/ai-gateway/configuration/fallbacks.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar:
77

88
import { Render } from "~/components";
99

10-
Specify model or provider fallbacks with your [Universal endpoint](/ai-gateway/universal/) to handle request failures and ensure reliability.
10+
Specify model or provider fallbacks with your [Universal endpoint](/ai-gateway/universal-endpoint/universal/) to handle request failures and ensure reliability.
1111

1212
Cloudflare can trigger your fallback provider in response to [request errors](#request-failures) or [predetermined request timeouts](/ai-gateway/configuration/request-handling#request-timeouts). The [response header `cf-aig-step`](#response-headercf-aig-step) indicates which step successfully processed the request.
1313

@@ -38,7 +38,7 @@ You can add as many fallbacks as you need, just by adding another object in the
3838

3939
## Response header(cf-aig-step)
4040

41-
When using the [Universal endpoint](/ai-gateway/universal/) with fallbacks, the response header `cf-aig-step` indicates which model successfully processed the request by returning the step number. This header provides visibility into whether a fallback was triggered and which model ultimately processed the response.
41+
When using the [Universal endpoint](/ai-gateway/universal-endpoint/universal/) with fallbacks, the response header `cf-aig-step` indicates which model successfully processed the request by returning the step number. This header provides visibility into whether a fallback was triggered and which model ultimately processed the response.
4242

4343
- `cf-aig-step:0` – The first (primary) model was used successfully.
4444
- `cf-aig-step:1` – The request fell back to the second model.

src/content/docs/ai-gateway/configuration/request-handling.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ On the final retry attempt, your gateway will wait until the request completes,
123123

124124
#### Universal endpoint
125125

126-
If set on a [Universal Endpoint](/ai-gateway/universal/), a request retry will automatically retry failed requests up to five times before triggering any configured fallbacks.
126+
If set on a [Universal Endpoint](/ai-gateway/universal-endpoint/universal/), a request retry will automatically retry failed requests up to five times before triggering any configured fallbacks.
127127

128128
For a Universal Endpoint, configure the retry settings with the following properties in the provider-specific `config`:
129129

@@ -196,7 +196,7 @@ curl 'https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}' \
196196

197197
#### Direct provider
198198

199-
If set on a [provider](/ai-gateway/providers/) request, a request retry will automatically retry failed requests up to five times. On the final retry attempt, your gateway will wait until the request completes, regardless of how long it takes.
199+
If set on a [provider](/ai-gateway/universal-endpoint/universal/) request, a request retry will automatically retry failed requests up to five times. On the final retry attempt, your gateway will wait until the request completes, regardless of how long it takes.
200200

201201
For a provider-specific endpoint, configure the retry settings by adding different header values:
202202

src/content/docs/ai-gateway/integrations/worker-binding-methods.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const anthropic = createAnthropic({
148148

149149
The `run` method allows you to execute universal requests. Users can pass either a single universal request object or an array of them. This method supports all AI Gateway providers.
150150

151-
Refer to the [Universal endpoint documentation](/ai-gateway/universal/) for details about the available inputs.
151+
Refer to the [Universal endpoint documentation](/ai-gateway/universal-endpoint/universal/) for details about the available inputs.
152152

153153
```typescript
154154
const resp = await gateway.run({
@@ -164,7 +164,7 @@ const resp = await gateway.run({
164164
```
165165

166166
- **Returns**: `Promise<Response>`
167-
- **Example Use Case**: Perform a [universal request](/ai-gateway/universal/) to any supported provider.
167+
- **Example Use Case**: Perform a [universal request](/ai-gateway/universal-endpoint/universal/) to any supported provider.
168168

169169
## Conclusion
170170

0 commit comments

Comments
 (0)