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's AI SDK Adds Support for Unannounced OpenAI Model 'GPT-6.1 Sol'
Vercel released @ai-sdk/openai version 3.0.121, a patch that adds SDK support for a model string called 'GPT-6.1 Sol.' OpenAI has not publicly announced or confirmed this model, and no specs, pricing, or benchmarks are available.
Vercel AI SDK Patch Adds Support for 'None' Reasoning Effort on GPT-6 Sol and Luna
Vercel released version 4.0.78 of @ai-sdk/openai, a patch that adds support for setting reasoningEffort to 'none' for GPT-6 Sol and Luna models. The update also introduces validation logic that warns on unsupported request-level effort updates and rejects invalid historical ones.
Vercel's AI SDK Adds Support for Unreleased 'GPT-6.1 Sol' Model Identifier
Vercel's @ai-sdk/openai package version 2.0.132 quietly adds support for a model identifier called 'GPT-6.1 Sol.' OpenAI has not confirmed the model's existence, specs, or release date.
Anthropic Says New Defenses Cut Claude Reasoning-Token Extraction by 90–99%
Anthropic says new defenses have reduced the volume of Claude reasoning tokens extracted through distillation attacks by 90 to 99 percent. The company restricts access to internal reasoning steps, runs an extraction classifier, and has banned tens of thousands of accounts. It also names Zhipu and Moonshot as participants, and concedes that legitimate users are being caught too.
Comments
Loading...