Skip to content

Commit 35391a6

Browse files
description
1 parent 091c0e9 commit 35391a6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ const google = createGoogleGenerativeAI({
4747
});
4848
```
4949

50-
### Other providers
51-
52-
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).
50+
### Retrieve `log id` from AI SDK
5351

54-
## Retrieve `log id` from AI SDK
52+
You can access the AI Gateway `log id` from the response headers when invoking the SDK.
5553

5654
```typescript
5755
const result = await generateText({
@@ -60,3 +58,7 @@ const result = await generateText({
6058
});
6159
console.log(result.response.headers["cf-aig-log-id"]);
6260
```
61+
62+
### Other providers
63+
64+
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)