Vercel AI SDK Deprecates searchParameters for xAI, Adds Image Search Support
Vercel released AI SDK version 4.0.0-canary.69 with breaking changes to xAI integration. The update deprecates the searchParameters option for xAI live search, replacing it with dedicated web_search and x_search agent tools, and adds image search capability through a new enableImageSearch parameter.
Vercel released version 4.0.0-canary.69 of its AI SDK's xAI provider package, introducing a deprecation and a new image search feature.
Breaking Change: searchParameters Deprecated
The SDK now deprecates the searchParameters option for xAI live search functionality. Developers must migrate to dedicated agent tools: web_search and x_search. This change affects how developers implement search capabilities in applications using xAI's Grok models through Vercel's AI SDK.
Image Search Support Added
The update adds enableImageSearch support to the xAI Web Search tool. The parameter maps to xAI's native enable_image_search option in the Responses API. Developers can now call xai.tools.webSearch() with the enableImageSearch boolean parameter to include image results in search operations.
The implementation follows xAI's API specification, where the SDK translates camelCase JavaScript conventions to the API's snake_case format automatically.
What This Means
Vercel is standardizing how developers access xAI's search capabilities through its AI SDK by moving from configuration parameters to explicit tool definitions. This aligns with the broader agent tool pattern used across other providers in the SDK. The image search addition expands the types of content xAI models can retrieve during web searches, though adoption will require developers to update their integration code to use the new tool-based approach. The canary release tag indicates this is a pre-release version for early testing.
Related Articles
Vercel AI SDK adds Grok-4.5 support and video reference inputs for xAI provider
Vercel released version 4.0.10 of its xAI SDK provider, adding support for the Grok-4.5 model and introducing video reference inputs for reference-to-video generation. The update extends the existing image reference capability to handle video inputs.
Vercel AI SDK adds support for GPT-5.6 with reasoning and prompt cache controls
Vercel shipped version 2.0.111 of its AI SDK with support for GPT-5.6, including reasoning mode and prompt cache controls. The update adds the new model identifiers to both the OpenAI provider and gateway implementations.
Vercel AI SDK adds Grok 4.5 model support and video reference inputs
Vercel released AI SDK version 3.0.106 for xAI integration, adding support for the Grok 4.5 model identifier and expanding input reference capabilities to include video files for reference-to-video generation workflows.
OpenAI Python SDK v2.45.0 Adds GPT-5.6-SOL Support
OpenAI released version 2.45.0 of its Python SDK on July 9, 2026, adding support for GPT-5.6-SOL model updates. The release also restores beta resource accessors that were previously removed.
Comments
Loading...