Skip to content

Commit 3d1a608

Browse files
committed
Adding "cURL" as H3s where applicable.
1 parent 0c54b13 commit 3d1a608

File tree

10 files changed

+19
-1
lines changed

10 files changed

+19
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/anthropic`
1313

1414
## Examples
1515

16+
### cURL
17+
1618
```bash title="Example fetch request"
1719
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/anthropic/v1/messages \
1820
--header 'x-api-key: {anthropic_api_key}' \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Your new base URL will use the data above in this structure: `https://gateway.ai
2727

2828
## Examples
2929

30+
### cURL
31+
3032
```bash title="Example fetch request"
3133
curl 'https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/azure-openai/{resource_name}/{deployment_name}/chat/completions?api-version=2023-05-15' \
3234
--header 'Content-Type: application/json' \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ When making requests to Amazon Bedrock, replace `https://bedrock-runtime.us-east
2020

2121
With Bedrock, you will need to sign the URL before you make requests to AI Gateway. You can try using the [`aws4fetch`](https://github.com/mhart/aws4fetch) SDK.
2222

23-
## Example
23+
## Examples
2424

2525
### Use `aws4fetch1` SDK with TypeScript
2626

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ When making requests to [Cohere](https://cohere.com/), replace `https://api.cohe
1717

1818
## Examples
1919

20+
### cURL
21+
2022
```bash title="Request"
2123
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere/v1/chat \
2224
--header 'Authorization: Token {cohere_api_token}' \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ When making requests to [Groq](https://groq.com/), replace `https://api.groq.com
1717

1818
## Examples
1919

20+
### cURL
21+
2022
```bash title="Example fetch request"
2123
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq/chat/completions \
2224
--header 'Authorization: Bearer {groq_api_key}' \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ When making requests to HuggingFace Inference API, replace `https://api-inferenc
1717

1818
## Examples
1919

20+
### cURL
21+
2022
```bash title="Request"
2123
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface/bigcode/starcoder \
2224
--header 'Authorization: Bearer {hf_api_token}' \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ When making requests to OpenAI, replace `https://api.openai.com/v1` in the URL y
1717

1818
## Examples
1919

20+
### cURL
21+
2022
```bash title="Request"
2123
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/completions \
2224
--header 'Authorization: Bearer {openai_token}' \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/perplexity-ai
1313

1414
## Examples
1515

16+
### cURL
17+
1618
```bash title="Example fetch request"
1719
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/perplexity-ai/chat/completions \
1820
--header 'accept: application/json' \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ When making requests to Replicate, replace `https://api.replicate.com/v1` in the
1717

1818
## Example
1919

20+
### cURL
21+
2022
```bash title="Request"
2123
curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate/predictions \
2224
--header 'Authorization: Token {replicate_api_token}' \

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ So your final URL will come together as: `https://gateway.ai.cloudflare.com/v1/{
3535

3636
## Example
3737

38+
### cURL
39+
3840
```bash title="Example fetch request"
3941
curl "https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/google-vertex-ai/v1/projects/{project_name}/locations/{region}/publishers/google/models/gemini-1.0-pro-001:generateContent" \
4042
-H "Authorization: Bearer {vertex_api_key}" \

0 commit comments

Comments
 (0)