Vercel has issued updates for its AI SDK, specifically for the @ai-sdk/xai and @ai-sdk/google packages. The @ai-sdk/xai package received two patch releases, @ai-sdk/xai@3.0.129 and @ai-sdk/xai@4.0.48, both released on August 27. The @ai-sdk/google package also saw a patch release, @ai-sdk/google@4.0.55, on the same date.
Key Points
- The @ai-sdk/xai@3.0.129 patch, released on August 27, addresses an issue where
web_searchactions were not preserved in responses tool results. - This fix specifically ensures that the
query,sources, andopen_pagecomponents of theweb_searchaction are maintained. - A similar fix was implemented in the @ai-sdk/xai@4.0.48 patch, also released on August 27, to preserve
web_searchaction details. - The @ai-sdk/google@4.0.55 patch, released on August 27, introduces a mechanism to surface prompt-level Google safety blocks.
- These safety blocks, when they occur without candidates, are now presented as content-filter results.
- The content-filter results include prompt feedback metadata, according to Vercel.
Context
According to Vercel, the updates for the @ai-sdk/xai package resolve a specific technical issue related to the handling of web_search actions within tool results. The @ai-sdk/google update enhances how safety blocks from Google's models are communicated to developers, providing more explicit feedback when prompts are filtered.
Why It Matters
These updates provide developers using the Vercel AI SDK with more reliable tool functionality and clearer feedback on content moderation. Preserving web_search actions ensures that applications can correctly process and utilize search results, while surfacing Google safety blocks with metadata allows developers to better understand and address content filtering issues in their prompts.
What To Do
- Developers using the Vercel AI SDK should update their
@ai-sdk/xaipackage to 3.0.129 or 4.0.48 to ensureweb_searchactions are correctly preserved. - Review the changelog for @ai-sdk/google@4.0.55 to understand how prompt-level safety blocks are now surfaced.
- Test applications that integrate Google models via the AI SDK to observe the new content-filter results and prompt feedback metadata.
- Note the specific components (
query,sources,open_page) that are now preserved forweb_searchactions in@ai-sdk/xai.
