Introduce a dedicated api_requests module to encapsulate request formatting and validation logic for LLM interactions. This centralizes input preprocessing, reduces duplication across callers, and establishes a consistent interface for future API integrations.
Add POST /api/accounts endpoint that accepts email and password fields, validates email format using regex, hashes password with bcrypt, and stores the new account record in the database. Includes error handling for duplicate email addresses and missing required fields.
Add vote endpoints for both rants and comments, enabling users to upvote or downvote content. The implementation includes a new votes table with user_id, target_type, and target_id columns, along with vote counting logic that updates the parent entity's score in real-time.
The generator functions were identified as unused and adding unnecessary complexity to the codebase. This commit eliminates all generator-related code, including the `generate_report`, `generate_summary`, and `generate_metrics` functions, along with their associated helper utilities and test fixtures. The removal simplifies the module structure and reduces maintenance overhead by cleaning up dead code paths that were no longer referenced anywhere in the application.