Vercel released a patch for its AI SDK on August 27 at 15:36, specifically targeting the @ai-sdk/xai package. This update, version 4.0.48, resolves a bug related to the web_search action within the SDK's responses.
Key Points
- The @ai-sdk/xai package received a patch update to version 4.0.48.
- The update was released on August 27.
- The patch addresses an issue with the
web_searchaction. - The fix ensures the preservation of
query,sources, andopen_pagewithinweb_searchaction results.
Context
According to the Vercel AI SDK changelog, the patch specifically fixes an error where the web_search action's details were not being preserved in the tool results of responses. This includes critical components like the search query, identified sources, and the open_page instruction.
Why It Matters
This fix is important for developers using the Vercel AI SDK, as it ensures that web_search functionality operates as expected, providing complete and accurate information within tool results. Consistent preservation of search parameters and outcomes is crucial for applications that rely on external web data.
What To Do
- Check your project's dependencies to confirm the @ai-sdk/xai package version.
- Update to @ai-sdk/xai@4.0.48 or later to incorporate this fix.
- Test any existing implementations of
web_searchactions to verify correct preservation ofquery,sources, andopen_page. - Review the Vercel AI SDK documentation for any updated guidance on tool result handling.
