The Vercel AI SDK has released updates including a new first-party Code Mode package, version 1.0.0, designed to orchestrate AI SDK tools using generated code. Concurrently, the SDK now supports the MiniMax-M model series through a new MiniMax provider, version 3.0.0.
Key Points
- The @ai-sdk/code-mode@1.0.0 package enables orchestration of AI SDK tools from generated code.
- An
experimental_toolCallerrouting feature has been added togenerateTextfor code mode. - The @ai-sdk/minimax@3.0.0 package adds support for the MiniMax-M model series.
- The ai@7.0.43 package is an updated dependency.
- Other updated dependencies include @ai-sdk/provider-utils@5.0.16, @ai-sdk/anthropic@4.0.25, @ai-sdk/gateway@4.0.33, and @ai-sdk/alibaba@2.0.20.
Context
According to the Vercel AI SDK Changelog, the Code Mode package facilitates tool orchestration within the SDK. This includes an experimental_toolCaller routing mechanism integrated into the generateText function. The MiniMax provider expands the SDK's language model support to include the MiniMax-M series.
Why It Matters
These updates expand the Vercel AI SDK's capabilities for developers, offering new methods for tool integration and broadening the range of supported language models. Builders can now explore generated code for tool orchestration and leverage MiniMax-M models within their applications.
What To Do
- Review the Vercel AI SDK documentation for details on the new Code Mode package.
- Investigate the
experimental_toolCallerrouting feature forgenerateTextin code mode. - Explore the MiniMax provider to integrate MiniMax-M models into projects.
- Note the updated dependency versions for ai, @ai-sdk/provider-utils, @ai-sdk/anthropic, @ai-sdk/gateway, and @ai-sdk/alibaba.
