changelog

Vercel AI SDK Deprecates searchParameters for xAI, Adds Image Search Support

TL;DR

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.

1 min read
0

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

changelog

Vercel AI SDK Adds Support for Grok 4.6 Model IDs and 'xhigh' Reasoning Effort

Vercel released version 4.0.37 of its @ai-sdk/xai package, adding support for Grok 4.6 model IDs and a new 'xhigh' reasoning effort level. The patch update lets developers using the Vercel AI SDK target xAI's newest model IDs directly.

changelog

Cline CLI v3.0.54 Fixes Claude Code Provider Tool-Bridging Bug and Token Telemetry Overcounting

Cline's CLI v3.0.54 release fixes a major bug that made the Claude Code provider unusable for agentic work, along with tool-call JSON truncation handling and token telemetry that was overcounting cache-heavy sessions by roughly 5x. The update also changes how Managed Hub daemons handle version conflicts between multiple Cline installs.

changelog

Hugging Face Transformers v5.16.1 Adds Support for GLM-5.3-Flash, a 320B-Parameter Multimodal MoE Model

Hugging Face's transformers v5.16.1 release adds support for GLM-5.3-Flash, a 320B total-parameter (18B active) multimodal mixture-of-experts model. Zhipu AI claims it outperforms GLM-5.2 while approaching Claude Opus 4.8 on coding and agentic benchmarks at one-tenth the cost.

changelog

Cline Desktop v0.0.19 Fixes Memory Leak That Ballooned Process to Tens of Gigabytes

Cline Desktop v0.0.19 fixes a memory leak where session status updates carried full conversation transcripts to every connected client, ballooning process memory to tens of gigabytes on long tasks. The release also adds seven new model providers and changes default models for several existing ones.

Comments

Loading...