docs: update model recommendations and comparison#26
Open
sashimikun wants to merge 1 commit intovercel-labs:mainfrom
Open
docs: update model recommendations and comparison#26sashimikun wants to merge 1 commit intovercel-labs:mainfrom
sashimikun wants to merge 1 commit intovercel-labs:mainfrom
Conversation
- Updated `apps/web/app/docs/ai-sdk/page.tsx` and `apps/web/app/docs/quick-start/page.tsx` to use `process.env.AI_GATEWAY_MODEL` with a fallback to `anthropic/claude-haiku-4.5`. - Added a "Choosing a Model" section to `apps/web/app/docs/ai-sdk/page.tsx` with a cost/quality comparison table for Haiku, Sonnet, and Opus. - Added a link to the Vercel AI Gateway model list in the documentation.
Contributor
|
@google-labs-jules[bot] is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
|
||
| const result = streamText({ | ||
| model: 'anthropic/claude-haiku-4.5', | ||
| model: process.env.AI_GATEWAY_MODEL || 'anthropic/claude-haiku-4.5', |
Contributor
| <p className="text-sm text-muted-foreground mb-4"> | ||
| See the full list of available models in the{" "} | ||
| <a | ||
| href="https://vercel.com/docs/ai/models" |
Contributor
There was a problem hiding this comment.
Suggested change
| href="https://vercel.com/docs/ai/models" | |
| href="https://vercel.com/docs/ai-gateway/models-and-providers" |
Documentation link points to non-existent URL https://vercel.com/docs/ai/models which returns a 404 error
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.
Issue: #16
PR Description:
apps/web/app/docs/ai-sdk/page.tsxandapps/web/app/docs/quick-start/page.tsxto useprocess.env.AI_GATEWAY_MODELwith a fallback toanthropic/claude-haiku-4.5.apps/web/app/docs/ai-sdk/page.tsxwith a cost/quality comparison table for Haiku, Sonnet, and Opus.Screenshot:
