v2.14.0

Image Service & Provider Architecture Refactor

Priya
PriyaAuthor

This update focuses on internal architecture, bringing a more robust and standardized structure to our image services and backend provider integrations.

Improvements

4
  • The image generation logic has been refactored into a more modular handler structure, separating validation, processing, and error handling for better maintainability.
  • The internal architecture for several key providers has been overhauled to follow a consistent pattern, with dedicated modules for data transformation, request handling, and model management.
  • Implemented more robust pre-flight checks for image generation requests, including validation for the n parameter to ensure it doesn't exceed available rate limits before calling the provider.
  • Improved streaming chunk handling for two major providers to ensure more reliable and consistent real-time responses.

Bug Fixes

1
  • A redundant provider that offered overlapping functionality has been removed to streamline the system and reduce complexity.