Skip to content

Commit 8217d41

Browse files
hid the index
1 parent e3dd763 commit 8217d41

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
pcx_content_type: configuration
3+
title: Integration
4+
sidebar:
5+
group:
6+
hideIndex: true
7+
order: 12
8+
---

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ To use Cloudflare AI Gateway inside of the AI SDK, you can configure a custom "G
1616
If you're using the `openai` provider in AI SDK, you can create a customized setup with `createOpenAI`, passing your OpenAI-compatible AI Gateway URL:
1717

1818
```typescript
19-
import { createOpenAI } from '@ai-sdk/openai';
19+
import { createOpenAI } from "@ai-sdk/openai";
2020

2121
const openai = createOpenAI({
22-
baseURL: `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai`
22+
baseURL: `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai`,
2323
});
2424
```
2525

@@ -28,13 +28,13 @@ const openai = createOpenAI({
2828
If you're using the `anthropic` provider in AI SDK, you can create a customized setup with `createAnthropic`, passing your Anthropic-compatible AI Gateway URL:
2929

3030
```typescript
31-
import { createAnthropic } from '@ai-sdk/anthropic';
31+
import { createAnthropic } from "@ai-sdk/anthropic";
3232

3333
const anthropic = createAnthropic({
34-
baseURL: `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/anthropic`
34+
baseURL: `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/anthropic`,
3535
});
3636
```
3737

3838
### Other providers
3939

40-
For other providers that are not listed above, you can follow a similar pattern by creating a custom instance for any AI provider, and passing your AI Gateway URL. For help finding your provider-specific AI Gateway URL, refer to the [Supported providers page](/ai-gateway/providers).
40+
For other providers that are not listed above, you can follow a similar pattern by creating a custom instance for any AI provider, and passing your AI Gateway URL. For help finding your provider-specific AI Gateway URL, refer to the [Supported providers page](/ai-gateway/providers).

0 commit comments

Comments
 (0)