Repository navigation
Commit a2e98a5
Add vercel ai gateway to docs (#2453)
# Pull Request Template
Thanks for taking the time to fill out this pull request!
## Issue Reference
Please link to any related issues
- [x] This PR fixes/closes #BAML-477
## Changes
Please describe the changes proposed in this pull request
This PR adds documentation for the Vercel AI Gateway, explaining how to
use it with the existing `openai-generic` provider by setting the
`base_url` to `https://ai-gateway.vercel.sh/v1`.
Changes include:
- A new documentation page:
`fern/03-reference/baml/clients/providers/vercel-ai-gateway.mdx`
- Updates to `fern/docs.yml` to include the new page in the navigation
and add a redirect.
- Updates to
`fern/03-reference/baml/clients/providers/openai-generic.mdx` and
`fern/snippets/client-constructor.mdx` to list Vercel AI Gateway as a
supported `openai-generic` provider.
## Testing
Please describe how you tested these changes
- [ ] Unit tests added/updated
- [x] Manual testing performed
- Verified the new documentation page renders correctly.
- Confirmed the new page is accessible via the sidebar navigation.
- Checked that links from `openai-generic.mdx` and
`client-constructor.mdx` correctly point to the new Vercel AI Gateway
page.
- [ ] Tested in [environment]
## Screenshots
If applicable, add screenshots to help explain your changes
[Add screenshots here...]
## PR Checklist
Please ensure you've completed these items
- [x] I have read and followed the contributing guidelines
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
## Additional Notes
Add any other context about the PR here
This PR addresses the request to add support for the Vercel AI Gateway
by documenting its compatibility with the `openai-generic` provider, as
suggested in the original issue.
---
<a
href="https://cursor.com/background-agent?bcId=bc-80e809f0-4deb-43da-8699-2edccd6866ed">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-cursor-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-cursor-light.svg">
<img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg">
</picture>
</a>
<a
href="https://cursor.com/agents?id=bc-80e809f0-4deb-43da-8699-2edccd6866ed">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-web-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-web-light.svg">
<img alt="Open in Web" src="https://cursor.com/open-in-web.svg">
</picture>
</a>
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Adds documentation for Vercel AI Gateway usage with `openai-generic`
provider, including a new page and updates to navigation and existing
docs.
>
> - **Documentation**:
> - Adds `vercel-ai-gateway.mdx` to document Vercel AI Gateway usage
with `openai-generic` by setting `base_url` to
`https://ai-gateway.vercel.sh/v1`.
> - Updates `docs.yml` to include the new page in navigation and add a
redirect.
> - Updates `openai-generic.mdx` and `client-constructor.mdx` to list
Vercel AI Gateway as a supported `openai-generic` provider.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for f07b012. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent d9da7e0 commit a2e98a5
4 files changed
Lines changed: 28 additions & 0 deletions
File tree
- fern
- 03-reference/baml/clients/providers
- snippets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
796 | 799 | | |
797 | 800 | | |
798 | 801 | | |
| |||
1156 | 1159 | | |
1157 | 1160 | | |
1158 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
1159 | 1164 | | |
1160 | 1165 | | |
1161 | 1166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments