Add basic AI SDK example extracted from wrapper repo#48
Open
subtleGradient wants to merge 3 commits intomainfrom
Open
Add basic AI SDK example extracted from wrapper repo#48subtleGradient wants to merge 3 commits intomainfrom
subtleGradient wants to merge 3 commits intomainfrom
Conversation
This was referenced Nov 11, 2025
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds a comprehensive basic example for using the Vercel AI SDK v5 with the OpenRouter provider, demonstrating fundamental SDK patterns. The PR description mentions fixing a lint error by replacing any with an explicit type.
Key changes:
- Added a new basic example file showcasing six different AI SDK usage patterns
- Included type-safe handling of provider metadata using an explicit type annotation instead of
any
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Nov 12, 2025
646c5b6 to
a0b45d1
Compare
998a95f to
6a73a21
Compare
a0b45d1 to
7fb59b4
Compare
6a73a21 to
9c1f09c
Compare
This was referenced Nov 12, 2025
louisgv
requested changes
Nov 13, 2025
Member
louisgv
left a comment
There was a problem hiding this comment.
we should break these into 6 small files imo?
7fb59b4 to
0ecf841
Compare
9c1f09c to
2fbc45d
Compare
2fbc45d to
ce141a2
Compare
0ecf841 to
3e6f859
Compare
3e6f859 to
064c5e0
Compare
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.

Add basic AI SDK example extracted from wrapper repo
Fix lint error: replace any with explicit type