Feat/web search integration#1309
Closed
EricStrohmaier wants to merge 3 commits intovercel:main-2026-03-20from
Closed
Feat/web search integration#1309EricStrohmaier wants to merge 3 commits intovercel:main-2026-03-20from
EricStrohmaier wants to merge 3 commits intovercel:main-2026-03-20from
Conversation
Contributor
|
@EricStrohmaier is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
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.
I added web search functionality using xAI's built-in search capabilities.
This PR integrates xAI's web search feature (from the SDK) into the chatbot, allowing Grok models to search the web and cite sources in their responses.
Changes made
Backend:
lib/ai/providers.ts(mode: auto, max 10 results)Frontend:
SearchResultscomponent with collapsible source listSearchingIndicatorfor loading state1.



2.
3.
Notes:
Tested with various queries that benefit from web search:
Happy to make any changes or adjustments based on feedback!