Skip to content

Commit db3cacf

Browse files
[AIG]fixes from feedback (#18002)
* fixes from feedback * fixes to ai gateway * Update get-started.mdx --------- Co-authored-by: Kathy <[email protected]>
1 parent 427f9b9 commit db3cacf

File tree

19 files changed

+63
-32
lines changed

19 files changed

+63
-32
lines changed

src/content/docs/ai-gateway/evaluations/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ pcx_content_type: navigation
44
order: 1
55
sidebar:
66
order: 7
7-
badge:
8-
text: Beta
7+
group:
8+
badge: Beta
99
---
1010

1111
Understanding your application's performance is essential for optimization. Developers often have different priorities, and finding the optimal solution involves balancing key factors such as cost, latency, and accuracy. Some prioritize low-latency responses, while others focus on accuracy or cost-efficiency.

src/content/docs/ai-gateway/get-started.mdx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,14 @@ Next, connect your AI provider to your gateway.
3030

3131
AI Gateway offers multiple endpoints for each Gateway you create - one endpoint per provider, and one Universal Endpoint.
3232

33-
<Details header="Supported providers">
33+
Below is a list of our supported model providers:
3434

3535
<DirectoryListing folder="ai-gateway/providers" />
3636

37-
</Details>
37+
If you do not have a provider preference, start with one of our dedicated tutorials:
3838

39-
If you do not have a provider preference, start with one of our dedicated tutorials.
40-
41-
<Details header="Onboarding tutorials">
42-
43-
- [OpenAI](/ai-gateway/tutorials/deploy-aig-worker/)
44-
- [Worker AI](/ai-gateway/tutorials/create-first-aig-workers/)
45-
46-
</Details>
39+
- [OpenAI](/ai-gateway/integrations/aig-workers-ai-binding/)
40+
- [Workers AI](/ai-gateway/tutorials/create-first-aig-workers/)
4741

4842
## View analytics
4943

src/content/docs/ai-gateway/observability/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Observability
33
pcx_content_type: navigation
44
sidebar:
5+
group:
6+
hideIndex: true
57
order: 6
68
---
79

src/content/docs/ai-gateway/providers/anthropic.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ pcx_content_type: get-started
77

88
## Endpoint
99

10-
`https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/anthropic`
10+
```txt
11+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/anthropic`
12+
```
1113

1214
## Examples
1315

@@ -49,5 +51,4 @@ const message = await anthropic.messages.create({
4951
messages,
5052
max_tokens: maxTokens,
5153
});
52-
5354
```

src/content/docs/ai-gateway/providers/azureopenai.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ pcx_content_type: get-started
77

88
## Endpoint
99

10-
`https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/azure-openai/{resource_name}/{deployment_name}`
10+
```txt
11+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/azure-openai/{resource_name}/{deployment_name}
12+
```
1113

1214
## What you need
1315

src/content/docs/ai-gateway/providers/bedrock.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ sidebar:
1010

1111
## Endpoint
1212

13-
`https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/aws-bedrock`
13+
```txt
14+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/aws-bedrock`
15+
```
1416

1517
## Make a request
1618

src/content/docs/ai-gateway/providers/cohere.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ pcx_content_type: get-started
77

88
## Endpoint
99

10-
`https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere`
10+
```txt
11+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere
12+
```
1113

1214
## URL structure
1315

src/content/docs/ai-gateway/providers/google-ai-studio.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ sidebar:
1010

1111
## Endpoint
1212

13-
`https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/google-ai-studio`
13+
```txt
14+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/google-ai-studio
15+
```
1416

1517
## What you need
1618

@@ -69,4 +71,4 @@ const model = genAI.getGenerativeModel(
6971
);
7072

7173
await model.generateContent(["What is Cloudflare?"]);
72-
```
74+
```

src/content/docs/ai-gateway/providers/grok.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ sidebar:
1010

1111
## Endpoint
1212

13-
`https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/grok`
13+
```txt
14+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/grok
15+
```
1416

1517
## URL structure
1618

src/content/docs/ai-gateway/providers/groq.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ pcx_content_type: get-started
77

88
## Endpoint
99

10-
`https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq`
10+
```txt
11+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq
12+
```
1113

1214
## URL structure
1315

0 commit comments

Comments
 (0)