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

DeepSeek web and app chat now show per-reply token bills, but chat is still free

DeepSeek's web and mobile chat now show a per-reply bill with token usage, unit prices and a context meter. Chat is still free, and no paid plan has been announced, according to QbitAI.

changelog

OpenAI fixes GPT-6.2 usage undercount: Astra limits now hit 40% sooner, Sol 25% sooner

OpenAI's Tibo says usage for GPT-6.2 Astra and GPT-6.2 Sol was counted lower than actual since the November 17 release. The error is fixed, so usage limits are now reached 40% sooner on Astra and 25% sooner on Sol. Paid plan users receive one usage-limit reset.

changelog

OpenAI merges ChatGPT Chat and Work under one usage meter; heaviest users may hit limits sooner

OpenAI has begun rolling out a unified Chat and Work experience in ChatGPT to a small group of Pro subscribers, with a single shared usage meter. An OpenAI spokesperson said a small fraction of the heaviest users may hit limits sooner. Conversations with the Instant model remain unlimited.

changelog

Google adds managed ingestion and SearchDocuments to Agent Retrieval in Public Preview, returning page- and timestamp-ci

Google has added managed ingestion and SearchDocuments to Agent Retrieval (formerly Vector Search 2.0), now in Public Preview. Point a data store at Cloud Storage files and search PDFs, Office files and videos with one API call that returns cited results. Google claims 18 investor PDFs became searchable in about 9 minutes in its tests.

Comments

Loading...