Skip to content

Commit 27df89c

Browse files
committed
[AI Gateway] Revert unintentional formatting changes in Vercel AI SDK page
1 parent d3980d7 commit 27df89c

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ sidebar:
55
order: 2
66
---
77

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

1115
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.
@@ -17,7 +21,7 @@ To use Cloudflare AI Gateway with Vercel AI SDK, you will need to use the `ai-ga
1721
npm install ai-gateway-provider
1822
```
1923

20-
## Examples
24+
## Examples
2125

2226
<CodeSnippets forceClient="aisdk" />
2327

@@ -48,13 +52,16 @@ export default {
4852

4953
This works with any [supported provider and model](/ai-gateway/providers/) available through AI Gateway.
5054

51-
### Fallback providers
55+
### Fallback Providers
5256

5357
To specify model or provider fallbacks to handle request failures and ensure reliability, you can pass an array of models to the `model` option.
5458

5559
```js title=""
5660
const { text } = await generateText({
57-
model: aigateway([openai.chat("gpt-5.1"), anthropic("claude-sonnet-4-5")]),
58-
prompt: "Write a vegetarian lasagna recipe for 4 people.",
61+
model: aigateway([
62+
openai.chat("gpt-5.1"), anthropic("claude-sonnet-4-5")
63+
]),
64+
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
5965
});
6066
```
67+

0 commit comments

Comments
 (0)