docs(examples): switch next example to use AI Gateway provider#8654
Merged
gr2m merged 3 commits intovercel:mainfrom Sep 15, 2025
Merged
docs(examples): switch next example to use AI Gateway provider#8654gr2m merged 3 commits intovercel:mainfrom
gr2m merged 3 commits intovercel:mainfrom
Conversation
Contributor
Author
done ✅ |
nvie
pushed a commit
to nvie/ai
that referenced
this pull request
Sep 16, 2025
…l#8654) ## Background the Next.js example was using the OpenAI provider directly, which requires users to have an OpenAI API key and limits them to only OpenAI models. By switching to AI Gateway, users can access multiple AI providers ## Summary - Replaced `@ai-sdk/openai` provider with a direct model string - Updated the Next.js example to use the cheaper `gpt-5-mini` model --------- Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
Collaborator
|
pls ignore, mistook this for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
the Next.js example was using the OpenAI provider directly, which requires users to have an OpenAI API key and limits them to only OpenAI models. By switching to AI Gateway, users can access multiple AI providers
Summary
@ai-sdk/openaiprovider with a direct model stringgpt-5-nanomodelManual Verification
✅ @gr2m verified