v2.16.0

Core System Modularization for Scalability

Priya
PriyaAuthor

This update represents a significant investment in our backend architecture, focused on improving scalability, maintainability, and code organization. While these changes are primarily internal, they lay the foundation for future feature development and enhanced platform stability.

Improvements

4
  • The main chat request handler has been restructured into a more modular design, with logic delegated to dedicated processors and helpers for validation and usage updates.
  • The UsageTrackingOperations class has been split into two specialized updaters: UserUsageUpdater for individual user stats and GlobalUsageUpdater for platform-wide metrics.
  • Core rate-limiting logic has been moved from the main limiter.py and checker.py files into a new logic/ subdirectory, separating concerns like Redis connection, data recording, and status checking.
  • The logic for building API responses (both streaming and non-streaming) has been moved into a dedicated builders/ directory, centralizing how standardized responses are constructed.