v1.0.0 - Image Support & Unified API
π Major Release: Image Support & Unified API
We're excited to announce batch-ai v1.0.0! This major release introduces image support for batch processing and unifies the API across all providers.
β¨ What's New
πΌοΈ Image Support
- Process images alongside text in your batch requests
- Support for image URLs in both OpenAI and Anthropic providers
- Perfect for multimodal AI applications
π§ Unified API
- Both OpenAI and Anthropic now use the same input format
- Consistent developer experience across providers
- Easier to switch between providers
β οΈ Breaking Changes
The input format has changed from strings to ContentPart arrays:
// Before (0.x)
const request = {
customId: "1",
input: "Hello world"
};
// After (1.0)
const request = {
customId: "1",
input: [{ type: "text", text: "Hello world" }]
};π Migration Guide
See CHANGELOG.md for detailed migration instructions.
π Credits
Special thanks to @klichen for implementing image support in #12!
Note: This is a breaking change release. Please review the migration guide before upgrading.