The Vercel AI SDK has released version 4.0.54 of its @ai-sdk/xai package. This update, released on September 2, introduces new functionality for handling input files in batch operations.
Key Points
- The @ai-sdk/xai package is updated to version 4.0.54.
- The update was released on September 2.
- Batch start results now surface the uploaded input file.
- This information is available via
providerMetadata.<provider>.inputFileIdandinputFileExpiresAt. - A new
inputFileExpiresAfterprovider option is accepted for OpenAI and xAI batch input file uploads.
Context
According to the Vercel AI SDK changelog, this update enhances the visibility and control over input files used in batch processing. Developers can now access identifiers and expiration timestamps for their uploaded files directly from the batch start result.
Why It Matters
This update provides developers with more detailed information and control over the lifecycle of input files in batch AI operations, potentially improving management and debugging for OpenAI and xAI integrations.
What To Do
- Review the
providerMetadata.<provider>.inputFileIdandinputFileExpiresAtfields in batch start results. - Consider using the
inputFileExpiresAfteroption when uploading batch input files for OpenAI and xAI. - Test batch workflows with the @ai-sdk/xai@4.0.54 package to observe the new behavior.
