BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Vercel Expands AI Toolkit with AI SDK 4.0 Update

Vercel Expands AI Toolkit with AI SDK 4.0 Update

Vercel has announced version 4.0 of its open-source AI SDK toolkit designed for building AI applications in JavaScript and TypeScript. The update introduces key features like PDF support, computer use integration, and a new xAI Grok API.

The update enables PDF handling across Anthropic, Google Generative AI, and Google Vertex AI. Developers can now extract, summarize, and query information from PDF documents using these providers. Support for Anthropic's Claude Sonnet 3.5 model introduces tools for interacting with system interfaces. These include controlling the mouse and keyboard, capturing screenshots, and running terminal commands.

To address limitations in long-form text generation, Vercel AI SDK 4.0 introduces a feature to detect incomplete responses and generate text in multiple steps. This functionality maintains coherence and handles token usage automatically, improving outputs for extended tasks. The SDK now supports x.AI through an official integration.

Updates across several providers include Cohere v2 support with tool-calling capabilities, OpenAI improvements for context-aware completions and prompt caching, Google Generative AI enhancements like file input support and embeddings, Amazon Bedrock support for Titan embedding models, and new first-party providers for Groq and xAI Grok.

A new version of the Next.js AI Chatbot template incorporates the latest advancements in React, Next.js, and Auth.js. It includes production-ready features like model switching, PostgreSQL storage, and interactive workspaces for AI-user collaboration.

Lee Robinson, a key figure at Vercel, shared an update on X saying:

You can now stream responses with Python on Vercel, and we made a template which integrates with the AI SDK on the frontend.

The excitement within the developers community is palpable as software developer Yuval Sagron shares on his X account:

It’s so weird how much time it takes for those things to get out.. so easy to implement.

The release includes breaking changes to remove deprecated APIs. Automated migration tools and detailed guides are available to assist developers in upgrading existing projects. Developers can explore the new features by starting a project with updated guides, testing templates in the Template Gallery, or engaging with the community via GitHub Discussions.

About the Author

Rate this Article

Adoption
Style

BT