Skip to content

Commit 3d4950e

Browse files
committed
[AI Gateway] Rename binding reference page and reorder integrations sidebar
1 parent 890d111 commit 3d4950e

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

src/content/docs/ai-gateway/integrations/agents.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ pcx_content_type: navigation
33
title: Agents
44
external_link: /agents/
55
sidebar:
6-
order: 10
6+
order: 3
77
head: []
88
description: Build AI-powered Agents on Cloudflare
99
---
10-

src/content/docs/ai-gateway/integrations/aig-workers-ai-binding.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
title: Set up Workers AI with AI Gateway
33
pcx_content_type: tutorial
4-
reviewed: 2024-10-17
4+
sidebar:
5+
order: 4
56
description: >-
67
This guide will walk you through setting up and deploying a Workers AI project. You will use Workers, an AI Gateway binding, and a large language model (LLM) to deploy your first AI-powered application on the Cloudflare global network.
78
---
@@ -157,4 +158,4 @@ By completing this tutorial, you have created a Worker, connected it to Workers
157158

158159
## Next steps
159160

160-
- [Binding reference](/ai-gateway/integrations/worker-binding-methods/) — Call third-party models, access gateway methods, and integrate with AI SDKs.
161+
- [Workers bindings](/ai-gateway/integrations/worker-binding-methods/) — Call third-party models, access gateway methods, and integrate with AI SDKs.

src/content/docs/ai-gateway/integrations/vercel-ai-sdk.mdx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
title: Vercel AI SDK
33
pcx_content_type: configuration
44
sidebar:
5-
order: 3
5+
order: 2
66
---
77

8-
import {
9-
Details,
10-
Tabs,
11-
TabItem
12-
} from "~/components";
8+
import { Details, Tabs, TabItem } from "~/components";
139
import CodeSnippets from "~/components/ai-gateway/code-examples.astro";
1410

1511
The [Vercel AI SDK](https://sdk.vercel.ai/) is a TypeScript library for building AI applications. The SDK supports many different AI providers, tools for streaming completions, and more.
@@ -21,7 +17,7 @@ To use Cloudflare AI Gateway with Vercel AI SDK, you will need to use the `ai-ga
2117
npm install ai-gateway-provider
2218
```
2319

24-
## Examples
20+
## Examples
2521

2622
<CodeSnippets forceClient="aisdk" />
2723

@@ -31,10 +27,7 @@ To specify model or provider fallbacks to handle request failures and ensure rel
3127

3228
```js title=""
3329
const { text } = await generateText({
34-
model: aigateway([
35-
openai.chat("gpt-5.1"), anthropic("claude-sonnet-4-5")
36-
]),
37-
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
30+
model: aigateway([openai.chat("gpt-5.1"), anthropic("claude-sonnet-4-5")]),
31+
prompt: "Write a vegetarian lasagna recipe for 4 people.",
3832
});
3933
```
40-

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: Binding reference
2+
title: Workers Bindings
33
pcx_content_type: reference
4+
sidebar:
5+
order: 1
46
tags:
57
- AI
68
- Bindings
7-
reviewed: 2025-04-01
89
description: >-
910
Reference for the Workers AI binding with AI Gateway. Call Workers AI and
1011
third-party models with env.AI.run(), access log IDs, and use gateway methods

0 commit comments

Comments
 (0)