Vercel's AI SDK has released updates across several packages, including @ai-sdk/gateway version 2.0.145 and @ai-sdk/xai version 4.0.52. These updates introduce support for new models and expand file handling functionalities.
The @ai-sdk/gateway package now includes support for Fable 5.1, an Anthropic model. Concurrently, the @ai-sdk/xai package has received enhancements to its file interface, enabling more comprehensive file management operations.
Key Points
- The
@ai-sdk/gatewaypackage, version 2.0.145, now supports Anthropic's Fable 5.1 model. - The
@ai-sdk/xaipackage, version 4.0.52, implementsgetFileMetadata,downloadFile(streaming), anddeleteFileon the xAI files interface. - The xAI files interface now supports
expiresAfterupload TTLs, ranging from 3600 to 2592000 seconds. - Streaming uploads are supported via
{ type: 'stream' }data in the xAI files interface. - Upload results for xAI file operations now expose
byteSize,createdAt, andexpiresAt. - The
@ai-sdk/xaipackage also threadsabortSignalandheadersthrough all file operations. - Tool calling support has been added to batch operations in
@ai-sdk/googleand other related packages.
Context
According to the Vercel AI SDK changelog, the @ai-sdk/gateway update was released on September 2. The @ai-sdk/xai update, which includes file interface enhancements, was released on September 1. Additionally, the changelog indicates that tool calling support has been added to batch operations across several packages, including @ai-sdk/google version 4.0.60 and @ai-sdk/google-vertex version 5.0.72.
Why It Matters
These updates provide developers using the Vercel AI SDK with expanded model access and more robust file management capabilities for xAI services. The addition of tool calling support to batch operations can streamline complex interactions with AI models, potentially improving efficiency for builders.
What To Do
- Review the Vercel AI SDK documentation for the
@ai-sdk/gatewaypackage to understand the integration of Fable 5.1. - Examine the
@ai-sdk/xaipackage documentation for details on the new file management functions, includinggetFileMetadata,downloadFile, anddeleteFile. - Note the
expiresAfterupload TTLs and streaming upload options for xAI file operations. - Test the new tool calling support in batch operations if using
@ai-sdk/googleor other relevant packages.
