Skip to content

Commit 0325d36

Browse files
fixes to ai gateway
1 parent 538dd79 commit 0325d36

File tree

17 files changed

+58
-21
lines changed

17 files changed

+58
-21
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/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

src/content/docs/ai-gateway/providers/huggingface.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}/huggingface`
10+
```txt
11+
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface
12+
```
1113

1214
## URL structure
1315

0 commit comments

Comments
 (0)